diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-05-20 13:37:06 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-07-03 15:57:13 +0200 |
commit | fe490ec16531ac2d10a6bd8d3be560d31b00af67 (patch) | |
tree | ee06bc9cbb4285f4eef28a65bf7fbd1ef316ae2d /tests | |
parent | 0f8e0957d23038f80c8c6193b4f940cfd0b42c9c (diff) | |
download | ffmpeg-fe490ec16531ac2d10a6bd8d3be560d31b00af67.tar.gz |
sws: separate the calls to scaled vs unscaled conversion
Call the scaler function directly rather than through a function
pointer. Drop the now-unused return value from ff_getSwsFunc() and
rename the function to reflect its new role.
This will be useful in the following commits, where it will become
important that the amount of output is different for scaled vs unscaled
case.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/checkasm/sw_scale.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c index 3ac0f9082f..40c5eb3aa8 100644 --- a/tests/checkasm/sw_scale.c +++ b/tests/checkasm/sw_scale.c @@ -93,7 +93,7 @@ static void check_yuv2yuvX(void) if (sws_init_context(ctx, NULL, NULL) < 0) fail(); - ff_getSwsFunc(ctx); + ff_sws_init_scale(ctx); for(isi = 0; isi < INPUT_SIZES; ++isi){ dstW = input_sizes[isi]; for(osi = 0; osi < 64; osi += 16){ @@ -210,7 +210,7 @@ static void check_hscale(void) filter[SRC_PIXELS * width + i] = rnd(); } - ff_getSwsFunc(ctx); + ff_sws_init_scale(ctx); if (check_func(ctx->hcScale, "hscale_%d_to_%d_width%d", ctx->srcBpc, ctx->dstBpc + 1, width)) { memset(dst0, 0, SRC_PIXELS * sizeof(dst0[0])); |