[x265] [PATCH] idct16_c: optimization

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Nov 21 07:36:51 CET 2014


# HG changeset patch
# User Praveen Tiwari
# Date 1416549687 -19800
# Node ID 2e897adea4fb2f0d9c29e5fe29883d5a2baec818
# Parent  1ba8ee6cb60267d602552e41abfe81e65698c160
idct16_c: optimization

diff -r 1ba8ee6cb602 -r 2e897adea4fb source/common/dct.cpp
--- a/source/common/dct.cpp	Fri Nov 21 11:28:16 2014 +0530
+++ b/source/common/dct.cpp	Fri Nov 21 11:31:27 2014 +0530
@@ -583,18 +583,7 @@
     ALIGN_VAR_32(int16_t, coef[16 * 16]);
     ALIGN_VAR_32(int16_t, block[16 * 16]);
 
-#define N (16)
-    for (int i = 0; i < N; i++)
-    {
-        for (int j = 0; j < N; j++)
-        {
-            block[i * N + j] = (int16_t)src[i * N + j];
-        }
-    }
-
-#undef N
-
-    partialButterflyInverse16(block, coef, shift_1st, 16);
+    partialButterflyInverse16(src, coef, shift_1st, 16);
     partialButterflyInverse16(coef, block, shift_2nd, 16);
     for (int i = 0; i < 16; i++)
     {


More information about the x265-devel mailing list