PR #22339 opened by mkver URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22339 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22339.patch
Added in 81c0590e6c88b6c0752e52ef77e003cef3eaadf5, but it seems to have always been unused. See also 5421dee0e7e0028f59a7285be26fc7f12ae42a8b. >From 0d3a5f5574126ea47ab61783cb6b10d16c2d6239 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt <[email protected]> Date: Sun, 1 Mar 2026 18:00:02 +0100 Subject: [PATCH] swscale/rgb2rgb_template: Remove unused uyvytoyv12_c() Added in 81c0590e6c88b6c0752e52ef77e003cef3eaadf5, but it seems to have always been unused. See also 5421dee0e7e0028f59a7285be26fc7f12ae42a8b. Signed-off-by: Andreas Rheinhardt <[email protected]> --- libswscale/rgb2rgb_template.c | 36 ----------------------------------- 1 file changed, 36 deletions(-) diff --git a/libswscale/rgb2rgb_template.c b/libswscale/rgb2rgb_template.c index 7d4a605043..f71be33ac4 100644 --- a/libswscale/rgb2rgb_template.c +++ b/libswscale/rgb2rgb_template.c @@ -607,42 +607,6 @@ static inline void planar2x_c(const uint8_t *src, uint8_t *dst, int srcWidth, dst[2 * srcWidth - 1] = src[srcWidth - 1]; } -/** - * Height should be a multiple of 2 and width should be a multiple of 16. - * (If this is a problem for anyone then tell me, and I will fix it.) - * Chrominance data is only taken from every second line, others are ignored. - * FIXME: Write HQ version. - */ -static inline void uyvytoyv12_c(const uint8_t *src, uint8_t *ydst, - uint8_t *udst, uint8_t *vdst, - int width, int height, int lumStride, - int chromStride, int srcStride) -{ - int y; - const int chromWidth = width >> 1; - - for (y = 0; y < height; y += 2) { - int i; - for (i = 0; i < chromWidth; i++) { - udst[i] = src[4 * i + 0]; - ydst[2 * i + 0] = src[4 * i + 1]; - vdst[i] = src[4 * i + 2]; - ydst[2 * i + 1] = src[4 * i + 3]; - } - ydst += lumStride; - src += srcStride; - - for (i = 0; i < chromWidth; i++) { - ydst[2 * i + 0] = src[4 * i + 1]; - ydst[2 * i + 1] = src[4 * i + 3]; - } - udst += chromStride; - vdst += chromStride; - ydst += lumStride; - src += srcStride; - } -} - /** * width should be a multiple of 2. * (If this is a problem for anyone then tell me, and I will fix it.) -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
