Mercurial > libavcodec.hg
diff i386/dsputil_mmx.c @ 2745:42d3e9068e32 libavcodec
MMX for H.264 iDCT (adapted from x264)
author | lorenm |
---|---|
date | Tue, 31 May 2005 22:48:33 +0000 |
parents | 473ee06ec3a1 |
children | ba8ecddf5598 |
line wrap: on
line diff
--- a/i386/dsputil_mmx.c Mon May 30 22:02:00 2005 +0000 +++ b/i386/dsputil_mmx.c Tue May 31 22:48:33 2005 +0000 @@ -3205,6 +3205,8 @@ void ff_vp3_idct_mmx(int16_t *data); void ff_vp3_dsp_init_mmx(void); +void ff_h264_idct_add_mmx2(uint8_t *dst, int16_t *block, int stride); + /* XXX: those functions should be suppressed ASAP when all IDCTs are converted */ static void ff_libmpeg2mmx_idct_put(uint8_t *dest, int line_size, DCTELEM *block) @@ -3424,6 +3426,8 @@ c->vsad[4]= vsad_intra16_mmx2; #endif //CONFIG_ENCODERS + c->h264_idct_add= ff_h264_idct_add_mmx2; + if(!(avctx->flags & CODEC_FLAG_BITEXACT)){ c->put_no_rnd_pixels_tab[0][1] = put_no_rnd_pixels16_x2_mmx2; c->put_no_rnd_pixels_tab[0][2] = put_no_rnd_pixels16_y2_mmx2;