[x265] [PATCH] idst4_c: optimization

praveen at multicorewareinc.com praveen at multicorewareinc.com
Fri Nov 21 04:57:08 CET 2014


# HG changeset patch
# User Praveen Tiwari
# Date 1416542220 -19800
# Node ID 18daa2f9961b863c5343a0791dd941d8537f4653
# Parent  8a510f40c40733394aae0b9413bf8a279ee248e6
idst4_c: optimization

diff -r 8a510f40c407 -r 18daa2f9961b source/common/dct.cpp
--- a/source/common/dct.cpp	Fri Nov 21 09:12:33 2014 +0530
+++ b/source/common/dct.cpp	Fri Nov 21 09:27:00 2014 +0530
@@ -576,18 +576,7 @@
     ALIGN_VAR_32(int16_t, coef[4 * 4]);
     ALIGN_VAR_32(int16_t, block[4 * 4]);
 
-#define N (4)
-    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
-
-    inversedst(block, coef, shift_1st); // Forward DST BY FAST ALGORITHM, block input, coef output
+    inversedst(src, coef, shift_1st); // Forward DST BY FAST ALGORITHM, block input, coef output
     inversedst(coef, block, shift_2nd); // Forward DST BY FAST ALGORITHM, coef input, coeff output
 
     for (int i = 0; i < 4; i++)


More information about the x265-devel mailing list