[x265] [PATCH] xDCT32 vector code cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Wed Jul 3 08:17:22 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1372832227 -19800
# Node ID ec3d304af07bfeb5daffe886fea80a4ea4b94931
# Parent  eda2a00987552d3e3bbd835cc894717197dcecd7
xDCT32 vector code cleanup

diff -r eda2a0098755 -r ec3d304af07b source/common/vec/dct.inc
--- a/source/common/vec/dct.inc	Wed Jul 03 11:42:11 2013 +0530
+++ b/source/common/vec/dct.inc	Wed Jul 03 11:47:07 2013 +0530
@@ -1542,28 +1542,28 @@
     }
 }
 
-void xDCT32(short *pSrc, int *pDst, intptr_t nStride)
+void xDCT32(short *src, int *dst, intptr_t nStride)
 {
     const int shift_1st = 4;
     const int shift_2nd = 11;
 
-    ALIGN_VAR_32(Short, tmp[32 * 32]);
-    ALIGN_VAR_32(Short, tmp1[32 * 32]);
+    ALIGN_VAR_32(Short, coef[32 * 32]);
+    ALIGN_VAR_32(Short, block[32 * 32]);
 
     for (int i = 0; i < 32; i++)
     {
-        memcpy(&tmp1[i * 32], &pSrc[i * nStride], 32 * sizeof(short));
+        memcpy(&block[i * 32], &src[i * nStride], 32 * sizeof(short));
     }
 
-    partialButterfly32(tmp1, tmp, shift_1st, 32);
-    partialButterfly32(tmp, tmp1, shift_2nd, 32);
+    partialButterfly32(block, coef, shift_1st, 32);
+    partialButterfly32(coef, block, shift_2nd, 32);
 
 #define N (32)
     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