diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2015-03-10 23:11:52 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-14 11:45:11 +0100 |
commit | c3bf52713a8485f5bcba4c37ae7373c6b67cd1eb (patch) | |
tree | 58d9f96124e57b41a0ccfa8b3fd2bad98c6a4ef5 /libavcodec/x86/dct-test.c | |
parent | 7b05b5093ea67a3397b0c37cf398bab471e1ce2b (diff) | |
download | ffmpeg-c3bf52713a8485f5bcba4c37ae7373c6b67cd1eb.tar.gz |
x86: xvid_idct: port MMX iDCT to yasm
Also reduce the table duplication with SSE2 code, remove duplicated
macro parameters.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/dct-test.c')
-rw-r--r-- | libavcodec/x86/dct-test.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libavcodec/x86/dct-test.c b/libavcodec/x86/dct-test.c index e14ce9aac3..3a4c0df77c 100644 --- a/libavcodec/x86/dct-test.c +++ b/libavcodec/x86/dct-test.c @@ -60,11 +60,9 @@ static const struct algo idct_tab_arch[] = { #if HAVE_MMX_INLINE { "SIMPLE-MMX", ff_simple_idct_mmx, FF_IDCT_PERM_SIMPLE, AV_CPU_FLAG_MMX }, #endif -#if CONFIG_MPEG4_DECODER -#if HAVE_MMX_INLINE +#if CONFIG_MPEG4_DECODER && HAVE_YASM +#if ARCH_X86_32 { "XVID-MMX", ff_xvid_idct_mmx, FF_IDCT_PERM_NONE, AV_CPU_FLAG_MMX, 1 }, -#endif -#if HAVE_MMXEXT_INLINE { "XVID-MMXEXT", ff_xvid_idct_mmxext, FF_IDCT_PERM_NONE, AV_CPU_FLAG_MMXEXT, 1 }, #endif #if HAVE_SSE2_EXTERNAL @@ -73,7 +71,7 @@ static const struct algo idct_tab_arch[] = { { "PR-SSE2", ff_prores_idct_put_10_sse2_wrap, FF_IDCT_PERM_TRANSPOSE, AV_CPU_FLAG_SSE2, 1 }, #endif #endif -#endif /* CONFIG_MPEG4_DECODER */ +#endif /* CONFIG_MPEG4_DECODER && HAVE_YASM */ { 0 } }; |