Commit 38bab363 authored by Sven Neumann's avatar Sven Neumann Committed by Peter Korsgaard
Browse files

opus: allow to select fixed-point implementation



The default of choosing the fixed-point implementation if
the target hardware does not have floating-point unit is not
always the best choice. Modern ARM hardware has floating
point support but most likely the fixed-point implementation
in Opus will still perform better. In particular if your CPU
supports the NEON extension.

This commit allows to select the fixed-point implementation
manually and sets the default based on the availability of
a floating-point unit.

[Peter: force option for sw float, slightly reword]
Signed-off-by: default avatarSven Neumann <neumann@teufel.de>
Signed-off-by: default avatarPeter Korsgaard <peter@korsgaard.com>
parent 4ed1dc66
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -13,3 +13,14 @@ config BR2_PACKAGE_OPUS
	  quality stereo music.

	  http://opus-codec.org

if BR2_PACKAGE_OPUS

config BR2_PACKAGE_OPUS_FIXED_POINT
	bool "use fixed-point" if !BR2_SOFT_FLOAT
	default y if BR2_SOFT_FLOAT
	help
	  Compile without floating point operations (for machines
	  without a fast enough FPU).

endif
+1 −1
Original line number Diff line number Diff line
@@ -12,7 +12,7 @@ OPUS_INSTALL_STAGING = YES
OPUS_CONF_OPT = --disable-doc
OPUS_AUTORECONF = YES

ifeq ($(BR2_SOFT_FLOAT),y)
ifeq ($(BR2_PACKAGE_OPUS_FIXED_POINT),y)
OPUS_CONF_OPT += --enable-fixed-point
endif