[FFmpeg-cvslog] avfilter/x86/vf_bwdif: Remove obsolete MMXEXT functions

Andreas Rheinhardt git at videolan.org
Wed Jun 22 15:29:30 EEST 2022


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Jun 13 08:42:46 2022 +0200| [ed42a51930d9cca6dfed35c4af4b5b3a3f7f6a04] | committer: Andreas Rheinhardt

avfilter/x86/vf_bwdif: Remove obsolete MMXEXT functions

The only system which benefit from these are truely ancient
32bit x86s as all other systems use at least the SSE2 versions
(this includes all x64 cpus (which is why this code is restricted
to x86-32)).

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed42a51930d9cca6dfed35c4af4b5b3a3f7f6a04
---

 libavfilter/x86/vf_bwdif.asm    |  4 ----
 libavfilter/x86/vf_bwdif_init.c | 16 ----------------
 2 files changed, 20 deletions(-)

diff --git a/libavfilter/x86/vf_bwdif.asm b/libavfilter/x86/vf_bwdif.asm
index 147b7c6ac6..0b453da53b 100644
--- a/libavfilter/x86/vf_bwdif.asm
+++ b/libavfilter/x86/vf_bwdif.asm
@@ -264,7 +264,3 @@ INIT_XMM ssse3
 BWDIF
 INIT_XMM sse2
 BWDIF
-%if ARCH_X86_32
-INIT_MMX mmxext
-BWDIF
-%endif
diff --git a/libavfilter/x86/vf_bwdif_init.c b/libavfilter/x86/vf_bwdif_init.c
index f632c4f340..e24e5cd9b1 100644
--- a/libavfilter/x86/vf_bwdif_init.c
+++ b/libavfilter/x86/vf_bwdif_init.c
@@ -24,10 +24,6 @@
 #include "libavutil/x86/cpu.h"
 #include "libavfilter/bwdif.h"
 
-void ff_bwdif_filter_line_mmxext(void *dst, void *prev, void *cur, void *next,
-                                 int w, int prefs, int mrefs, int prefs2,
-                                 int mrefs2, int prefs3, int mrefs3, int prefs4,
-                                 int mrefs4, int parity, int clip_max);
 void ff_bwdif_filter_line_sse2(void *dst, void *prev, void *cur, void *next,
                                int w, int prefs, int mrefs, int prefs2,
                                int mrefs2, int prefs3, int mrefs3, int prefs4,
@@ -37,10 +33,6 @@ void ff_bwdif_filter_line_ssse3(void *dst, void *prev, void *cur, void *next,
                                 int mrefs2, int prefs3, int mrefs3, int prefs4,
                                 int mrefs4, int parity, int clip_max);
 
-void ff_bwdif_filter_line_12bit_mmxext(void *dst, void *prev, void *cur, void *next,
-                                       int w, int prefs, int mrefs, int prefs2,
-                                       int mrefs2, int prefs3, int mrefs3, int prefs4,
-                                       int mrefs4, int parity, int clip_max);
 void ff_bwdif_filter_line_12bit_sse2(void *dst, void *prev, void *cur, void *next,
                                      int w, int prefs, int mrefs, int prefs2,
                                      int mrefs2, int prefs3, int mrefs3, int prefs4,
@@ -57,19 +49,11 @@ av_cold void ff_bwdif_init_x86(BWDIFContext *bwdif)
     int bit_depth = (!yadif->csp) ? 8 : yadif->csp->comp[0].depth;
 
     if (bit_depth <= 8) {
-#if ARCH_X86_32
-        if (EXTERNAL_MMXEXT(cpu_flags))
-            bwdif->filter_line = ff_bwdif_filter_line_mmxext;
-#endif /* ARCH_X86_32 */
         if (EXTERNAL_SSE2(cpu_flags))
             bwdif->filter_line = ff_bwdif_filter_line_sse2;
         if (EXTERNAL_SSSE3(cpu_flags))
             bwdif->filter_line = ff_bwdif_filter_line_ssse3;
     } else if (bit_depth <= 12) {
-#if ARCH_X86_32
-        if (EXTERNAL_MMXEXT(cpu_flags))
-            bwdif->filter_line = ff_bwdif_filter_line_12bit_mmxext;
-#endif /* ARCH_X86_32 */
         if (EXTERNAL_SSE2(cpu_flags))
             bwdif->filter_line = ff_bwdif_filter_line_12bit_sse2;
         if (EXTERNAL_SSSE3(cpu_flags))



More information about the ffmpeg-cvslog mailing list