[x265] [PATCH] dst4_c: optimization
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Fri Nov 21 04:43:26 CET 2014
# HG changeset patch
# User Praveen Tiwari
# Date 1416541353 -19800
# Node ID 8a510f40c40733394aae0b9413bf8a279ee248e6
# Parent 2abf89f5c4f2b797705f3b6e8d6670962daa38b9
dst4_c: optimization
diff -r 2abf89f5c4f2 -r 8a510f40c407 source/common/dct.cpp
--- a/source/common/dct.cpp Thu Nov 20 14:31:04 2014 -0800
+++ b/source/common/dct.cpp Fri Nov 21 09:12:33 2014 +0530
@@ -454,18 +454,7 @@
}
fastForwardDst(block, coef, shift_1st);
- fastForwardDst(coef, block, shift_2nd);
-
-#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
+ fastForwardDst(coef, dst, shift_2nd);
}
void dct4_c(const int16_t *src, int16_t *dst, intptr_t stride)
More information about the x265-devel
mailing list