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_idct.c | |
parent | 30def6365d24eb2052d9072d15e024c498478c03 (diff) |
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_idct.c')
-rw-r--r-- | tests/checkasm/hevc_idct.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/checkasm/hevc_idct.c b/tests/checkasm/hevc_idct.c index 446d69f931..49cfc4801f 100644 --- a/tests/checkasm/hevc_idct.c +++ b/tests/checkasm/hevc_idct.c @@ -36,7 +36,7 @@ } \ } while (0) -static void check_idct(HEVCDSPContext h, int bit_depth) +static void check_idct(HEVCDSPContext *h, int bit_depth) { int i; LOCAL_ALIGNED(32, int16_t, coeffs0, [32 * 32]); @@ -50,7 +50,7 @@ static void check_idct(HEVCDSPContext h, int bit_depth) randomize_buffers(coeffs0, size); memcpy(coeffs1, coeffs0, sizeof(*coeffs0) * size); - if (check_func(h.idct[i - 2], "hevc_idct_%dx%d_%d", block_size, block_size, bit_depth)) { + if (check_func(h->idct[i - 2], "hevc_idct_%dx%d_%d", block_size, block_size, bit_depth)) { call_ref(coeffs0, col_limit); call_new(coeffs1, col_limit); if (memcmp(coeffs0, coeffs1, sizeof(*coeffs0) * size)) @@ -60,7 +60,7 @@ static void check_idct(HEVCDSPContext h, int bit_depth) } } -static void check_idct_dc(HEVCDSPContext h, int bit_depth) +static void check_idct_dc(HEVCDSPContext *h, int bit_depth) { int i; LOCAL_ALIGNED(32, int16_t, coeffs0, [32 * 32]); @@ -74,7 +74,7 @@ static void check_idct_dc(HEVCDSPContext h, int bit_depth) randomize_buffers(coeffs0, size); memcpy(coeffs1, coeffs0, sizeof(*coeffs0) * size); - if (check_func(h.idct_dc[i - 2], "hevc_idct_%dx%d_dc_%d", block_size, block_size, bit_depth)) { + if (check_func(h->idct_dc[i - 2], "hevc_idct_%dx%d_dc_%d", block_size, block_size, bit_depth)) { call_ref(coeffs0); call_new(coeffs1); if (memcmp(coeffs0, coeffs1, sizeof(*coeffs0) * size)) @@ -113,7 +113,7 @@ void checkasm_check_hevc_idct(void) HEVCDSPContext h; ff_hevc_dsp_init(&h, bit_depth); - check_idct_dc(h, bit_depth); + check_idct_dc(&h, bit_depth); } report("idct_dc"); @@ -121,7 +121,7 @@ void checkasm_check_hevc_idct(void) HEVCDSPContext h; ff_hevc_dsp_init(&h, bit_depth); - check_idct(h, bit_depth); + check_idct(&h, bit_depth); } report("idct"); |