[x265] [PATCH] xDCT8_C code cleanup
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Fri Jul 5 12:28:26 CEST 2013
# HG changeset patch
# User praveentiwari
# Date 1373020091 -19800
# Node ID cceb611c95d4dd7f345f9ddc88694ec24de47875
# Parent 10d9c411ebb421eef9a89d5511ec8934d5368dae
xDCT8_C code cleanup
diff -r 10d9c411ebb4 -r cceb611c95d4 source/common/dct.cpp
--- a/source/common/dct.cpp Fri Jul 05 15:55:54 2013 +0530
+++ b/source/common/dct.cpp Fri Jul 05 15:58:11 2013 +0530
@@ -479,28 +479,28 @@
#undef N
}
-void xDCT8_C(short *pSrc, int *pDst, intptr_t nStride)
+void xDCT8_C(short *src, int *dst, intptr_t nStride)
{
const int shift_1st = 2;
const int shift_2nd = 9;
- ALIGN_VAR_32(Short, tmp[8 * 8]);
- ALIGN_VAR_32(Short, tmp1[8 * 8]);
+ ALIGN_VAR_32(Short, coef[8 * 8]);
+ ALIGN_VAR_32(Short, block[8 * 8]);
for (int i = 0; i < 8; i++)
{
- memcpy(&tmp1[i * 8], &pSrc[i * nStride], 8 * sizeof(short));
+ memcpy(&block[i * 8], &src[i * nStride], 8 * sizeof(short));
}
- partialButterfly8(tmp1, tmp, shift_1st, 8);
- partialButterfly8(tmp, tmp1, shift_2nd, 8);
+ 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++)
{
- pDst[i * N + j] = tmp1[i * N + j];
+ dst[i * N + j] = block[i * N + j];
}
}
More information about the x265-devel
mailing list