comparison x86/dsputil_mmx.c @ 12356:1241c824de46 libavcodec

Move cavs dsp functions to their own struct
author mru
date Tue, 03 Aug 2010 20:59:00 +0000
parents c6509c205922
children 09a31ef6ed58
comparison
equal deleted inserted replaced
12355:e25a985a550c 12356:1241c824de46
2725 #if HAVE_7REGS && HAVE_TEN_OPERANDS 2725 #if HAVE_7REGS && HAVE_TEN_OPERANDS
2726 if( mm_flags&FF_MM_3DNOW ) 2726 if( mm_flags&FF_MM_3DNOW )
2727 c->add_hfyu_median_prediction = add_hfyu_median_prediction_cmov; 2727 c->add_hfyu_median_prediction = add_hfyu_median_prediction_cmov;
2728 #endif 2728 #endif
2729 2729
2730 if (CONFIG_CAVS_DECODER)
2731 ff_cavsdsp_init_mmx2(c, avctx);
2732
2733 if (CONFIG_VC1_DECODER) 2730 if (CONFIG_VC1_DECODER)
2734 ff_vc1dsp_init_mmx(c, avctx); 2731 ff_vc1dsp_init_mmx(c, avctx);
2735 2732
2736 c->add_png_paeth_prediction= add_png_paeth_prediction_mmx2; 2733 c->add_png_paeth_prediction= add_png_paeth_prediction_mmx2;
2737 } else if (mm_flags & FF_MM_3DNOW) { 2734 } else if (mm_flags & FF_MM_3DNOW) {
2788 c->avg_h264_chroma_pixels_tab[0]= avg_h264_chroma_mc8_3dnow_rnd; 2785 c->avg_h264_chroma_pixels_tab[0]= avg_h264_chroma_mc8_3dnow_rnd;
2789 c->avg_h264_chroma_pixels_tab[1]= avg_h264_chroma_mc4_3dnow; 2786 c->avg_h264_chroma_pixels_tab[1]= avg_h264_chroma_mc4_3dnow;
2790 2787
2791 c->avg_rv40_chroma_pixels_tab[0]= avg_rv40_chroma_mc8_3dnow; 2788 c->avg_rv40_chroma_pixels_tab[0]= avg_rv40_chroma_mc8_3dnow;
2792 c->avg_rv40_chroma_pixels_tab[1]= avg_rv40_chroma_mc4_3dnow; 2789 c->avg_rv40_chroma_pixels_tab[1]= avg_rv40_chroma_mc4_3dnow;
2793
2794 if (CONFIG_CAVS_DECODER)
2795 ff_cavsdsp_init_3dnow(c, avctx);
2796 } 2790 }
2797 2791
2798 2792
2799 #define H264_QPEL_FUNCS(x, y, CPU)\ 2793 #define H264_QPEL_FUNCS(x, y, CPU)\
2800 c->put_h264_qpel_pixels_tab[0][x+y*4] = put_h264_qpel16_mc##x##y##_##CPU;\ 2794 c->put_h264_qpel_pixels_tab[0][x+y*4] = put_h264_qpel16_mc##x##y##_##CPU;\