diff options
author | Wu Jianhua <toqsxw@outlook.com> | 2024-05-31 00:28:07 +0800 |
---|---|---|
committer | Nuo Mi <nuomi2021@gmail.com> | 2024-05-31 19:57:31 +0800 |
commit | 442e94e5e476710dfbb9f611a86ac3c86156394c (patch) | |
tree | 8bff3e64f97f9a1a8bd4e2a9b76c51c060683843 | |
parent | 9950f1486493cfb1b039ea89c51f40484839a6c1 (diff) | |
download | ffmpeg-442e94e5e476710dfbb9f611a86ac3c86156394c.tar.gz |
tests/checkasm/vvc_alf: change alf step size to 8
From Benjamin Bross:
> for ALF where functions are in increments of 4 while 8 should be sufficient according to the spec.
Signed-off-by: Wu Jianhua <toqsxw@outlook.com>
-rw-r--r-- | tests/checkasm/vvc_alf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/checkasm/vvc_alf.c b/tests/checkasm/vvc_alf.c index f35fd2cd3e..84b0f9da15 100644 --- a/tests/checkasm/vvc_alf.c +++ b/tests/checkasm/vvc_alf.c @@ -90,8 +90,8 @@ static void check_alf_filter(VVCDSPContext *c, const int bit_depth) randomize_buffers2(filter, LUMA_PARAMS_SIZE, 1); randomize_buffers2(clip, LUMA_PARAMS_SIZE, 0); - for (int h = 4; h <= MAX_CTU_SIZE; h += 4) { - for (int w = 4; w <= MAX_CTU_SIZE; w += 4) { + for (int h = 4; h <= MAX_CTU_SIZE; h += 8) { + for (int w = 4; w <= MAX_CTU_SIZE; w += 8) { const int ctu_size = MAX_CTU_SIZE; if (check_func(c->alf.filter[LUMA], "vvc_alf_filter_luma_%dx%d_%d", w, h, bit_depth)) { const int vb_pos = ctu_size - ALF_VB_POS_ABOVE_LUMA; @@ -142,8 +142,8 @@ static void check_alf_classify(VVCDSPContext *c, const int bit_depth) randomize_buffers(src0, src1, SRC_BUF_SIZE); - for (int h = 4; h <= MAX_CTU_SIZE; h += 4) { - for (int w = 4; w <= MAX_CTU_SIZE; w += 4) { + for (int h = 4; h <= MAX_CTU_SIZE; h += 8) { + for (int w = 4; w <= MAX_CTU_SIZE; w += 8) { const int id_size = w * h / ALF_BLOCK_SIZE / ALF_BLOCK_SIZE * sizeof(int); const int vb_pos = MAX_CTU_SIZE - ALF_BLOCK_SIZE; if (check_func(c->alf.classify, "vvc_alf_classify_%dx%d_%d", w, h, bit_depth)) { |