aboutsummaryrefslogtreecommitdiffstats
path: root/tests/checkasm/sw_scale.c
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-10-10 12:16:44 +0200
committerNiklas Haas <git@haasn.dev>2024-11-21 12:49:56 +0100
commit2d077f9acda4946b3455ded5778fb3fc7e85bba2 (patch)
tree44ab5d5889e65b4067fbe54f4e7966a31f4c9f13 /tests/checkasm/sw_scale.c
parent10d1be262126f1699a89b54cf5f23a5370c57cb5 (diff)
downloadffmpeg-2d077f9acda4946b3455ded5778fb3fc7e85bba2.tar.gz
swscale/internal: group user-facing options togetherHEADmaster
This is a preliminary step to separating these into a new struct. This commit contains no functional changes, it is a pure search-and-replace. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas <git@haasn.dev>
Diffstat (limited to 'tests/checkasm/sw_scale.c')
-rw-r--r--tests/checkasm/sw_scale.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c
index 7580c8b56c..82e2b1d5ce 100644
--- a/tests/checkasm/sw_scale.c
+++ b/tests/checkasm/sw_scale.c
@@ -125,7 +125,7 @@ static void check_yuv2yuv1(int accurate)
sws = sws_alloc_context();
c = sws_internal(sws);
if (accurate)
- c->flags |= SWS_ACCURATE_RND;
+ c->opts.flags |= SWS_ACCURATE_RND;
if (sws_init_context(sws, NULL, NULL) < 0)
fail();
@@ -192,7 +192,7 @@ static void check_yuv2yuvX(int accurate)
sws = sws_alloc_context();
c = sws_internal(sws);
if (accurate)
- c->flags |= SWS_ACCURATE_RND;
+ c->opts.flags |= SWS_ACCURATE_RND;
if (sws_init_context(sws, NULL, NULL) < 0)
fail();
@@ -341,20 +341,20 @@ static void check_hscale(void)
filter[SRC_PIXELS * width + i] = rnd();
}
- c->dstW = c->chrDstW = input_sizes[dstWi];
+ c->opts.dst_w = c->chrDstW = input_sizes[dstWi];
ff_sws_init_scale(c);
memcpy(filterAvx2, filter, sizeof(uint16_t) * (SRC_PIXELS * MAX_FILTER_WIDTH + MAX_FILTER_WIDTH));
- ff_shuffle_filter_coefficients(c, filterPosAvx, width, filterAvx2, c->dstW);
+ ff_shuffle_filter_coefficients(c, filterPosAvx, width, filterAvx2, c->opts.dst_w);
- if (check_func(c->hcScale, "hscale_%d_to_%d__fs_%d_dstW_%d", c->srcBpc, c->dstBpc + 1, width, c->dstW)) {
+ if (check_func(c->hcScale, "hscale_%d_to_%d__fs_%d_dstW_%d", c->srcBpc, c->dstBpc + 1, width, c->opts.dst_w)) {
memset(dst0, 0, SRC_PIXELS * sizeof(dst0[0]));
memset(dst1, 0, SRC_PIXELS * sizeof(dst1[0]));
- call_ref(NULL, dst0, c->dstW, src, filter, filterPos, width);
- call_new(NULL, dst1, c->dstW, src, filterAvx2, filterPosAvx, width);
- if (memcmp(dst0, dst1, c->dstW * sizeof(dst0[0])))
+ call_ref(NULL, dst0, c->opts.dst_w, src, filter, filterPos, width);
+ call_new(NULL, dst1, c->opts.dst_w, src, filterAvx2, filterPosAvx, width);
+ if (memcmp(dst0, dst1, c->opts.dst_w * sizeof(dst0[0])))
fail();
- bench_new(NULL, dst0, c->dstW, src, filter, filterPosAvx, width);
+ bench_new(NULL, dst0, c->opts.dst_w, src, filter, filterPosAvx, width);
}
}
}