[FFmpeg-devel] [PATCH v2 1/2] checkasm: added additional dstW tests for hscale

Martin Storsjö martin at martin.st
Wed May 25 11:25:29 EEST 2022


On Wed, 25 May 2022, Swinney, Jonathan wrote:

> Signed-off-by: Jonathan Swinney <jswinney at amazon.com>
> ---
> tests/checkasm/sw_scale.c | 38 ++++++++++++++++++++++----------------
> 1 file changed, 22 insertions(+), 16 deletions(-)
>
> diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c
> index 3c0a083b42..6c223c48f9 100644
> --- a/tests/checkasm/sw_scale.c
> +++ b/tests/checkasm/sw_scale.c
> @@ -148,7 +148,11 @@ static void check_hscale(void)
>         { 8, 18 },
>     };
>
> -    int i, j, fsi, hpi, width;
> +#define LARGEST_INPUT_SIZE 512
> +#define INPUT_SIZES 6
> +    static const int input_sizes[INPUT_SIZES] = {8, 24, 128, 144, 256, 512};
> +

While these are all nice even values, would it make sense to test things 
with uneven sizes too?


This patch does seem good to me, however it does break the checkasm test 
on x86. Offhand I don't know where it differs between how swscale is used 
in reality (where I presume it does work just fine) and how it's set up in 
checkasm.

// Martin



More information about the ffmpeg-devel mailing list