blob: 100507cdec8380c252962212809ebfd2e72e04b7 [file] [log] [blame]
Andrew Geissler87f5cff2022-09-30 13:13:31 -05001From 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