* 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
pull/126/head
Zdenek Kabelac 22 years ago
parent ec7e0bf0fd
commit 85bd552606
  1. 11
      libavcodec/i386/mpegvideo_mmx.c

@ -55,7 +55,8 @@ static void dct_unquantize_h263_mmx(MpegEncContext *s,
} }
nCoeffs=63; nCoeffs=63;
} else { } 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); //printf("%d %d ", qmul, qadd);
asm volatile( 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) static void ff_libmpeg2mmx_idct_put(UINT8 *dest, int line_size, DCTELEM *block)
{ {
ff_mmx_idct (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) static void ff_libmpeg2mmx_idct_add(UINT8 *dest, int line_size, DCTELEM *block)
{ {
ff_mmx_idct (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) static void ff_libmpeg2mmx2_idct_put(UINT8 *dest, int line_size, DCTELEM *block)
{ {
ff_mmxext_idct (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) static void ff_libmpeg2mmx2_idct_add(UINT8 *dest, int line_size, DCTELEM *block)
{ {
ff_mmxext_idct (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) void MPV_common_init_mmx(MpegEncContext *s)

Loading…
Cancel
Save