]> granicus.if.org Git - libvpx/commitdiff
vpx_int_pro_row: normalize declaration w/aom
authorJames Zern <jzern@google.com>
Tue, 21 Dec 2021 03:56:01 +0000 (19:56 -0800)
committerJames Zern <jzern@google.com>
Tue, 21 Dec 2021 19:45:56 +0000 (11:45 -0800)
this is a followup to:
  7fbcee49d quiet -Warray-parameter warnings
and conforms to aom in:
  06e13e817 quiet -Warray-parameter warnings

the sad functions are more varied in libvpx and will require a separate
pass

Change-Id: I765fd6704df615e836ba0b184ff8266ce926c394

vpx_dsp/avg.c
vpx_dsp/vpx_dsp_rtcd_defs.pl
vpx_dsp/x86/avg_intrin_sse2.c

index c87ab20ffe9d61adc7d6f07e59c1c4e2ce203751..1c45e8a73ddcbec1c851c9adbaba2ef99fb1af03 100644 (file)
@@ -340,7 +340,7 @@ int vpx_satd_c(const tran_low_t *coeff, int length) {
 
 // Integer projection onto row vectors.
 // height: value range {16, 32, 64}.
-void vpx_int_pro_row_c(int16_t *hbuf /*[16]*/, const uint8_t *ref,
+void vpx_int_pro_row_c(int16_t hbuf[16], const uint8_t *ref,
                        const int ref_stride, const int height) {
   int idx;
   const int norm_factor = height >> 1;
index fd7eefdad05383bd6d4e312d4798b5df889be120..0144b90c2642092e28416e1db91bb83e9ce4f648 100644 (file)
@@ -824,7 +824,7 @@ if (vpx_config("CONFIG_VP9_ENCODER") eq "yes") {
     specialize qw/vpx_satd avx2 sse2 neon msa/;
   }
 
-  add_proto qw/void vpx_int_pro_row/, "int16_t *hbuf, const uint8_t *ref, const int ref_stride, const int height";
+  add_proto qw/void vpx_int_pro_row/, "int16_t hbuf[16], const uint8_t *ref, const int ref_stride, const int height";
   specialize qw/vpx_int_pro_row sse2 neon msa/;
 
   add_proto qw/int16_t vpx_int_pro_col/, "const uint8_t *ref, const int width";
index 3cba258f619ecc18424c45b1cc6020c1f1f513e2..9da2f34c9bdd98ac644b5e40df840079dd060f35 100644 (file)
@@ -464,7 +464,7 @@ int vpx_satd_sse2(const tran_low_t *coeff, int length) {
   return _mm_cvtsi128_si32(accum);
 }
 
-void vpx_int_pro_row_sse2(int16_t *hbuf, const uint8_t *ref,
+void vpx_int_pro_row_sse2(int16_t hbuf[16], const uint8_t *ref,
                           const int ref_stride, const int height) {
   int idx;
   __m128i zero = _mm_setzero_si128();