comparison i386/dsputil_mmx.c @ 6522:dfa76e0734e5 libavcodec

Add missed call to ff_cavsdsp_init_3dnow() in dsputil_init_mmx()
author zuxy
date Fri, 21 Mar 2008 12:36:49 +0000
parents 713c4fd84e0b
children e1208c4f8898
comparison
equal deleted inserted replaced
6521:bac421a6c4da 6522:dfa76e0734e5
1708 1708
1709 #include "h264dsp_mmx.c" 1709 #include "h264dsp_mmx.c"
1710 1710
1711 /* CAVS specific */ 1711 /* CAVS specific */
1712 void ff_cavsdsp_init_mmx2(DSPContext* c, AVCodecContext *avctx); 1712 void ff_cavsdsp_init_mmx2(DSPContext* c, AVCodecContext *avctx);
1713 void ff_cavsdsp_init_3dnow(DSPContext* c, AVCodecContext *avctx);
1713 1714
1714 void ff_put_cavs_qpel8_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) { 1715 void ff_put_cavs_qpel8_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) {
1715 put_pixels8_mmx(dst, src, stride, 8); 1716 put_pixels8_mmx(dst, src, stride, 8);
1716 } 1717 }
1717 void ff_avg_cavs_qpel8_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) { 1718 void ff_avg_cavs_qpel8_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) {
2326 SET_QPEL_FUNCS(avg_2tap_qpel, 0, 16, 3dnow); 2327 SET_QPEL_FUNCS(avg_2tap_qpel, 0, 16, 3dnow);
2327 SET_QPEL_FUNCS(avg_2tap_qpel, 1, 8, 3dnow); 2328 SET_QPEL_FUNCS(avg_2tap_qpel, 1, 8, 3dnow);
2328 2329
2329 c->avg_h264_chroma_pixels_tab[0]= avg_h264_chroma_mc8_3dnow_rnd; 2330 c->avg_h264_chroma_pixels_tab[0]= avg_h264_chroma_mc8_3dnow_rnd;
2330 c->avg_h264_chroma_pixels_tab[1]= avg_h264_chroma_mc4_3dnow; 2331 c->avg_h264_chroma_pixels_tab[1]= avg_h264_chroma_mc4_3dnow;
2332
2333 if (ENABLE_CAVS_DECODER)
2334 ff_cavsdsp_init_3dnow(c, avctx);
2331 } 2335 }
2332 2336
2333 2337
2334 #define H264_QPEL_FUNCS(x, y, CPU)\ 2338 #define H264_QPEL_FUNCS(x, y, CPU)\
2335 c->put_h264_qpel_pixels_tab[0][x+y*4] = put_h264_qpel16_mc##x##y##_##CPU;\ 2339 c->put_h264_qpel_pixels_tab[0][x+y*4] = put_h264_qpel16_mc##x##y##_##CPU;\