[x265] [PATCH] dct32_c: optimization

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Nov 21 06:36:32 CET 2014


# HG changeset patch
# User Praveen Tiwari
# Date 1416548180 -19800
# Node ID d00c6fb1f8c70a5c94808198f4c4e0e317f88351
# Parent  9546f5f88938eacdd7e5a140b992b9c2615d6242
dct32_c: optimization

diff -r 9546f5f88938 -r d00c6fb1f8c7 source/common/dct.cpp
--- a/source/common/dct.cpp	Fri Nov 21 10:59:04 2014 +0530
+++ b/source/common/dct.cpp	Fri Nov 21 11:06:20 2014 +0530
@@ -522,18 +522,7 @@
     }
 
     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++)
-        {
-            dst[i * N + j] = block[i * N + j];
-        }
-    }
-
-#undef N
+    partialButterfly32(coef, dst, shift_2nd, 32);
 }
 
 void idst4_c(const int16_t *src, int16_t *dst, intptr_t stride)


More information about the x265-devel mailing list