diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2002-10-16 19:55:49 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2002-10-16 19:55:49 +0000 |
commit | 073b013d0000eabe642a8fb09c1046e8b1224760 (patch) | |
tree | f3ac2e5b70193fccbdfab1a6fab5f1c5a1663349 /libavcodec/common.h | |
parent | 46fd0de8a7da2d59d7e89cc9b07088c46455f2c1 (diff) | |
download | ffmpeg-073b013d0000eabe642a8fb09c1046e8b1224760.tar.gz |
complete mpeg4 GMC decoding support
Originally committed as revision 1046 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/common.h')
-rw-r--r-- | libavcodec/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/common.h b/libavcodec/common.h index fd37e9abc8..ce26697816 100644 --- a/libavcodec/common.h +++ b/libavcodec/common.h @@ -157,6 +157,8 @@ inline void dprintf(const char* fmt,...) {} # define av_abort() do { fprintf(stderr, "Abort at %s:%d\n", __FILE__, __LINE__); abort(); } while (0) +//rounded divison & shift +#define RSHIFT(a,b) ((a) > 0 ? ((a) + (1<<((b)-1)))>>(b) : ((a) + (1<<((b)-1))-1)>>(b)) /* assume b>0 */ #define ROUNDED_DIV(a,b) (((a)>0 ? (a) + ((b)>>1) : (a) - ((b)>>1))/(b)) #define ABS(a) ((a) >= 0 ? (a) : (-(a))) |