comparison i386/dsputil_mmx.c @ 5933:6ce8f15fc02b libavcodec

add VC-1 MMX DSP functions, under MIT license. patch by Christophe GISQUET %christophe P gisquet A free P fr% original thread: date: Jul 7, 2007 12:52 PM subject: [FFmpeg-devel] [PATCH] VC-1 MMX DSP functions
author gpoirier
date Wed, 21 Nov 2007 22:41:31 +0000
parents f75ee7ea171b
children 55251379b5b1
comparison
equal deleted inserted replaced
5932:d457f0c01ec5 5933:6ce8f15fc02b
2836 PREFETCH(prefetch_mmx2, prefetcht0) 2836 PREFETCH(prefetch_mmx2, prefetcht0)
2837 PREFETCH(prefetch_3dnow, prefetch) 2837 PREFETCH(prefetch_3dnow, prefetch)
2838 #undef PREFETCH 2838 #undef PREFETCH
2839 2839
2840 #include "h264dsp_mmx.c" 2840 #include "h264dsp_mmx.c"
2841 #if defined(CONFIG_VC1_DECODER) || defined(CONFIG_WMV3_DECODER) \
2842 || defined(CONFIG_VC1_ENCODER) || defined(CONFIG_WMV3_ENCODER)
2843 #include "vc1dsp_mmx.c"
2844 #endif
2841 2845
2842 /* AVS specific */ 2846 /* AVS specific */
2843 void ff_cavsdsp_init_mmx2(DSPContext* c, AVCodecContext *avctx); 2847 void ff_cavsdsp_init_mmx2(DSPContext* c, AVCodecContext *avctx);
2844 2848
2845 void ff_put_cavs_qpel8_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) { 2849 void ff_put_cavs_qpel8_mc00_mmx2(uint8_t *dst, uint8_t *src, int stride) {
3625 3629
3626 #ifdef CONFIG_CAVS_DECODER 3630 #ifdef CONFIG_CAVS_DECODER
3627 ff_cavsdsp_init_mmx2(c, avctx); 3631 ff_cavsdsp_init_mmx2(c, avctx);
3628 #endif 3632 #endif
3629 3633
3634 #if defined(CONFIG_VC1_DECODER) || defined(CONFIG_WMV3_DECODER) \
3635 || defined(CONFIG_VC1_ENCODER) || defined(CONFIG_WMV3_ENCODER)
3636 ff_vc1dsp_init_mmx(c, avctx);
3637 #endif
3638
3630 #ifdef CONFIG_ENCODERS 3639 #ifdef CONFIG_ENCODERS
3631 c->sub_hfyu_median_prediction= sub_hfyu_median_prediction_mmx2; 3640 c->sub_hfyu_median_prediction= sub_hfyu_median_prediction_mmx2;
3632 #endif //CONFIG_ENCODERS 3641 #endif //CONFIG_ENCODERS
3633 } else if (mm_flags & MM_3DNOW) { 3642 } else if (mm_flags & MM_3DNOW) {
3634 c->prefetch = prefetch_3dnow; 3643 c->prefetch = prefetch_3dnow;