[x265] [PATCH] idst4_c: optimization as per new interface

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Oct 28 13:10:37 CET 2014


# HG changeset patch
# User Praveen Tiwari
# Date 1414491066 -19800
# Node ID be9f280c503f7128b8e7f6aff5e983c76f3796c0
# Parent  b40f43de0ead72272c25f2e61db092617f65f1b0
idst4_c: optimization as per new interface

diff -r b40f43de0ead -r be9f280c503f source/common/dct.cpp
--- a/source/common/dct.cpp	Tue Oct 28 15:28:04 2014 +0530
+++ b/source/common/dct.cpp	Tue Oct 28 15:41:06 2014 +0530
@@ -513,18 +513,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