[x265] [PATCH] dct8_c: optimization

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


# HG changeset patch
# User Praveen Tiwari
# Date 1416547290 -19800
# Node ID d0fd16712e49f6f689da9b91881edf5749bc2216
# Parent  88c9f40ffbd636c4c2012b1dad2414e9dea2dd5b
dct8_c: optimization

diff -r 88c9f40ffbd6 -r d0fd16712e49 source/common/dct.cpp
--- a/source/common/dct.cpp	Fri Nov 21 09:43:00 2014 +0530
+++ b/source/common/dct.cpp	Fri Nov 21 10:51:30 2014 +0530
@@ -488,18 +488,7 @@
     }
 
     partialButterfly8(block, coef, shift_1st, 8);
-    partialButterfly8(coef, block, shift_2nd, 8);
-
-#define N (8)
-    for (int i = 0; i < N; i++)
-    {
-        for (int j = 0; j < N; j++)
-        {
-            dst[i * N + j] = block[i * N + j];
-        }
-    }
-
-#undef N
+    partialButterfly8(coef, dst, shift_2nd, 8);
 }
 
 void dct16_c(const int16_t *src, int16_t *dst, intptr_t stride)


More information about the x265-devel mailing list