diff options
author | Juanjo <pulento@users.sourceforge.net> | 2002-05-02 04:39:45 +0000 |
---|---|---|
committer | Juanjo <pulento@users.sourceforge.net> | 2002-05-02 04:39:45 +0000 |
commit | ef5b1b5a7ee2d4bce47382e74fe4c88d207c641a (patch) | |
tree | f732b2cf29ab34f4115e94d82a6a21aabfe73066 /libavcodec/i386/mpegvideo_mmx_template.c | |
parent | 95c79a24e5429c510a7e17e84fc02b452060578c (diff) | |
download | ffmpeg-ef5b1b5a7ee2d4bce47382e74fe4c88d207c641a.tar.gz |
- Advanced Intra Coding (AIC) support for H.263+ encoder, just DC by now.
- Bug fix H.263+ AIC tables.
- Warning fixes.
Originally committed as revision 431 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/mpegvideo_mmx_template.c')
-rw-r--r-- | libavcodec/i386/mpegvideo_mmx_template.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/i386/mpegvideo_mmx_template.c b/libavcodec/i386/mpegvideo_mmx_template.c index 3f9f9d78ee..ae72bcaa67 100644 --- a/libavcodec/i386/mpegvideo_mmx_template.c +++ b/libavcodec/i386/mpegvideo_mmx_template.c @@ -48,6 +48,7 @@ static int RENAME(dct_quantize)(MpegEncContext *s, else q = s->c_dc_scale; /* note: block[0] is assumed to be positive */ + if (!s->h263_aic) { #if 1 asm volatile ( "xorl %%edx, %%edx \n\t" @@ -65,6 +66,10 @@ static int RENAME(dct_quantize)(MpegEncContext *s, : "%edx" ); #endif + } else + /* For AIC we skip quant/dequant of INTRADC */ + level = block[0]; + block[0]=0; //avoid fake overflow // temp_block[0] = (block[0] + (q >> 1)) / q; last_non_zero_p1 = 1; |