[x265] [PATCH] xIDCT32_C renamed to idct32_c and code cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Mon Jul 8 11:32:04 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373275911 -19800
# Node ID f8af33ff32886e34b9073237c59bcf2c08c4eeea
# Parent  e34258da8e33746b2a67aefac58608b04d5d49cb
xIDCT32_C renamed to idct32_c and code cleanup

diff -r e34258da8e33 -r f8af33ff3288 source/common/dct.cpp
--- a/source/common/dct.cpp	Mon Jul 08 14:58:12 2013 +0530
+++ b/source/common/dct.cpp	Mon Jul 08 15:01:51 2013 +0530
@@ -673,31 +673,31 @@
     }
 }
 
-void xIDCT32_C(int *src, short *dst, intptr_t stride)
+void idct32_c(int *src, short *dst, intptr_t stride)
 {
     const int shift_1st = 7;
     const int shift_2nd = 12;
 
     ALIGN_VAR_32(Short, coef[32 * 32]);
-    ALIGN_VAR_32(Short, coef2[32 * 32]);
+    ALIGN_VAR_32(Short, block[32 * 32]);
 
 #define N (32)
     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
 
-    partialButterflyInverse32(coef2, coef, shift_1st, 32);
-    partialButterflyInverse32(coef, coef2, shift_2nd, 32);
+    partialButterflyInverse32(block, coef, shift_1st, 32);
+    partialButterflyInverse32(coef, block, shift_2nd, 32);
 
     for (int i = 0; i < 32; i++)
     {
-        memcpy(&dst[i * stride], &coef2[i * 32], 32 * sizeof(short));
+        memcpy(&dst[i * stride], &block[i * 32], 32 * sizeof(short));
     }
 }
 
@@ -842,6 +842,6 @@
     p.idct[IDCT_4x4] = idct4_c;
     p.idct[IDCT_8x8] = idct8_c;
     p.idct[IDCT_16x16] = idct16_c;
-    p.idct[IDCT_32x32] = xIDCT32_C;
+    p.idct[IDCT_32x32] = idct32_c;
 }
 }


More information about the x265-devel mailing list