new package: libaom

This commit is contained in:
Lucy Phipps 2021-08-04 15:27:28 +01:00
parent 3df72143ee
commit e90c91ae49
No known key found for this signature in database
GPG Key ID: 8F688A3DB7869BFE
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,26 @@
diff --git a/aom_ports/arm_cpudetect.c b/aom_ports/arm_cpudetect.c
index 1696f15bf..b0b011bcc 100644
--- a/aom_ports/arm_cpudetect.c
+++ b/aom_ports/arm_cpudetect.c
@@ -88,20 +88,17 @@ int aom_arm_cpu_caps(void) {
}
#elif defined(__ANDROID__) /* end _MSC_VER */
-#include <cpu-features.h>
int aom_arm_cpu_caps(void) {
int flags;
int mask;
- uint64_t features;
if (!arm_cpu_env_flags(&flags)) {
return flags;
}
mask = arm_cpu_env_mask();
- features = android_getCpuFeatures();
#if HAVE_NEON
- if (features & ANDROID_CPU_ARM_FEATURE_NEON) flags |= HAS_NEON;
+ flags |= HAS_NEON;
#endif /* HAVE_NEON */
return flags & mask;
}

7
packages/libaom/build.sh Normal file
View File

@ -0,0 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://aomedia.org/
TERMUX_PKG_DESCRIPTION="AV1 Video Codec Library"
TERMUX_PKG_LICENSE="BSD 2-Clause, custom"
TERMUX_PKG_LICENSE_FILE="LICENSE, PATENTS"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.1.2
TERMUX_PKG_SRCURL=https://aomedia.googlesource.com/aom.git