summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchiyotsai <chiyotsai@google.com>2023-05-03 13:34:41 -0700
committerchiyotsai <chiyotsai@google.com>2023-05-03 14:12:19 -0700
commit8782fd070df84baaa1a7eafc2848de5ddd513078 (patch)
treec963a7a82909f2680a813b46e96b3ab74c81e5ab
parent3dbadd1b83ce83b804f7dc2034fb51870365e337 (diff)
downloadlibvpx-8782fd070df84baaa1a7eafc2848de5ddd513078.tar.gz
Fix mismatched param names in vpx_dsp/arm/highbd_avg_neon.c
Change-Id: Ibf00a6e1029284e637b10ef01ac9b31ffadc74ca
-rw-r--r--vpx_dsp/arm/highbd_avg_neon.c59
1 files changed, 29 insertions, 30 deletions
diff --git a/vpx_dsp/arm/highbd_avg_neon.c b/vpx_dsp/arm/highbd_avg_neon.c
index fc10197d7..0abdc037b 100644
--- a/vpx_dsp/arm/highbd_avg_neon.c
+++ b/vpx_dsp/arm/highbd_avg_neon.c
@@ -16,18 +16,18 @@
#include "vpx_dsp/arm/mem_neon.h"
#include "vpx_dsp/arm/sum_neon.h"
-uint32_t vpx_highbd_avg_4x4_neon(const uint8_t *a, int a_stride) {
- const uint16_t *a_ptr = CONVERT_TO_SHORTPTR(a);
- const uint16x8_t a0 = load_unaligned_u16q(a_ptr + 0 * a_stride, a_stride);
- const uint16x8_t a1 = load_unaligned_u16q(a_ptr + 2 * a_stride, a_stride);
+uint32_t vpx_highbd_avg_4x4_neon(const uint8_t *s8, int p) {
+ const uint16_t *a_ptr = CONVERT_TO_SHORTPTR(s8);
+ const uint16x8_t a0 = load_unaligned_u16q(a_ptr + 0 * p, p);
+ const uint16x8_t a1 = load_unaligned_u16q(a_ptr + 2 * p, p);
return (horizontal_add_uint16x8(vaddq_u16(a0, a1)) + (1 << 3)) >> 4;
}
-uint32_t vpx_highbd_avg_8x8_neon(const uint8_t *a, int a_stride) {
- const uint16_t *a_ptr = CONVERT_TO_SHORTPTR(a);
+uint32_t vpx_highbd_avg_8x8_neon(const uint8_t *s8, int p) {
+ const uint16_t *a_ptr = CONVERT_TO_SHORTPTR(s8);
uint16x8_t sum, a0, a1, a2, a3, a4, a5, a6, a7;
- load_u16_8x8(a_ptr, a_stride, &a0, &a1, &a2, &a3, &a4, &a5, &a6, &a7);
+ load_u16_8x8(a_ptr, p, &a0, &a1, &a2, &a3, &a4, &a5, &a6, &a7);
sum = vaddq_u16(a0, a1);
sum = vaddq_u16(sum, a2);
@@ -63,29 +63,28 @@ int vpx_highbd_satd_neon(const tran_low_t *coeff, int length) {
return (int)horizontal_add_int64x2(vaddq_s64(sum_s64[0], sum_s64[1]));
}
-void vpx_highbd_minmax_8x8_neon(const uint8_t *a, int a_stride,
- const uint8_t *b, int b_stride, int *min,
- int *max) {
- const uint16_t *a_ptr = CONVERT_TO_SHORTPTR(a);
- const uint16_t *b_ptr = CONVERT_TO_SHORTPTR(b);
-
- const uint16x8_t a0 = vld1q_u16(a_ptr + 0 * a_stride);
- const uint16x8_t a1 = vld1q_u16(a_ptr + 1 * a_stride);
- const uint16x8_t a2 = vld1q_u16(a_ptr + 2 * a_stride);
- const uint16x8_t a3 = vld1q_u16(a_ptr + 3 * a_stride);
- const uint16x8_t a4 = vld1q_u16(a_ptr + 4 * a_stride);
- const uint16x8_t a5 = vld1q_u16(a_ptr + 5 * a_stride);
- const uint16x8_t a6 = vld1q_u16(a_ptr + 6 * a_stride);
- const uint16x8_t a7 = vld1q_u16(a_ptr + 7 * a_stride);
-
- const uint16x8_t b0 = vld1q_u16(b_ptr + 0 * b_stride);
- const uint16x8_t b1 = vld1q_u16(b_ptr + 1 * b_stride);
- const uint16x8_t b2 = vld1q_u16(b_ptr + 2 * b_stride);
- const uint16x8_t b3 = vld1q_u16(b_ptr + 3 * b_stride);
- const uint16x8_t b4 = vld1q_u16(b_ptr + 4 * b_stride);
- const uint16x8_t b5 = vld1q_u16(b_ptr + 5 * b_stride);
- const uint16x8_t b6 = vld1q_u16(b_ptr + 6 * b_stride);
- const uint16x8_t b7 = vld1q_u16(b_ptr + 7 * b_stride);
+void vpx_highbd_minmax_8x8_neon(const uint8_t *s8, int p, const uint8_t *d8,
+ int dp, int *min, int *max) {
+ const uint16_t *a_ptr = CONVERT_TO_SHORTPTR(s8);
+ const uint16_t *b_ptr = CONVERT_TO_SHORTPTR(d8);
+
+ const uint16x8_t a0 = vld1q_u16(a_ptr + 0 * p);
+ const uint16x8_t a1 = vld1q_u16(a_ptr + 1 * p);
+ const uint16x8_t a2 = vld1q_u16(a_ptr + 2 * p);
+ const uint16x8_t a3 = vld1q_u16(a_ptr + 3 * p);
+ const uint16x8_t a4 = vld1q_u16(a_ptr + 4 * p);
+ const uint16x8_t a5 = vld1q_u16(a_ptr + 5 * p);
+ const uint16x8_t a6 = vld1q_u16(a_ptr + 6 * p);
+ const uint16x8_t a7 = vld1q_u16(a_ptr + 7 * p);
+
+ const uint16x8_t b0 = vld1q_u16(b_ptr + 0 * dp);
+ const uint16x8_t b1 = vld1q_u16(b_ptr + 1 * dp);
+ const uint16x8_t b2 = vld1q_u16(b_ptr + 2 * dp);
+ const uint16x8_t b3 = vld1q_u16(b_ptr + 3 * dp);
+ const uint16x8_t b4 = vld1q_u16(b_ptr + 4 * dp);
+ const uint16x8_t b5 = vld1q_u16(b_ptr + 5 * dp);
+ const uint16x8_t b6 = vld1q_u16(b_ptr + 6 * dp);
+ const uint16x8_t b7 = vld1q_u16(b_ptr + 7 * dp);
const uint16x8_t abs_diff0 = vabdq_u16(a0, b0);
const uint16x8_t abs_diff1 = vabdq_u16(a1, b1);