[x265] [PATCH] xIDCT8_C code cleanup
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Fri Jul 5 12:44:34 CEST 2013
# HG changeset patch
# User praveentiwari
# Date 1373021062 -19800
# Node ID c386e5d8830e1889f914426b19d1277f8312feb7
# Parent 5ff0843668f49bfd232ef1aa08524ad8278b70b1
xIDCT8_C code cleanup
diff -r 5ff0843668f4 -r c386e5d8830e source/common/dct.cpp
--- a/source/common/dct.cpp Fri Jul 05 16:12:17 2013 +0530
+++ b/source/common/dct.cpp Fri Jul 05 16:14:22 2013 +0530
@@ -619,30 +619,30 @@
}
}
-void xIDCT8_C(int *pSrc, short *pDst, intptr_t stride)
+void xIDCT8_C(int *src, short *dst, intptr_t stride)
{
const int shift_1st = 7;
const int shift_2nd = 12;
- ALIGN_VAR_32(Short, tmp[8 * 8]);
- ALIGN_VAR_32(Short, tmp2[8 * 8]);
+ ALIGN_VAR_32(Short, coef[8 * 8]);
+ ALIGN_VAR_32(Short, coef2[8 * 8]);
#define N (8)
for (int i = 0; i < N; i++)
{
for (int j = 0; j < N; j++)
{
- tmp2[i * N + j] = (short)pSrc[i * N + j];
+ coef2[i * N + j] = (short)src[i * N + j];
}
}
#undef N
- partialButterflyInverse8(tmp2, tmp, shift_1st, 8);
- partialButterflyInverse8(tmp, tmp2, shift_2nd, 8);
+ partialButterflyInverse8(coef2, coef, shift_1st, 8);
+ partialButterflyInverse8(coef, coef2, shift_2nd, 8);
for (int i = 0; i < 8; i++)
{
- memcpy(&pDst[i * stride], &tmp2[i * 8], 8 * sizeof(short));
+ memcpy(&dst[i * stride], &coef2[i * 8], 8 * sizeof(short));
}
}
More information about the x265-devel
mailing list