aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/common.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-03-20 00:18:52 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-03-20 00:18:52 +0000
commit3ebc7e04dea6072400d91c1c90eb3911754cee06 (patch)
tree8465888c14b841255657e70aaf97e163ad5d7b26 /libavcodec/common.h
parent980a82b70baa754ce120ffe9a4ce9e66ea14edba (diff)
downloadffmpeg-3ebc7e04dea6072400d91c1c90eb3911754cee06.tar.gz
h264 loop filter optimizations
Originally committed as revision 2909 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/common.h')
-rw-r--r--libavcodec/common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h
index ef66954002..09643e1742 100644
--- a/libavcodec/common.h
+++ b/libavcodec/common.h
@@ -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];