shithub: libvpx

Download patch

ref: d8497e1fcda2a13d9871d2bcae9c52a03498cd69
parent: 82e9c30334cb578fb8590772e3be43a7f922c51a
author: Linfeng Zhang <linfengz@google.com>
date: Wed Feb 7 05:39:52 EST 2018

Clean vp9_highbd_iht4x4_16_add_neon()

Extract common code.

Change-Id: I422150ada1c6915f0ce39b912149994eb3bb3f12

--- 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 @@
       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;