From d8497e1fcda2a13d9871d2bcae9c52a03498cd69 Mon Sep 17 00:00:00 2001 From: Linfeng Zhang Date: Wed, 7 Feb 2018 10:39:52 -0800 Subject: [PATCH] Clean vp9_highbd_iht4x4_16_add_neon() Extract common code. Change-Id: I422150ada1c6915f0ce39b912149994eb3bb3f12 --- vp9/common/arm/neon/vp9_highbd_iht4x4_add_neon.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vp9/common/arm/neon/vp9_highbd_iht4x4_add_neon.c b/vp9/common/arm/neon/vp9_highbd_iht4x4_add_neon.c index 156d542a5..46284238d 100644 --- a/vp9/common/arm/neon/vp9_highbd_iht4x4_add_neon.c +++ b/vp9/common/arm/neon/vp9_highbd_iht4x4_add_neon.c @@ -132,13 +132,11 @@ void vp9_highbd_iht4x4_16_add_neon(const tran_low_t *input, uint16_t *dest, case DCT_ADST: { const int32x4_t cospis = vld1q_s32(kCospi32); + transpose_s32_4x4(&c[0], &c[1], &c[2], &c[3]); + highbd_iadst4(c); if (bd == 10) { - transpose_s32_4x4(&c[0], &c[1], &c[2], &c[3]); - highbd_iadst4(c); idct4x4_16_kernel_bd10(cospis, c); } else { - transpose_s32_4x4(&c[0], &c[1], &c[2], &c[3]); - highbd_iadst4(c); idct4x4_16_kernel_bd12(cospis, c); } break; -- 2.40.0