[mts] fix 32x32 idst/idct

This commit is contained in:
Marko Viitanen 2021-07-21 13:44:25 +03:00
parent c2cd5fb98e
commit 60caf2c378
2 changed files with 6 additions and 6 deletions

View file

@ -1528,8 +1528,8 @@ static void mts_idct_32x32_avx2(const int16_t* input, int16_t* output, tr_type_t
const int skip_width = (type_hor != DCT2) ? 16 : 0;
const int skip_height = (type_ver != DCT2) ? 16 : 0;
mul_clip_matrix_32x32_mts_avx2(tdct, input, tmp, shift_1st, skip_width, skip_height);
mul_clip_matrix_32x32_mts_avx2(tmp, dct, output, shift_2nd, 0, skip_width);
mul_clip_matrix_32x32_mts_avx2(tdct, input, tmp, shift_1st, skip_height,0);
mul_clip_matrix_32x32_mts_avx2(tmp, dct, output, shift_2nd, 0, 0);
}
typedef void tr_func(const int16_t*, int16_t*, tr_type_t , tr_type_t , uint8_t);

View file

@ -153,7 +153,7 @@ TEST dct(void)
for (int i = 0; i < LCU_WIDTH * LCU_WIDTH; ++i) {
ASSERT_EQm(testname, test_result[i], dct_result[trafo][blocksize][i]);
}
fprintf(stderr, "PASS: %s\r\n", testname);
//fprintf(stderr, "PASS: %s\r\n", testname);
}
}
@ -178,7 +178,7 @@ TEST idct(void)
for (int i = 0; i < LCU_WIDTH * LCU_WIDTH; ++i) {
ASSERT_EQm(testname, test_result[i], idct_result[trafo][blocksize][i]);
}
fprintf(stderr, "PASS: %s\r\n", testname);
//fprintf(stderr, "PASS: %s\r\n", testname);
}
}
@ -207,12 +207,12 @@ SUITE(mts_tests)
// This allows for selecting a subset of tests with -t parameter.
if (strcmp(strategy->type, "mts_dct") == 0)
{
fprintf(stderr, "Test: %s\r\n", strategy->strategy_name);
//fprintf(stderr, "Test: %s\r\n", strategy->strategy_name);
RUN_TEST(dct);
}
else if (strcmp(strategy->type, "mts_idct") == 0)
{
fprintf(stderr, "Test: %s\r\n", strategy->strategy_name);
//fprintf(stderr, "Test: %s\r\n", strategy->strategy_name);
RUN_TEST(idct);
}
}