[x265] [PATCH] xDCT4_C code cleanup

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


# HG changeset patch
# User praveentiwari
# Date 1373019954 -19800
# Node ID 10d9c411ebb421eef9a89d5511ec8934d5368dae
# Parent  d50fb7df4f3da1c6135d2f7f03022ea2f6d06aca
xDCT4_C code cleanup

diff -r d50fb7df4f3d -r 10d9c411ebb4 source/common/dct.cpp
--- a/source/common/dct.cpp	Fri Jul 05 15:53:14 2013 +0530
+++ b/source/common/dct.cpp	Fri Jul 05 15:55:54 2013 +0530
@@ -452,27 +452,27 @@
 #undef N
 }
 
-void xDCT4_C(short *pSrc, int *pDst, intptr_t nStride)
+void xDCT4_C(short *src, int *dst, intptr_t nStride)
 {
     const int shift_1st = 1;
     const int shift_2nd = 8;
 
-    ALIGN_VAR_32(Short, tmp[4 * 4]);
-    ALIGN_VAR_32(Short, tmp1[4 * 4]);
+    ALIGN_VAR_32(Short, coef[4 * 4]);
+    ALIGN_VAR_32(Short, block[4 * 4]);
 
     for (int i = 0; i < 4; i++)
     {
-        memcpy(&tmp1[i * 4], &pSrc[i * nStride], 4 * sizeof(short));
+        memcpy(&block[i * 4], &src[i * nStride], 4 * sizeof(short));
     }
 
-    partialButterfly4(tmp1, tmp, shift_1st, 4);
-    partialButterfly4(tmp, tmp1, shift_2nd, 4);
+    partialButterfly4(block, coef, shift_1st, 4);
+    partialButterfly4(coef, block, shift_2nd, 4);
 #define N (4)
     for (int i = 0; i < N; i++)
     {
         for (int j = 0; j < N; j++)
         {
-            pDst[i * N + j] = tmp1[i * N + j];
+            dst[i * N + j] = block[i * N + j];
         }
     }
 


More information about the x265-devel mailing list