mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
[mts] fix 32x32 idst/idct
This commit is contained in:
parent
c2cd5fb98e
commit
60caf2c378
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue