summaryrefslogtreecommitdiffstats
path: root/tests/checkasm/sw_scale.c
diff options
context:
space:
mode:
authorKacper Michajłow <[email protected]>2025-07-03 22:59:02 +0200
committerKacper Michajłow <[email protected]>2025-07-17 00:28:21 +0200
commitec51162bb6221b6af20348ade6c52e38c1e5e4b8 (patch)
tree83c8c5dd5c3822075fab7db613e9b6d376d4a141 /tests/checkasm/sw_scale.c
parent9015d595a115abad4428a61ac86002a06c90ce0b (diff)
checkasm/swscale: fix function prototypes
This aligns declared function types in checkasm with real definition. Fixes FATE: checkasm-{sw_rgb,sw_scale,sw_yuv2rgb,sw_yuv2yuv} Fixes: runtime error: call to function <func> through pointer to incorrect function type Fixes: c1a0e657638f7007dcc807a2d985c22631fcd6d3 Signed-off-by: Kacper Michajłow <[email protected]>
Diffstat (limited to 'tests/checkasm/sw_scale.c')
-rw-r--r--tests/checkasm/sw_scale.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c
index 11c9174a6b..b91e0b64ed 100644
--- a/tests/checkasm/sw_scale.c
+++ b/tests/checkasm/sw_scale.c
@@ -362,7 +362,7 @@ static void check_hscale(void)
// The dst parameter here is either int16_t or int32_t but we use void* to
// just cover both cases.
- declare_func(void, void *c, void *dst, int dstW,
+ declare_func(void, SwsInternal *c, int16_t *dst, int dstW,
const uint8_t *src, const int16_t *filter,
const int32_t *filterPos, int filterSize);
@@ -422,11 +422,11 @@ static void check_hscale(void)
memset(dst0, 0, SRC_PIXELS * sizeof(dst0[0]));
memset(dst1, 0, SRC_PIXELS * sizeof(dst1[0]));
- call_ref(NULL, dst0, sws->dst_w, src, filter, filterPos, width);
- call_new(NULL, dst1, sws->dst_w, src, filterAvx2, filterPosAvx, width);
+ call_ref(NULL, (int16_t *)dst0, sws->dst_w, src, filter, filterPos, width);
+ call_new(NULL, (int16_t *)dst1, sws->dst_w, src, filterAvx2, filterPosAvx, width);
if (memcmp(dst0, dst1, sws->dst_w * sizeof(dst0[0])))
fail();
- bench_new(NULL, dst0, sws->dst_w, src, filter, filterPosAvx, width);
+ bench_new(NULL, (int16_t *)dst0, sws->dst_w, src, filter, filterPosAvx, width);
}
}
}