mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 16:07:42 +00:00
packages: add AVX/AVX2 support to ffmpeg/opencv
Signed-off-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
f92e6219cf
commit
1cd92d2d68
@ -301,6 +301,18 @@ else
|
|||||||
FFMPEG_CONF_OPTS += --disable-sse42
|
FFMPEG_CONF_OPTS += --disable-sse42
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_X86_CPU_HAS_AVX),y)
|
||||||
|
FFMPEG_CONF_OPTS += --enable-avx
|
||||||
|
else
|
||||||
|
FFMPEG_CONF_OPTS += --disable-avx
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_X86_CPU_HAS_AVX2),y)
|
||||||
|
FFMPEG_CONF_OPTS += --enable-avx2
|
||||||
|
else
|
||||||
|
FFMPEG_CONF_OPTS += --disable-avx2
|
||||||
|
endif
|
||||||
|
|
||||||
# Explicitly disable everything that doesn't match for ARM
|
# Explicitly disable everything that doesn't match for ARM
|
||||||
# FFMPEG "autodetects" by compiling an extended instruction via AS
|
# FFMPEG "autodetects" by compiling an extended instruction via AS
|
||||||
# This works on compilers that aren't built for generic by default
|
# This works on compilers that aren't built for generic by default
|
||||||
|
@ -77,6 +77,8 @@ OPENCV_CONF_OPTS += \
|
|||||||
-DENABLE_SSE3=$(if $(BR2_X86_CPU_HAS_SSE3),ON,OFF) \
|
-DENABLE_SSE3=$(if $(BR2_X86_CPU_HAS_SSE3),ON,OFF) \
|
||||||
-DENABLE_SSE41=$(if $(BR2_X86_CPU_HAS_SSE4),ON,OFF) \
|
-DENABLE_SSE41=$(if $(BR2_X86_CPU_HAS_SSE4),ON,OFF) \
|
||||||
-DENABLE_SSE42=$(if $(BR2_X86_CPU_HAS_SSE42),ON,OFF) \
|
-DENABLE_SSE42=$(if $(BR2_X86_CPU_HAS_SSE42),ON,OFF) \
|
||||||
|
-DENABLE_AVX=$(if $(BR2_X86_CPU_HAS_AVX),ON,OFF) \
|
||||||
|
-DENABLE_AVX2=$(if $(BR2_X86_CPU_HAS_AVX2),ON,OFF) \
|
||||||
-DENABLE_SSSE3=$(if $(BR2_X86_CPU_HAS_SSSE3),ON,OFF)
|
-DENABLE_SSSE3=$(if $(BR2_X86_CPU_HAS_SSSE3),ON,OFF)
|
||||||
|
|
||||||
# Cuda stuff
|
# Cuda stuff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user