diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2005-05-31 22:48:33 +0000 |
---|---|---|
committer | Loren Merritt <lorenm@u.washington.edu> | 2005-05-31 22:48:33 +0000 |
commit | 1d62fc856067e7c2b1379ac1e2938b16497e9b25 (patch) | |
tree | 0d5308aee9fe558558ad139471a99a2385ec10ab /libavcodec/i386/dsputil_mmx.c | |
parent | ef7b5aee5decccb1ff33fd99d80762ca017cc82e (diff) | |
download | ffmpeg-1d62fc856067e7c2b1379ac1e2938b16497e9b25.tar.gz |
MMX for H.264 iDCT (adapted from x264)
Originally committed as revision 4329 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/dsputil_mmx.c')
-rw-r--r-- | libavcodec/i386/dsputil_mmx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c index 32565c3d3f..7b905f6448 100644 --- a/libavcodec/i386/dsputil_mmx.c +++ b/libavcodec/i386/dsputil_mmx.c @@ -3205,6 +3205,8 @@ void ff_vp3_idct_sse2(int16_t *input_data); 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 @@ void dsputil_init_mmx(DSPContext* c, AVCodecContext *avctx) 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; |