[FFmpeg-devel] [PATCH] sws: Replace call to yuv2yuvX_mmx by yuv2yuvX_mmxext

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Wed Aug 17 12:13:05 EEST 2022


Alan Kelly:
> ---
>  Call yuv2yuvX_mmxext on line 208 also.
>  libswscale/x86/swscale.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libswscale/x86/swscale.c b/libswscale/x86/swscale.c
> index 32d441245d..e0f90d5c58 100644
> --- a/libswscale/x86/swscale.c
> +++ b/libswscale/x86/swscale.c
> @@ -205,13 +205,13 @@ static void yuv2yuvX_ ##opt(const int16_t *filter, int filterSize, \
>      int remainder = (dstW % step); \
>      int pixelsProcessed = dstW - remainder; \
>      if(((uintptr_t)dest) & 15){ \
> -        yuv2yuvX_mmx(filter, filterSize, src, dest, dstW, dither, offset); \
> +        yuv2yuvX_mmxext(filter, filterSize, src, dest, dstW, dither, offset); \
>          return; \
>      } \
>      if(pixelsProcessed > 0) \
>          ff_yuv2yuvX_ ##opt(filter, filterSize - 1, 0, dest - offset, pixelsProcessed + offset, dither, offset); \
>      if(remainder > 0){ \
> -      ff_yuv2yuvX_mmx(filter, filterSize - 1, pixelsProcessed, dest - offset, pixelsProcessed + remainder + offset, dither, offset); \
> +      ff_yuv2yuvX_mmxext(filter, filterSize - 1, pixelsProcessed, dest - offset, pixelsProcessed + remainder + offset, dither, offset); \
>      } \
>      return; \
>  }

Does this not cause a warning because yuv2yuvX_mmx is now unused?

- Andreas


More information about the ffmpeg-devel mailing list