diff options
author | xufuji456 <839789740@qq.com> | 2023-04-13 15:09:19 +0800 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2023-04-13 15:17:04 +0300 |
commit | 1e91a3950232e391ac49a5dfdc958154a212fa4a (patch) | |
tree | b9ee9c633b12b8c07cc30559a5d9961e81e4d317 /tests/checkasm/hevc_deblock.c | |
parent | 30def6365d24eb2052d9072d15e024c498478c03 (diff) | |
download | ffmpeg-1e91a3950232e391ac49a5dfdc958154a212fa4a.tar.gz |
checkasm: pass context as pointer
Signed-off-by: xufuji456 <839789740@qq.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'tests/checkasm/hevc_deblock.c')
-rw-r--r-- | tests/checkasm/hevc_deblock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/checkasm/hevc_deblock.c b/tests/checkasm/hevc_deblock.c index e003f98d02..5e4338af1c 100644 --- a/tests/checkasm/hevc_deblock.c +++ b/tests/checkasm/hevc_deblock.c @@ -45,7 +45,7 @@ static const uint32_t pixel_mask[3] = { 0xffffffff, 0x03ff03ff, 0x0fff0fff }; } \ } while (0) -static void check_deblock_chroma(HEVCDSPContext h, int bit_depth) +static void check_deblock_chroma(HEVCDSPContext *h, int bit_depth) { int32_t tc[2] = { 0, 0 }; // no_p, no_q can only be { 0,0 } for the simpler assembly (non *_c @@ -57,7 +57,7 @@ static void check_deblock_chroma(HEVCDSPContext h, int bit_depth) declare_func_emms(AV_CPU_FLAG_MMX, void, uint8_t *pix, ptrdiff_t stride, int32_t *tc, uint8_t *no_p, uint8_t *no_q); - if (check_func(h.hevc_h_loop_filter_chroma, "hevc_h_loop_filter_chroma%d", bit_depth)) { + if (check_func(h->hevc_h_loop_filter_chroma, "hevc_h_loop_filter_chroma%d", bit_depth)) { for (int i = 0; i < 4; i++) { randomize_buffers(buf0, buf1, BUF_SIZE); // see betatable[] in hevc_filter.c @@ -72,7 +72,7 @@ static void check_deblock_chroma(HEVCDSPContext h, int bit_depth) bench_new(buf1 + BUF_OFFSET, BUF_STRIDE, tc, no_p, no_q); } - if (check_func(h.hevc_v_loop_filter_chroma, "hevc_v_loop_filter_chroma%d", bit_depth)) { + if (check_func(h->hevc_v_loop_filter_chroma, "hevc_v_loop_filter_chroma%d", bit_depth)) { for (int i = 0; i < 4; i++) { randomize_buffers(buf0, buf1, BUF_SIZE); // see betatable[] in hevc_filter.c @@ -95,7 +95,7 @@ void checkasm_check_hevc_deblock(void) for (bit_depth = 8; bit_depth <= 12; bit_depth += 2) { HEVCDSPContext h; ff_hevc_dsp_init(&h, bit_depth); - check_deblock_chroma(h, bit_depth); + check_deblock_chroma(&h, bit_depth); } report("chroma"); } |