From ddb29c194cc24baf70e497eda74f9d1b1488cc4f Mon Sep 17 00:00:00 2001
From: James Zern <[EMAIL REDACTED]>
Date: Tue, 28 May 2024 16:33:45 -0700
Subject: [PATCH] highbd_convolve_sve2.c: make some functions static
Fixes some -Wmissing-prototypes warnings.
Bug: aomedia:3416
Change-Id: Ic4fe46f362df66de66cbd38a3f630ce7ebf6d141
---
av1/common/arm/highbd_convolve_sve2.c | 38 +++++++++++++--------------
1 file changed, 18 insertions(+), 20 deletions(-)
diff --git a/av1/common/arm/highbd_convolve_sve2.c b/av1/common/arm/highbd_convolve_sve2.c
index e6e27719b..6ce9f36d9 100644
--- a/av1/common/arm/highbd_convolve_sve2.c
+++ b/av1/common/arm/highbd_convolve_sve2.c
@@ -562,10 +562,11 @@ static INLINE uint16x8_t highbd_convolve8_8_y(int16x8_t samples_lo[4],
return vminq_u16(res, max);
}
-void highbd_convolve_y_sr_8tap_sve2(const uint16_t *src, ptrdiff_t src_stride,
- uint16_t *dst, ptrdiff_t dst_stride,
- int width, int height,
- const int16_t *filter_y, int bd) {
+static void highbd_convolve_y_sr_8tap_sve2(const uint16_t *src,
+ ptrdiff_t src_stride, uint16_t *dst,
+ ptrdiff_t dst_stride, int width,
+ int height, const int16_t *filter_y,
+ int bd) {
assert(width >= 4 && height >= 4);
const int16x8_t y_filter = vld1q_s16(filter_y);
@@ -731,10 +732,11 @@ static INLINE uint16x8_t highbd_convolve4_8_y(int16x8_t samples[4],
return vminq_u16(res, max);
}
-void highbd_convolve_y_sr_4tap_sve2(const uint16_t *src, ptrdiff_t src_stride,
- uint16_t *dst, ptrdiff_t dst_stride,
- int width, int height,
- const int16_t *filter_y, int bd) {
+static void highbd_convolve_y_sr_4tap_sve2(const uint16_t *src,
+ ptrdiff_t src_stride, uint16_t *dst,
+ ptrdiff_t dst_stride, int width,
+ int height, const int16_t *filter_y,
+ int bd) {
assert(width >= 4 && height >= 4);
const int16x8_t y_filter =
@@ -1346,12 +1348,10 @@ static INLINE uint16x8_t highbd_convolve8_8_2d_v(
return vminq_u16(res, max);
}
-void highbd_convolve_2d_sr_vert_8tap_sve2(const uint16_t *src,
- ptrdiff_t src_stride, uint16_t *dst,
- ptrdiff_t dst_stride, int width,
- int height, const int16_t *filter_y,
- ConvolveParams *conv_params, int bd,
- const int y_offset) {
+static void highbd_convolve_2d_sr_vert_8tap_sve2(
+ const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst,
+ ptrdiff_t dst_stride, int width, int height, const int16_t *filter_y,
+ ConvolveParams *conv_params, int bd, const int y_offset) {
assert(width >= 4 && height >= 4);
const int64x2_t offset = vdupq_n_s64(y_offset);
const int32x4_t shift = vdupq_n_s32(-conv_params->round_1);
@@ -1536,12 +1536,10 @@ static INLINE uint16x8_t highbd_convolve4_8_2d_v(int16x8_t samples[4],
return vminq_u16(res, max);
}
-void highbd_convolve_2d_sr_vert_4tap_sve2(const uint16_t *src,
- ptrdiff_t src_stride, uint16_t *dst,
- ptrdiff_t dst_stride, int width,
- int height, const int16_t *filter_y,
- ConvolveParams *conv_params, int bd,
- const int y_offset) {
+static void highbd_convolve_2d_sr_vert_4tap_sve2(
+ const uint16_t *src, ptrdiff_t src_stride, uint16_t *dst,
+ ptrdiff_t dst_stride, int width, int height, const int16_t *filter_y,
+ ConvolveParams *conv_params, int bd, const int y_offset) {
assert(width >= 4 && height >= 4);
const int64x2_t offset = vdupq_n_s64(y_offset);
const int32x4_t shift = vdupq_n_s32(-conv_params->round_1);