h264 loop filter optimizations

Originally committed as revision 2909 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2004-03-20 00:18:52 +00:00
parent 980a82b70b
commit 3ebc7e04de
2 changed files with 220 additions and 162 deletions

View File

@@ -1163,6 +1163,12 @@ static inline int clip(int a, int amin, int amax)
return a;
}
static inline int clip_uint8(int a)
{
if (a&(~255)) return (-a)>>31;
else return a;
}
/* math */
extern const uint8_t ff_sqrt_tab[128];