From 79da697a64eb0d9645cf15e02ededc6b30c41ac2 Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Tue, 6 Aug 2024 16:18:55 -0700
Subject: [PATCH] variance_neon.c: add missing !CONFIG_REALTIME_ONLY check
For 1:4/4:1 sizes.
This fixes some -Wmissing-prototypes warnings.
Bug: aomedia:42302428
Change-Id: I969917913938db8540256f1aaf1bbe503c89e3da
---
aom_dsp/arm/variance_neon.c | 15 +++++++++------
1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/aom_dsp/arm/variance_neon.c b/aom_dsp/arm/variance_neon.c
index ae1ad423ce..b37e94d495 100644
--- a/aom_dsp/arm/variance_neon.c
+++ b/aom_dsp/arm/variance_neon.c
@@ -203,25 +203,19 @@ static INLINE void variance_128xh_neon(const uint8_t *src, int src_stride,
VARIANCE_WXH_NEON(4, 4, 4)
VARIANCE_WXH_NEON(4, 8, 5)
-VARIANCE_WXH_NEON(4, 16, 6)
VARIANCE_WXH_NEON(8, 4, 5)
VARIANCE_WXH_NEON(8, 8, 6)
VARIANCE_WXH_NEON(8, 16, 7)
-VARIANCE_WXH_NEON(8, 32, 8)
-VARIANCE_WXH_NEON(16, 4, 6)
VARIANCE_WXH_NEON(16, 8, 7)
VARIANCE_WXH_NEON(16, 16, 8)
VARIANCE_WXH_NEON(16, 32, 9)
-VARIANCE_WXH_NEON(16, 64, 10)
-VARIANCE_WXH_NEON(32, 8, 8)
VARIANCE_WXH_NEON(32, 16, 9)
VARIANCE_WXH_NEON(32, 32, 10)
VARIANCE_WXH_NEON(32, 64, 11)
-VARIANCE_WXH_NEON(64, 16, 10)
VARIANCE_WXH_NEON(64, 32, 11)
VARIANCE_WXH_NEON(64, 64, 12)
VARIANCE_WXH_NEON(64, 128, 13)
@@ -229,6 +223,15 @@ VARIANCE_WXH_NEON(64, 128, 13)
VARIANCE_WXH_NEON(128, 64, 13)
VARIANCE_WXH_NEON(128, 128, 14)
+#if !CONFIG_REALTIME_ONLY
+VARIANCE_WXH_NEON(4, 16, 6)
+VARIANCE_WXH_NEON(8, 32, 8)
+VARIANCE_WXH_NEON(16, 4, 6)
+VARIANCE_WXH_NEON(16, 64, 10)
+VARIANCE_WXH_NEON(32, 8, 8)
+VARIANCE_WXH_NEON(64, 16, 10)
+#endif
+
#undef VARIANCE_WXH_NEON
// TODO(yunqingwang): Perform variance of two/four 8x8 blocks similar to that of