[x265] [PATCH] xIDCT4_C renamed to idct4_c and code cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Mon Jul 8 11:21:22 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373275268 -19800
# Node ID 9ac7af708073e3fa295ae783029188ea07dc0d49
# Parent  5bd9fdc75f576f607b0d12537ffd65d752f4382c
xIDCT4_C renamed to idct4_c and code cleanup

diff -r 5bd9fdc75f57 -r 9ac7af708073 source/common/dct.cpp
--- a/source/common/dct.cpp	Mon Jul 08 14:46:15 2013 +0530
+++ b/source/common/dct.cpp	Mon Jul 08 14:51:08 2013 +0530
@@ -591,31 +591,31 @@
     }
 }
 
-void xIDCT4_C(int *src, short *dst, intptr_t stride)
+void idct4_c(int *src, short *dst, intptr_t stride)
 {
     const int shift_1st = 7;
     const int shift_2nd = 12;
 
     ALIGN_VAR_32(Short, coef[4 * 4]);
-    ALIGN_VAR_32(Short, coef2[4 * 4]);
+    ALIGN_VAR_32(Short, block[4 * 4]);
 
 #define N (4)
     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
 
-    partialButterflyInverse4(coef2, coef, shift_1st, 4); // Forward DST BY FAST ALGORITHM, block input, coef output
-    partialButterflyInverse4(coef, coef2, shift_2nd, 4); // Forward DST BY FAST ALGORITHM, coef input, coeff output
+    partialButterflyInverse4(block, coef, shift_1st, 4); // Forward DST BY FAST ALGORITHM, block input, coef output
+    partialButterflyInverse4(coef, block, shift_2nd, 4); // Forward DST BY FAST ALGORITHM, coef input, coeff output
 
     for (int i = 0; i < 4; i++)
     {
-        memcpy(&dst[i * stride], &coef2[i * 4], 4 * sizeof(short));
+        memcpy(&dst[i * stride], &block[i * 4], 4 * sizeof(short));
     }
 }
 
@@ -839,7 +839,7 @@
     p.dct[DCT_16x16] = dct16_c;
     p.dct[DCT_32x32] = dct32_c;
     p.idct[IDST_4x4] = idst4_c;
-    p.idct[IDCT_4x4] = xIDCT4_C;
+    p.idct[IDCT_4x4] = idct4_c;
     p.idct[IDCT_8x8] = xIDCT8_C;
     p.idct[IDCT_16x16] = xIDCT16_C;
     p.idct[IDCT_32x32] = xIDCT32_C;


More information about the x265-devel mailing list