Mercurial > libavcodec.hg
comparison x86/dsputil_mmx.c @ 8818:17cc6df384a6 libavcodec
add SSE2 version of vp6_filter_diag
original patch by Zuxy Meng zuxy.meng _at_ gmail _dot_ com
author | aurel |
---|---|
date | Fri, 13 Feb 2009 00:02:33 +0000 |
parents | 492f8911992c |
children | a0d54042ea37 |
comparison
equal
deleted
inserted
replaced
8817:492f8911992c | 8818:17cc6df384a6 |
---|---|
30 #include "dsputil_mmx.h" | 30 #include "dsputil_mmx.h" |
31 #include "mmx.h" | 31 #include "mmx.h" |
32 #include "vp3dsp_mmx.h" | 32 #include "vp3dsp_mmx.h" |
33 #include "vp3dsp_sse2.h" | 33 #include "vp3dsp_sse2.h" |
34 #include "vp6dsp_mmx.h" | 34 #include "vp6dsp_mmx.h" |
35 #include "vp6dsp_sse2.h" | |
35 #include "idct_xvid.h" | 36 #include "idct_xvid.h" |
36 | 37 |
37 //#undef NDEBUG | 38 //#undef NDEBUG |
38 //#include <assert.h> | 39 //#include <assert.h> |
39 | 40 |
2899 H264_QPEL_FUNCS(2, 2, sse2); | 2900 H264_QPEL_FUNCS(2, 2, sse2); |
2900 H264_QPEL_FUNCS(2, 3, sse2); | 2901 H264_QPEL_FUNCS(2, 3, sse2); |
2901 H264_QPEL_FUNCS(3, 1, sse2); | 2902 H264_QPEL_FUNCS(3, 1, sse2); |
2902 H264_QPEL_FUNCS(3, 2, sse2); | 2903 H264_QPEL_FUNCS(3, 2, sse2); |
2903 H264_QPEL_FUNCS(3, 3, sse2); | 2904 H264_QPEL_FUNCS(3, 3, sse2); |
2905 | |
2906 if (CONFIG_VP6_DECODER) { | |
2907 c->vp6_filter_diag4 = ff_vp6_filter_diag4_sse2; | |
2908 } | |
2904 } | 2909 } |
2905 #if HAVE_SSSE3 | 2910 #if HAVE_SSSE3 |
2906 if(mm_flags & FF_MM_SSSE3){ | 2911 if(mm_flags & FF_MM_SSSE3){ |
2907 H264_QPEL_FUNCS(1, 0, ssse3); | 2912 H264_QPEL_FUNCS(1, 0, ssse3); |
2908 H264_QPEL_FUNCS(1, 1, ssse3); | 2913 H264_QPEL_FUNCS(1, 1, ssse3); |