[x265] [PATCH] xIDST4_C renamed to idst4_c and code cleanup

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


# HG changeset patch
# User praveentiwari
# Date 1373274975 -19800
# Node ID 5bd9fdc75f576f607b0d12537ffd65d752f4382c
# Parent  ea36e39846514f5e92db1eee003a086e1e0badba
xIDST4_C renamed to idst4_c and code cleanup

diff -r ea36e3984651 -r 5bd9fdc75f57 source/common/dct.cpp
--- a/source/common/dct.cpp	Mon Jul 08 14:40:34 2013 +0530
+++ b/source/common/dct.cpp	Mon Jul 08 14:46:15 2013 +0530
@@ -563,31 +563,31 @@
 #undef N
 }
 
-void xIDST4_C(int *src, short *dst, intptr_t stride)
+void idst4_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
 
-    inversedst(coef2, coef, shift_1st); // Forward DST BY FAST ALGORITHM, block input, coef output
-    inversedst(coef, coef2, shift_2nd); // Forward DST BY FAST ALGORITHM, coef input, coeff output
+    inversedst(block, coef, shift_1st); // Forward DST BY FAST ALGORITHM, block input, coef output
+    inversedst(coef, block, shift_2nd); // 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));
     }
 }
 
@@ -838,7 +838,7 @@
     p.dct[DCT_8x8] = dct8_c;
     p.dct[DCT_16x16] = dct16_c;
     p.dct[DCT_32x32] = dct32_c;
-    p.idct[IDST_4x4] = xIDST4_C;
+    p.idct[IDST_4x4] = idst4_c;
     p.idct[IDCT_4x4] = xIDCT4_C;
     p.idct[IDCT_8x8] = xIDCT8_C;
     p.idct[IDCT_16x16] = xIDCT16_C;


More information about the x265-devel mailing list