[x265] [PATCH] xIDCT8_C renamed to idct8_c and code cleanup
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Mon Jul 8 11:25:34 CEST 2013
# HG changeset patch
# User praveentiwari
# Date 1373275522 -19800
# Node ID 67398be5873acc2da1a12a19cbac906464d043e4
# Parent 9ac7af708073e3fa295ae783029188ea07dc0d49
xIDCT8_C renamed to idct8_c and code cleanup
diff -r 9ac7af708073 -r 67398be5873a source/common/dct.cpp
--- a/source/common/dct.cpp Mon Jul 08 14:51:08 2013 +0530
+++ b/source/common/dct.cpp Mon Jul 08 14:55:22 2013 +0530
@@ -619,30 +619,30 @@
}
}
-void xIDCT8_C(int *src, short *dst, intptr_t stride)
+void idct8_c(int *src, short *dst, intptr_t stride)
{
const int shift_1st = 7;
const int shift_2nd = 12;
ALIGN_VAR_32(Short, coef[8 * 8]);
- ALIGN_VAR_32(Short, coef2[8 * 8]);
+ ALIGN_VAR_32(Short, block[8 * 8]);
#define N (8)
for (int i = 0; i < N; i++)
{
for (int j = 0; j < N; j++)
{
- coef2[i * N + j] = (short)src[i * N + j];
+ block[i * N + j] = (short)src[i * N + j];
}
}
#undef N
- partialButterflyInverse8(coef2, coef, shift_1st, 8);
- partialButterflyInverse8(coef, coef2, shift_2nd, 8);
+ partialButterflyInverse8(block, coef, shift_1st, 8);
+ partialButterflyInverse8(coef, block, shift_2nd, 8);
for (int i = 0; i < 8; i++)
{
- memcpy(&dst[i * stride], &coef2[i * 8], 8 * sizeof(short));
+ memcpy(&dst[i * stride], &block[i * 8], 8 * sizeof(short));
}
}
@@ -840,7 +840,7 @@
p.dct[DCT_32x32] = dct32_c;
p.idct[IDST_4x4] = idst4_c;
p.idct[IDCT_4x4] = idct4_c;
- p.idct[IDCT_8x8] = xIDCT8_C;
+ p.idct[IDCT_8x8] = idct8_c;
p.idct[IDCT_16x16] = xIDCT16_C;
p.idct[IDCT_32x32] = xIDCT32_C;
}
More information about the x265-devel
mailing list