[x265] [PATCH] xDST4_C code cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Jul 5 12:23:24 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1373019794 -19800
# Node ID d50fb7df4f3da1c6135d2f7f03022ea2f6d06aca
# Parent  3fb2694d307d8f236b9d62f1c99eed41c27a10a1
xDST4_C code cleanup

diff -r 3fb2694d307d -r d50fb7df4f3d source/common/dct.cpp
--- a/source/common/dct.cpp	Fri Jul 05 15:43:31 2013 +0530
+++ b/source/common/dct.cpp	Fri Jul 05 15:53:14 2013 +0530
@@ -424,28 +424,28 @@
     }
 }
 
-void xDST4_C(short *pSrc, int *pDst, intptr_t nStride)
+void xDST4_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));
     }
 
-    fastForwardDst(tmp1, tmp, shift_1st);
-    fastForwardDst(tmp, tmp1, shift_2nd);
+    fastForwardDst(block, coef, shift_1st);
+    fastForwardDst(coef, block, shift_2nd);
 
 #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