[x265] [PATCH] xDST4 code cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Jul 2 07:55:22 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1372744505 -19800
# Node ID 303b95a90f0a93a28d389828695b8aa0a564bcce
# Parent  936c56e589ec2b4f9f9a5ea8d0fa92fc8dbc8e07
xDST4 code cleanup

diff -r 936c56e589ec -r 303b95a90f0a source/common/vec/dct.inc
--- a/source/common/vec/dct.inc	Mon Jul 01 16:07:56 2013 +0530
+++ b/source/common/vec/dct.inc	Tue Jul 02 11:25:05 2013 +0530
@@ -169,27 +169,27 @@
 }
 
 #if INSTRSET < 4
-void xDST4(short *pSrc, int *pDst, intptr_t nStride)
+void xDST4(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