summaryrefslogtreecommitdiff
path: root/libswscale/swscale_internal.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-20 13:37:06 +0200
committerAnton Khirnov <anton@khirnov.net>2021-07-03 15:57:13 +0200
commitfe490ec16531ac2d10a6bd8d3be560d31b00af67 (patch)
treeee06bc9cbb4285f4eef28a65bf7fbd1ef316ae2d /libswscale/swscale_internal.h
parent0f8e0957d23038f80c8c6193b4f940cfd0b42c9c (diff)
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 'libswscale/swscale_internal.h')
-rw-r--r--libswscale/swscale_internal.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 9304a5ef42..193bc383e1 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -878,11 +878,7 @@ void ff_get_unscaled_swscale_ppc(SwsContext *c);
void ff_get_unscaled_swscale_arm(SwsContext *c);
void ff_get_unscaled_swscale_aarch64(SwsContext *c);
-/**
- * Return function pointer to fastest main scaler path function depending
- * on architecture and available optimizations.
- */
-SwsFunc ff_getSwsFunc(SwsContext *c);
+void ff_sws_init_scale(SwsContext *c);
void ff_sws_init_input_funcs(SwsContext *c);
void ff_sws_init_output_funcs(SwsContext *c,