diff options
author | Diego Biurrun <diego@biurrun.de> | 2013-02-26 20:29:48 +0400 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2013-02-27 02:36:24 +0400 |
commit | 096cc11ec102701a18951b4f0437d609081ca1dd (patch) | |
tree | a2647b149a1b70b33a9b158dc43c0218d6b1da5c /libavcodec/x86/vc1dsp_init.c | |
parent | 31a23a0dc663bd42bf593275971b4277a479b73d (diff) |
x86: vc1dsp: Move ff_avg_vc1_mspel_mc00_mmxext out of dsputil_mmx.c
Diffstat (limited to 'libavcodec/x86/vc1dsp_init.c')
-rw-r--r-- | libavcodec/x86/vc1dsp_init.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/x86/vc1dsp_init.c b/libavcodec/x86/vc1dsp_init.c index 230d06f0c0..3f0b67ce67 100644 --- a/libavcodec/x86/vc1dsp_init.c +++ b/libavcodec/x86/vc1dsp_init.c @@ -27,6 +27,7 @@ #include "libavutil/cpu.h" #include "libavutil/x86/cpu.h" #include "libavcodec/vc1dsp.h" +#include "dsputil_mmx.h" #include "vc1dsp.h" #include "config.h" @@ -60,6 +61,12 @@ static void vc1_h_loop_filter16_sse4(uint8_t *src, int stride, int pq) ff_vc1_h_loop_filter8_sse4(src, stride, pq); ff_vc1_h_loop_filter8_sse4(src+8*stride, stride, pq); } + +static void avg_vc1_mspel_mc00_mmxext(uint8_t *dst, const uint8_t *src, + int stride, int rnd) +{ + ff_avg_pixels8_mmxext(dst, src, stride, 8); +} #endif /* HAVE_YASM */ void ff_put_vc1_chroma_mc8_nornd_mmx (uint8_t *dst, uint8_t *src, @@ -100,6 +107,8 @@ av_cold void ff_vc1dsp_init_x86(VC1DSPContext *dsp) if (mm_flags & AV_CPU_FLAG_MMXEXT) { ASSIGN_LF(mmxext); dsp->avg_no_rnd_vc1_chroma_pixels_tab[0] = ff_avg_vc1_chroma_mc8_nornd_mmxext; + + dsp->avg_vc1_mspel_pixels_tab[0] = avg_vc1_mspel_mc00_mmxext; } else if (mm_flags & AV_CPU_FLAG_3DNOW) { dsp->avg_no_rnd_vc1_chroma_pixels_tab[0] = ff_avg_vc1_chroma_mc8_nornd_3dnow; } |