summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-09-11 20:03:15 -0700
committerKhem Raj <raj.khem@gmail.com>2022-09-11 20:42:05 -0700
commit15f5ed38536b6aa7ff239cb7132b3c8b61ebe2ac (patch)
treec1b800e41238b9e6478d3317cdd727766db78407
parent28d9c472f397f70d8e3a8a9f2b20567411459a62 (diff)
downloadmeta-openembedded-15f5ed38536b6aa7ff239cb7132b3c8b61ebe2ac.tar.gz
aom: Provide missing function prototypes
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-multimedia/recipes-multimedia/aom/aom/0001-subpel_variance_neon-Provide-prototypes-for-missing-.patch48
-rw-r--r--meta-multimedia/recipes-multimedia/aom/aom_3.4.0.bb4
2 files changed, 51 insertions, 1 deletions
diff --git a/meta-multimedia/recipes-multimedia/aom/aom/0001-subpel_variance_neon-Provide-prototypes-for-missing-.patch b/meta-multimedia/recipes-multimedia/aom/aom/0001-subpel_variance_neon-Provide-prototypes-for-missing-.patch
new file mode 100644
index 0000000000..100507cdec
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/aom/aom/0001-subpel_variance_neon-Provide-prototypes-for-missing-.patch
@@ -0,0 +1,48 @@
1From c33e07f78982acfb0574a84fb523f8591e55c50e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sun, 11 Sep 2022 19:46:28 -0700
4Subject: [PATCH] subpel_variance_neon: Provide prototypes for missing
5 functions
6
7Fixes build with clang-15
8aom_dsp/arm/subpel_variance_neon.c:121:10: error: call to undeclared function 'aom_variance8x8_neon'; ISO C99 and later do not support implicit function dec
9larations [-Wimplicit-function-declaration]
10| return aom_variance8x8_neon(temp2, 8, dst, dst_stride, sse);
11| ^
12
13Upstream-Status: Pending
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16 aom_dsp/arm/subpel_variance_neon.c | 16 ++++++++++++++++
17 1 file changed, 16 insertions(+)
18
19diff --git a/aom_dsp/arm/subpel_variance_neon.c b/aom_dsp/arm/subpel_variance_neon.c
20index 4ecf891cbeb..859168ea0c5 100644
21--- a/aom_dsp/arm/subpel_variance_neon.c
22+++ b/aom_dsp/arm/subpel_variance_neon.c
23@@ -20,6 +20,22 @@
24 #include "aom_dsp/aom_filter.h"
25 #include "aom_dsp/variance.h"
26
27+extern unsigned int aom_variance8x8_neon(const uint8_t *a, int a_stride,
28+ const uint8_t *b, int b_stride,
29+ unsigned int *sse);
30+
31+extern unsigned int aom_variance16x16_neon(const uint8_t *a, int a_stride,
32+ const uint8_t *b, int b_stride,
33+ unsigned int *sse);
34+
35+extern unsigned int aom_variance32x32_neon(const uint8_t *a, int a_stride,
36+ const uint8_t *b, int b_stride,
37+ unsigned int *sse);
38+
39+extern unsigned int aom_variance64x64_neon(const uint8_t *a, int a_stride,
40+ const uint8_t *b, int b_stride,
41+ unsigned int *sse);
42+
43 // Load 2 sets of 4 bytes when alignment is not guaranteed.
44 static INLINE uint8x8_t load_unaligned_u8(const uint8_t *buf, int stride) {
45 uint32_t a;
46--
472.37.3
48
diff --git a/meta-multimedia/recipes-multimedia/aom/aom_3.4.0.bb b/meta-multimedia/recipes-multimedia/aom/aom_3.4.0.bb
index 36db45e265..9cd6f7a9e9 100644
--- a/meta-multimedia/recipes-multimedia/aom/aom_3.4.0.bb
+++ b/meta-multimedia/recipes-multimedia/aom/aom_3.4.0.bb
@@ -6,7 +6,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=6ea91368c1bbdf877159435572b931f5 \
6 file://PATENTS;md5=e69ad12202bd20da3c76a5d3648cfa83 \ 6 file://PATENTS;md5=e69ad12202bd20da3c76a5d3648cfa83 \
7 " 7 "
8 8
9SRC_URI = "git://aomedia.googlesource.com/aom;protocol=https;branch=main" 9SRC_URI = "git://aomedia.googlesource.com/aom;protocol=https;branch=main \
10 file://0001-subpel_variance_neon-Provide-prototypes-for-missing-.patch \
11 "
10 12
11SRCREV = "fd0c9275d36930a6eea6d3c35972e7cf9c512944" 13SRCREV = "fd0c9275d36930a6eea6d3c35972e7cf9c512944"
12 14