diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-11-11 09:44:59 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2002-11-11 09:44:59 +0000 |
commit | 85bd552606ec60eeda76728734f772a8fde27622 (patch) | |
tree | 440dc143e83659bb20c0e41aa932f5917f75aed3 /libavcodec/i386/mpegvideo_mmx.c | |
parent | ec7e0bf0fd738afcf5022fc13a3964cb28ece12c (diff) | |
download | ffmpeg-85bd552606ec60eeda76728734f772a8fde27622.tar.gz |
* using DSPContext - so each codec could use its local (sub)set of CPU extension
* fixing compiler warning about uninit level
Originally committed as revision 1196 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/mpegvideo_mmx.c')
-rw-r--r-- | libavcodec/i386/mpegvideo_mmx.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libavcodec/i386/mpegvideo_mmx.c b/libavcodec/i386/mpegvideo_mmx.c index 8645fa3709..cb7af3e62e 100644 --- a/libavcodec/i386/mpegvideo_mmx.c +++ b/libavcodec/i386/mpegvideo_mmx.c @@ -55,7 +55,8 @@ static void dct_unquantize_h263_mmx(MpegEncContext *s, } nCoeffs=63; } else { - nCoeffs= s->inter_scantable.raster_end[ s->block_last_index[n] ]; + nCoeffs= s->inter_scantable.raster_end[ s->block_last_index[n] ]; + level = 0;/* keep gcc quiet */ } //printf("%d %d ", qmul, qadd); asm volatile( @@ -507,22 +508,22 @@ void ff_mmxext_idct(DCTELEM *block); static void ff_libmpeg2mmx_idct_put(UINT8 *dest, int line_size, DCTELEM *block) { ff_mmx_idct (block); - put_pixels_clamped(block, dest, line_size); + put_pixels_clamped_mmx(block, dest, line_size); } static void ff_libmpeg2mmx_idct_add(UINT8 *dest, int line_size, DCTELEM *block) { ff_mmx_idct (block); - add_pixels_clamped(block, dest, line_size); + add_pixels_clamped_mmx(block, dest, line_size); } static void ff_libmpeg2mmx2_idct_put(UINT8 *dest, int line_size, DCTELEM *block) { ff_mmxext_idct (block); - put_pixels_clamped(block, dest, line_size); + put_pixels_clamped_mmx(block, dest, line_size); } static void ff_libmpeg2mmx2_idct_add(UINT8 *dest, int line_size, DCTELEM *block) { ff_mmxext_idct (block); - add_pixels_clamped(block, dest, line_size); + add_pixels_clamped_mmx(block, dest, line_size); } void MPV_common_init_mmx(MpegEncContext *s) |