[x265] [PATCH] xDCT8 vector code cleanup

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Jul 2 10:45:27 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1372754716 -19800
# Node ID fccd5390566cebffc8b5a6b7408384a11d5c215f
# Parent  16e06f5065279c3fb52d6ded4034818facb4b44b
xDCT8 vector code cleanup

diff -r 16e06f506527 -r fccd5390566c source/common/vec/dct.inc
--- a/source/common/vec/dct.inc	Tue Jul 02 11:59:43 2013 +0530
+++ b/source/common/vec/dct.inc	Tue Jul 02 14:15:16 2013 +0530
@@ -406,27 +406,27 @@
     }
 }
 
-void xDCT8(short *pSrc, int *pDst, intptr_t nStride)
+void xDCT8(short *src, int *dst, intptr_t nStride)
 {
     const int shift_1st = 2;
     const int shift_2nd = 9;
 
-    ALIGN_VAR_32(Short, tmp[8 * 8]);
-    ALIGN_VAR_32(Short, tmp1[8 * 8]);
+    ALIGN_VAR_32(Short, coef[8 * 8]);
+    ALIGN_VAR_32(Short, block[8 * 8]);
 
     for (int i = 0; i < 8; i++)
     {
-        memcpy(&tmp1[i * 8], &pSrc[i * nStride], 8 * sizeof(short));
+        memcpy(&block[i * 8], &src[i * nStride], 8 * sizeof(short));
     }
 
-    partialButterfly8(tmp1, tmp, shift_1st, 8);
-    partialButterfly8(tmp, tmp1, shift_2nd, 8);
+    partialButterfly8(block, coef, shift_1st, 8);
+    partialButterfly8(coef, block, shift_2nd, 8);
 #define N (8)
     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