tests/checkasm/sw_scale: adds additional tests sizes for yux2yuvX

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Alan Kelly 2021-04-01 12:00:17 +02:00 committed by Michael Niedermayer
parent ec4c04aa7b
commit e1484bc455
1 changed files with 3 additions and 3 deletions

View File

@ -68,8 +68,8 @@ static void check_yuv2yuvX(void)
#define FILTER_SIZES 4 #define FILTER_SIZES 4
static const int filter_sizes[FILTER_SIZES] = {1, 4, 8, 16}; static const int filter_sizes[FILTER_SIZES] = {1, 4, 8, 16};
#define LARGEST_INPUT_SIZE 512 #define LARGEST_INPUT_SIZE 512
#define INPUT_SIZES 4 #define INPUT_SIZES 6
static const int input_sizes[INPUT_SIZES] = {128, 144, 256, 512}; static const int input_sizes[INPUT_SIZES] = {8, 24, 128, 144, 256, 512};
declare_func_emms(AV_CPU_FLAG_MMX, void, const int16_t *filter, declare_func_emms(AV_CPU_FLAG_MMX, void, const int16_t *filter,
int filterSize, const int16_t **src, uint8_t *dest, int filterSize, const int16_t **src, uint8_t *dest,
@ -107,7 +107,7 @@ static void check_yuv2yuvX(void)
for(j = 0; j < 4; ++j) for(j = 0; j < 4; ++j)
vFilterData[i].coeff[j + 4] = filter_coeff[i]; vFilterData[i].coeff[j + 4] = filter_coeff[i];
} }
if (check_func(ctx->yuv2planeX, "yuv2yuvX_%d_%d", filter_sizes[fsi], osi)){ if (check_func(ctx->yuv2planeX, "yuv2yuvX_%d_%d_%d", filter_sizes[fsi], osi, dstW)){
memset(dst0, 0, LARGEST_INPUT_SIZE * sizeof(dst0[0])); memset(dst0, 0, LARGEST_INPUT_SIZE * sizeof(dst0[0]));
memset(dst1, 0, LARGEST_INPUT_SIZE * sizeof(dst1[0])); memset(dst1, 0, LARGEST_INPUT_SIZE * sizeof(dst1[0]));