[x265] [PATCH] xIDCT16_C code cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Jul 5 12:50:00 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373021385 -19800
# Node ID dc4dd739c14aa092b6883b1681220c3ce8e49ea4
# Parent  c386e5d8830e1889f914426b19d1277f8312feb7
xIDCT16_C code cleanup

diff -r c386e5d8830e -r dc4dd739c14a source/common/dct.cpp
--- a/source/common/dct.cpp	Fri Jul 05 16:14:22 2013 +0530
+++ b/source/common/dct.cpp	Fri Jul 05 16:19:45 2013 +0530
@@ -646,30 +646,30 @@
     }
 }
 
-void xIDCT16_C(int *pSrc, short *pDst, intptr_t stride)
+void xIDCT16_C(int *src, short *dst, intptr_t stride)
 {
     const int shift_1st = 7;
     const int shift_2nd = 12;
 
-    ALIGN_VAR_32(Short, tmp[16 * 16]);
-    ALIGN_VAR_32(Short, tmp2[16 * 16]);
+    ALIGN_VAR_32(Short, coef[16 * 16]);
+    ALIGN_VAR_32(Short, coef2[16 * 16]);
 
 #define N (16)
     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
 
-    partialButterflyInverse16(tmp2, tmp, shift_1st, 16);
-    partialButterflyInverse16(tmp, tmp2, shift_2nd, 16);
+    partialButterflyInverse16(coef2, coef, shift_1st, 16);
+    partialButterflyInverse16(coef, coef2, shift_2nd, 16);
     for (int i = 0; i < 16; i++)
     {
-        memcpy(&pDst[i * stride], &tmp2[i * 16], 16 * sizeof(short));
+        memcpy(&dst[i * stride], &coef2[i * 16], 16 * sizeof(short));
     }
 }
 


More information about the x265-devel mailing list