Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame^] | 1 | From c33e07f78982acfb0574a84fb523f8591e55c50e Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Sun, 11 Sep 2022 19:46:28 -0700 |
| 4 | Subject: [PATCH] subpel_variance_neon: Provide prototypes for missing |
| 5 | functions |
| 6 | |
| 7 | Fixes build with clang-15 |
| 8 | aom_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 |
| 9 | larations [-Wimplicit-function-declaration] |
| 10 | | return aom_variance8x8_neon(temp2, 8, dst, dst_stride, sse); |
| 11 | | ^ |
| 12 | |
| 13 | Upstream-Status: Pending |
| 14 | Signed-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 | |
| 19 | diff --git a/aom_dsp/arm/subpel_variance_neon.c b/aom_dsp/arm/subpel_variance_neon.c |
| 20 | index 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 | -- |
| 47 | 2.37.3 |
| 48 | |