[x265] [PATCH] xIDCT16_C renamed to idct16_c and code cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Mon Jul 8 11:28:24 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373275692 -19800
# Node ID e34258da8e33746b2a67aefac58608b04d5d49cb
# Parent  67398be5873acc2da1a12a19cbac906464d043e4
xIDCT16_C renamed to idct16_c and code cleanup

diff -r 67398be5873a -r e34258da8e33 source/common/dct.cpp
--- a/source/common/dct.cpp	Mon Jul 08 14:55:22 2013 +0530
+++ b/source/common/dct.cpp	Mon Jul 08 14:58:12 2013 +0530
@@ -646,30 +646,30 @@
     }
 }
 
-void xIDCT16_C(int *src, short *dst, intptr_t stride)
+void idct16_c(int *src, short *dst, intptr_t stride)
 {
     const int shift_1st = 7;
     const int shift_2nd = 12;
 
     ALIGN_VAR_32(Short, coef[16 * 16]);
-    ALIGN_VAR_32(Short, coef2[16 * 16]);
+    ALIGN_VAR_32(Short, block[16 * 16]);
 
 #define N (16)
     for (int i = 0; i < N; i++)
     {
         for (int j = 0; j < N; j++)
         {
-            coef2[i * N + j] = (short)src[i * N + j];
+            block[i * N + j] = (short)src[i * N + j];
         }
     }
 
 #undef N
 
-    partialButterflyInverse16(coef2, coef, shift_1st, 16);
-    partialButterflyInverse16(coef, coef2, shift_2nd, 16);
+    partialButterflyInverse16(block, coef, shift_1st, 16);
+    partialButterflyInverse16(coef, block, shift_2nd, 16);
     for (int i = 0; i < 16; i++)
     {
-        memcpy(&dst[i * stride], &coef2[i * 16], 16 * sizeof(short));
+        memcpy(&dst[i * stride], &block[i * 16], 16 * sizeof(short));
     }
 }
 
@@ -841,7 +841,7 @@
     p.idct[IDST_4x4] = idst4_c;
     p.idct[IDCT_4x4] = idct4_c;
     p.idct[IDCT_8x8] = idct8_c;
-    p.idct[IDCT_16x16] = xIDCT16_C;
+    p.idct[IDCT_16x16] = idct16_c;
     p.idct[IDCT_32x32] = xIDCT32_C;
 }
 }


More information about the x265-devel mailing list