Make Forward WHT transform use 32bit fixed-point calculation

This is in preparation for a future change where input will
be 16bit instead of 12bit

No speed diff observed.

Note that the NEON implementation was using 32bit calc already.

Change-Id: If06935db5c56a77fc9cefcb2dec617483f5f62b4
This commit is contained in:
skal
2013-12-10 06:10:52 +01:00
parent a3359f5d2c
commit 41c0cc4b9a
2 changed files with 18 additions and 18 deletions

View File

@@ -190,7 +190,7 @@ static void ITransformWHT(const int16_t* in, int16_t* out) {
static void FTransformWHT(const int16_t* in, int16_t* out) {
// input is 12b signed
int16_t tmp[16];
int32_t tmp[16];
int i;
for (i = 0; i < 4; ++i, in += 64) {
const int a0 = (in[0 * 16] + in[2 * 16]); // 13b