Mercurial > libavcodec.hg
comparison x86/dsputil_mmx.c @ 12417:9f06475db098 libavcodec
Move vp6_filter_diag4() from DSPContext to VP56DSPContext.
author | rbultje |
---|---|
date | Wed, 25 Aug 2010 13:42:28 +0000 |
parents | 3fc4c625b6f3 |
children | fe78a4548d12 |
comparison
equal
deleted
inserted
replaced
12416:87e6af0a6a5a | 12417:9f06475db098 |
---|---|
28 #include "libavcodec/mpegvideo.h" | 28 #include "libavcodec/mpegvideo.h" |
29 #include "libavcodec/simple_idct.h" | 29 #include "libavcodec/simple_idct.h" |
30 #include "dsputil_mmx.h" | 30 #include "dsputil_mmx.h" |
31 #include "vp3dsp_mmx.h" | 31 #include "vp3dsp_mmx.h" |
32 #include "vp3dsp_sse2.h" | 32 #include "vp3dsp_sse2.h" |
33 #include "vp6dsp_mmx.h" | |
34 #include "vp6dsp_sse2.h" | |
35 #include "idct_xvid.h" | 33 #include "idct_xvid.h" |
36 | 34 |
37 //#undef NDEBUG | 35 //#undef NDEBUG |
38 //#include <assert.h> | 36 //#include <assert.h> |
39 | 37 |
2624 c->put_no_rnd_vc1_chroma_pixels_tab[0]= put_vc1_chroma_mc8_mmx_nornd; | 2622 c->put_no_rnd_vc1_chroma_pixels_tab[0]= put_vc1_chroma_mc8_mmx_nornd; |
2625 | 2623 |
2626 c->put_rv40_chroma_pixels_tab[0]= put_rv40_chroma_mc8_mmx; | 2624 c->put_rv40_chroma_pixels_tab[0]= put_rv40_chroma_mc8_mmx; |
2627 c->put_rv40_chroma_pixels_tab[1]= put_rv40_chroma_mc4_mmx; | 2625 c->put_rv40_chroma_pixels_tab[1]= put_rv40_chroma_mc4_mmx; |
2628 | 2626 |
2629 if (CONFIG_VP6_DECODER) { | |
2630 c->vp6_filter_diag4 = ff_vp6_filter_diag4_mmx; | |
2631 } | |
2632 | |
2633 if (mm_flags & FF_MM_MMX2) { | 2627 if (mm_flags & FF_MM_MMX2) { |
2634 c->prefetch = prefetch_mmx2; | 2628 c->prefetch = prefetch_mmx2; |
2635 | 2629 |
2636 c->put_pixels_tab[0][1] = put_pixels16_x2_mmx2; | 2630 c->put_pixels_tab[0][1] = put_pixels16_x2_mmx2; |
2637 c->put_pixels_tab[0][2] = put_pixels16_y2_mmx2; | 2631 c->put_pixels_tab[0][2] = put_pixels16_y2_mmx2; |
2810 H264_QPEL_FUNCS(2, 2, sse2); | 2804 H264_QPEL_FUNCS(2, 2, sse2); |
2811 H264_QPEL_FUNCS(2, 3, sse2); | 2805 H264_QPEL_FUNCS(2, 3, sse2); |
2812 H264_QPEL_FUNCS(3, 1, sse2); | 2806 H264_QPEL_FUNCS(3, 1, sse2); |
2813 H264_QPEL_FUNCS(3, 2, sse2); | 2807 H264_QPEL_FUNCS(3, 2, sse2); |
2814 H264_QPEL_FUNCS(3, 3, sse2); | 2808 H264_QPEL_FUNCS(3, 3, sse2); |
2815 | |
2816 if (CONFIG_VP6_DECODER) { | |
2817 c->vp6_filter_diag4 = ff_vp6_filter_diag4_sse2; | |
2818 } | |
2819 } | 2809 } |
2820 #if HAVE_SSSE3 | 2810 #if HAVE_SSSE3 |
2821 if(mm_flags & FF_MM_SSSE3){ | 2811 if(mm_flags & FF_MM_SSSE3){ |
2822 H264_QPEL_FUNCS(1, 0, ssse3); | 2812 H264_QPEL_FUNCS(1, 0, ssse3); |
2823 H264_QPEL_FUNCS(1, 1, ssse3); | 2813 H264_QPEL_FUNCS(1, 1, ssse3); |