[av1_inv_txfm_neon] Delete unused parameter (int bit). Change-Id: I2ab995ef17aa45246a9a787ec63a9d94d9099cd3
diff --git a/av1/common/arm/av1_inv_txfm_neon.c b/av1/common/arm/av1_inv_txfm_neon.c index 6b24a1e..bee496a 100644 --- a/av1/common/arm/av1_inv_txfm_neon.c +++ b/av1/common/arm/av1_inv_txfm_neon.c
@@ -259,8 +259,7 @@ } static INLINE void iadst8_neon(int16x8_t *const in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); const int16x4_t c0 = set_s16x4_neon((int16_t)cospi[4], (int16_t)cospi[60], @@ -333,8 +332,7 @@ } static INLINE void iadst8_low1_neon(int16x8_t *const in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); const int16x4_t c2 = set_s16x4_neon((int16_t)cospi[32], (int16_t)cospi[32], (int16_t)cospi[16], (int16_t)cospi[48]); @@ -385,9 +383,7 @@ out[7] = vqnegq_s16(x[1]); } -static INLINE void idct8_neon(int16x8_t *in, int16x8_t *out, int8_t cos_bit, - int bit) { - (void)bit; +static INLINE void idct8_neon(int16x8_t *in, int16x8_t *out, int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step1[8], step2[8]; const int16x4_t c0 = set_s16x4_neon((int16_t)cospi[8], (int16_t)cospi[56], @@ -426,8 +422,7 @@ } static INLINE void idct8_low1_neon(int16x8_t *in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step1; int32x4_t t32[2]; @@ -519,8 +514,7 @@ } static INLINE void idct16_low1_neon(int16x8_t *in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step1; int32x4_t t32[2]; @@ -552,9 +546,7 @@ out[15] = step1; } -static INLINE void idct16_neon(int16x8_t *in, int16x8_t *out, int8_t cos_bit, - int bit) { - (void)bit; +static INLINE void idct16_neon(int16x8_t *in, int16x8_t *out, int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step1[16], step2[16]; @@ -676,8 +668,7 @@ } static INLINE void idct16_low8_neon(int16x8_t *in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step1[16], step2[16]; const int16x4_t c0 = set_s16x4_neon((int16_t)cospi[32], (int16_t)cospi[32], @@ -787,8 +778,7 @@ } static INLINE void iadst16_neon(int16x8_t *const in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); const int16x4_t c0 = set_s16x4_neon((int16_t)cospi[2], (int16_t)cospi[62], @@ -945,8 +935,7 @@ } static INLINE void iadst16_low1_neon(int16x8_t *const in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); const int16x4_t c0 = set_s16x4_neon((int16_t)cospi[8], (int16_t)cospi[56], (int16_t)cospi[40], (int16_t)cospi[24]); @@ -1037,8 +1026,7 @@ } static INLINE void iadst16_low8_neon(int16x8_t *const in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); const int16x4_t c0 = set_s16x4_neon((int16_t)cospi[8], (int16_t)cospi[56], @@ -1179,9 +1167,7 @@ out[15] = vqnegq_s16(x[1]); } -static INLINE void idct32_neon(int16x8_t *in, int16x8_t *out, int8_t cos_bit, - int bit) { - (void)bit; +static INLINE void idct32_neon(int16x8_t *in, int16x8_t *out, int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step1[32], step2[32]; @@ -1465,8 +1451,7 @@ } static INLINE void idct32_low1_neon(int16x8_t *in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step1; int32x4_t t32[2]; @@ -1522,8 +1507,7 @@ } static INLINE void idct32_low8_neon(int16x8_t *in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step1[32], step2[32]; int32x4_t t32[16]; @@ -1769,8 +1753,7 @@ } static INLINE void idct32_low16_neon(int16x8_t *in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step1[32], step2[32]; int32x4_t t32[16]; @@ -2166,8 +2149,7 @@ } static INLINE void idct64_low32_neon(int16x8_t *in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step2[64], step1[64]; const int16x4_t c0 = set_s16x4_neon((int16_t)cospi[4], (int16_t)cospi[60], @@ -2647,8 +2629,7 @@ } static INLINE void idct64_low1_neon(int16x8_t *input, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step1; int32x4_t t32[2]; @@ -2737,8 +2718,7 @@ } static INLINE void idct64_low8_neon(int16x8_t *in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step2[64], step1[64]; @@ -3115,8 +3095,7 @@ } static INLINE void idct64_low16_neon(int16x8_t *in, int16x8_t *out, - int8_t cos_bit, int bit) { - (void)bit; + int8_t cos_bit) { const int32_t *cospi = cospi_arr(cos_bit); int16x8_t step2[64], step1[64]; @@ -3692,7 +3671,7 @@ int y = i * txfm_size_col; round_shift_for_rect(&a[y], &a[y], txfm_size_col); } - row_txfm(&a[i * txfm_size_col], &a[i * txfm_size_col], INV_COS_BIT, 0); + row_txfm(&a[i * txfm_size_col], &a[i * txfm_size_col], INV_COS_BIT); av1_round_shift_array_16_neon(&a[i * txfm_size_col], txfm_size_col, -shift[0]); if (lr_flip == 1) { @@ -3775,7 +3754,7 @@ temp_b += 8; } for (int j = 0; j < buf_size_w_div8; ++j) { - col_txfm(&b[j * txfm_size_row], &b[j * txfm_size_row], INV_COS_BIT, 0); + col_txfm(&b[j * txfm_size_row], &b[j * txfm_size_row], INV_COS_BIT); av1_round_shift_array_16_neon(&b[j * txfm_size_row], txfm_size_row, -shift[1]); } @@ -4149,7 +4128,7 @@ int y = i * txfm_size_col; round_shift_for_rect(&a[y], &a[y], input_stride); } - row_txfm(&a[i * txfm_size_col], &a[i * txfm_size_col], INV_COS_BIT, 0); + row_txfm(&a[i * txfm_size_col], &a[i * txfm_size_col], INV_COS_BIT); av1_round_shift_array_16_neon(&a[i * txfm_size_col], txfm_size_col, -shift[0]); if (lr_flip == 1) { @@ -4169,7 +4148,7 @@ } } for (int j = 0; j < buf_size_w_div8; ++j) { - col_txfm(&b[j * txfm_size_row], &b[j * txfm_size_row], INV_COS_BIT, 0); + col_txfm(&b[j * txfm_size_row], &b[j * txfm_size_row], INV_COS_BIT); av1_round_shift_array_16_neon(&b[j * txfm_size_row], txfm_size_row, -shift[1]); }
diff --git a/av1/common/arm/av1_inv_txfm_neon.h b/av1/common/arm/av1_inv_txfm_neon.h index 9ec6582..97099c2 100644 --- a/av1/common/arm/av1_inv_txfm_neon.h +++ b/av1/common/arm/av1_inv_txfm_neon.h
@@ -24,7 +24,7 @@ const int8_t cos_bit, const int8_t *stage_ptr); typedef void (*transform_neon)(int16x8_t *input, int16x8_t *output, - int8_t cos_bit, int bit); + int8_t cos_bit); DECLARE_ALIGNED(16, static const int16_t, av1_eob_to_eobxy_8x8_default[8]) = { 0x0707, 0x0707, 0x0707, 0x0707, 0x0707, 0x0707, 0x0707, 0x0707,