summaryrefslogtreecommitdiff
path: root/package/ffmpeg
diff options
context:
space:
mode:
authorOliver Schib <lich000king@yahoo.de>2016-01-09 11:58:08 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-01-09 20:59:48 +0100
commit75acb2aa20a707969eada5467db35c3f7175259c (patch)
tree342cc2f78d15506869394888ff8e429cc7ff8d1b /package/ffmpeg
parenta1ee92b47227125bfa22f4d122a8ff1a3a228652 (diff)
Adapt SSE optimisation for mplayer and ffmpeg
Add support for higher order SSE and make sure only one is selected at a time. Signed-off-by: Oliver Schib <lich000king@yahoo.de>
Diffstat (limited to 'package/ffmpeg')
-rw-r--r--package/ffmpeg/Makefile46
1 files changed, 43 insertions, 3 deletions
diff --git a/package/ffmpeg/Makefile b/package/ffmpeg/Makefile
index e7ff578f9..8466d1a93 100644
--- a/package/ffmpeg/Makefile
+++ b/package/ffmpeg/Makefile
@@ -106,10 +106,50 @@ CONFIGURE_CPU_OPTS:= --enable-mmx2
else
CONFIGURE_CPU_OPTS:= --disable-mmx2
endif
-ifeq ($(ADK_TARGET_CPU_WITH_SSE),y)
-CONFIGURE_CPU_OPTS:= --enable-sse
+ifeq (${ADK_TARGET_CPU_WITH_SSE4_2},y)
+CONFIGURE_CPU_OPTS+= --enable-sse42 \
+ --disable-sse4 \
+ --disable-ssse3 \
+ --disable-sse3 \
+ --disable-sse2 \
+ --disable-sse
else
-CONFIGURE_CPU_OPTS:= --disable-sse
+CONFIGURE_CPU_OPTS+= --disable-sse42
+ifeq (${ADK_TARGET_CPU_WITH_SSE4_1},y)
+CONFIGURE_CPU_OPTS+= --enable-sse4 \
+ --disable-ssse3 \
+ --disable-sse3 \
+ --disable-sse2 \
+ --disable-sse
+else
+CONFIGURE_CPU_OPTS+= --disable-sse4
+ifeq (${ADK_TARGET_CPU_WITH_SSSE3},y)
+CONFIGURE_CPU_OPTS+= --enable-ssse3 \
+ --disable-sse3 \
+ --disable-sse2 \
+ --disable-sse
+else
+CONFIGURE_CPU_OPTS+= --disable-ssse3
+ifeq (${ADK_TARGET_CPU_WITH_SSE3},y)
+CONFIGURE_CPU_OPTS+= --enable-sse3 \
+ --disable-sse2 \
+ --disable-sse
+else
+CONFIGURE_CPU_OPTS+= --disable-sse3
+ifeq (${ADK_TARGET_CPU_WITH_SSE2},y)
+CONFIGURE_CPU_OPTS+= --enable-sse2 \
+ --disable-sse
+else
+CONFIGURE_CPU_OPTS+= --disable-sse2
+ifeq (${ADK_TARGET_CPU_WITH_SSE},y)
+CONFIGURE_CPU_OPTS+= --enable-sse
+else
+CONFIGURE_CPU_OPTS+= --disable-sse
+endif
+endif
+endif
+endif
+endif
endif
ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y)
CONFIGURE_CPU_OPTS:= --enable-armv6