[x265] [PATCH] xIDCT32_C code cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Jul 5 12:55:05 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373021691 -19800
# Node ID f13d40a0be56aa21aabf3c15960cc78c357d328c
# Parent  dc4dd739c14aa092b6883b1681220c3ce8e49ea4
xIDCT32_C code cleanup

diff -r dc4dd739c14a -r f13d40a0be56 source/common/dct.cpp
--- a/source/common/dct.cpp	Fri Jul 05 16:19:45 2013 +0530
+++ b/source/common/dct.cpp	Fri Jul 05 16:24:51 2013 +0530
@@ -673,31 +673,31 @@
     }
 }
 
-void xIDCT32_C(int *pSrc, short *pDst, intptr_t stride)
+void xIDCT32_C(int *src, short *dst, intptr_t stride)
 {
     const int shift_1st = 7;
     const int shift_2nd = 12;
 
-    ALIGN_VAR_32(Short, tmp[32 * 32]);
-    ALIGN_VAR_32(Short, tmp2[32 * 32]);
+    ALIGN_VAR_32(Short, coef[32 * 32]);
+    ALIGN_VAR_32(Short, coef2[32 * 32]);
 
 #define N (32)
     for (int i = 0; i < N; i++)
     {
         for (int j = 0; j < N; j++)
         {
-            tmp2[i * N + j] = (short)pSrc[i * N + j];
+            coef2[i * N + j] = (short)src[i * N + j];
         }
     }
 
 #undef N
 
-    partialButterflyInverse32(tmp2, tmp, shift_1st, 32);
-    partialButterflyInverse32(tmp, tmp2, shift_2nd, 32);
+    partialButterflyInverse32(coef2, coef, shift_1st, 32);
+    partialButterflyInverse32(coef, coef2, shift_2nd, 32);
 
     for (int i = 0; i < 32; i++)
     {
-        memcpy(&pDst[i * stride], &tmp2[i * 32], 32 * sizeof(short));
+        memcpy(&dst[i * stride], &coef2[i * 32], 32 * sizeof(short));
     }
 }
 


More information about the x265-devel mailing list