[x265] [PATCH] dct16_c: optimization
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Fri Nov 21 06:29:13 CET 2014
# HG changeset patch
# User Praveen Tiwari
# Date 1416547744 -19800
# Node ID 9546f5f88938eacdd7e5a140b992b9c2615d6242
# Parent d0fd16712e49f6f689da9b91881edf5749bc2216
dct16_c: optimization
diff -r d0fd16712e49 -r 9546f5f88938 source/common/dct.cpp
--- a/source/common/dct.cpp Fri Nov 21 10:51:30 2014 +0530
+++ b/source/common/dct.cpp Fri Nov 21 10:59:04 2014 +0530
@@ -505,18 +505,7 @@
}
partialButterfly16(block, coef, shift_1st, 16);
- partialButterfly16(coef, block, shift_2nd, 16);
-
-#define N (16)
- for (int i = 0; i < N; i++)
- {
- for (int j = 0; j < N; j++)
- {
- dst[i * N + j] = block[i * N + j];
- }
- }
-
-#undef N
+ partialButterfly16(coef, dst, shift_2nd, 16);
}
void dct32_c(const int16_t *src, int16_t *dst, intptr_t stride)
More information about the x265-devel
mailing list