[x265] [PATCH] dct4_c: C code optimization
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Fri Nov 21 05:13:45 CET 2014
# HG changeset patch
# User Praveen Tiwari
# Date 1416543180 -19800
# Node ID 88c9f40ffbd636c4c2012b1dad2414e9dea2dd5b
# Parent 18daa2f9961b863c5343a0791dd941d8537f4653
dct4_c: C code optimization
diff -r 18daa2f9961b -r 88c9f40ffbd6 source/common/dct.cpp
--- a/source/common/dct.cpp Fri Nov 21 09:27:00 2014 +0530
+++ b/source/common/dct.cpp Fri Nov 21 09:43:00 2014 +0530
@@ -471,17 +471,7 @@
}
partialButterfly4(block, coef, shift_1st, 4);
- partialButterfly4(coef, block, shift_2nd, 4);
-#define N (4)
- for (int i = 0; i < N; i++)
- {
- for (int j = 0; j < N; j++)
- {
- dst[i * N + j] = block[i * N + j];
- }
- }
-
-#undef N
+ partialButterfly4(coef, dst, shift_2nd, 4);
}
void dct8_c(const int16_t *src, int16_t *dst, intptr_t stride)
More information about the x265-devel
mailing list