sws: separate the calls to scaled vs unscaled conversion

Multimedia / FFmpeg - Anton Khirnov [khirnov.net] - 3 July 2021 13:57 UTC

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.

fe490ec165 sws: separate the calls to scaled vs unscaled conversion
libswscale/swscale.c | 10 ++++++----
libswscale/swscale_internal.h | 6 +-----
libswscale/utils.c | 3 ++-
tests/checkasm/sw_scale.c | 4 ++--
4 files changed, 11 insertions(+), 12 deletions(-)

  • Share