[x265] [PATCH] xDCT16_C code cleanup
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Fri Jul 5 12:32:31 CEST 2013
# HG changeset patch
# User praveentiwari
# Date 1373020233 -19800
# Node ID 85fe1251277bf343194d76111ecccab1744e832b
# Parent cceb611c95d4dd7f345f9ddc88694ec24de47875
xDCT16_C code cleanup
diff -r cceb611c95d4 -r 85fe1251277b source/common/dct.cpp
--- a/source/common/dct.cpp Fri Jul 05 15:58:11 2013 +0530
+++ b/source/common/dct.cpp Fri Jul 05 16:00:33 2013 +0530
@@ -507,28 +507,28 @@
#undef N
}
-void xDCT16_C(short *pSrc, int *pDst, intptr_t nStride)
+void xDCT16_C(short *src, int *dst, intptr_t nStride)
{
const int shift_1st = 3;
const int shift_2nd = 10;
- ALIGN_VAR_32(Short, tmp[16 * 16]);
- ALIGN_VAR_32(Short, tmp1[16 * 16]);
+ ALIGN_VAR_32(Short, coef[16 * 16]);
+ ALIGN_VAR_32(Short, block[16 * 16]);
for (int i = 0; i < 16; i++)
{
- memcpy(&tmp1[i * 16], &pSrc[i * nStride], 16 * sizeof(short));
+ memcpy(&block[i * 16], &src[i * nStride], 16 * sizeof(short));
}
- partialButterfly16(tmp1, tmp, shift_1st, 16);
- partialButterfly16(tmp, tmp1, shift_2nd, 16);
+ 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++)
{
- pDst[i * N + j] = tmp1[i * N + j];
+ dst[i * N + j] = block[i * N + j];
}
}
More information about the x265-devel
mailing list