[x265] [PATCH] idct8_c: optimization

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Nov 21 07:35:41 CET 2014


# HG changeset patch
# User Praveen Tiwari
# Date 1416549496 -19800
# Node ID 1ba8ee6cb60267d602552e41abfe81e65698c160
# Parent  2209019a1065b53984b5c0646771f7f48f2368e5
idct8_c: optimization

diff -r 2209019a1065 -r 1ba8ee6cb602 source/common/dct.cpp
--- a/source/common/dct.cpp	Fri Nov 21 11:22:19 2014 +0530
+++ b/source/common/dct.cpp	Fri Nov 21 11:28:16 2014 +0530
@@ -567,18 +567,7 @@
     ALIGN_VAR_32(int16_t, coef[8 * 8]);
     ALIGN_VAR_32(int16_t, block[8 * 8]);
 
-#define N (8)
-    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
-
-    partialButterflyInverse8(block, coef, shift_1st, 8);
+    partialButterflyInverse8(src, coef, shift_1st, 8);
     partialButterflyInverse8(coef, block, shift_2nd, 8);
     for (int i = 0; i < 8; i++)
     {


More information about the x265-devel mailing list