[FFmpeg-devel] [PATCH] swscale/rgb2rgb_template: use shuffle macro on BE arches

Andriy Gelman andriy.gelman at gmail.com
Fri Dec 4 06:14:48 EET 2020


On Tue, 01. Dec 00:45, Carl Eugen Hoyos wrote:
> Am Mo., 30. Nov. 2020 um 06:48 Uhr schrieb Andriy Gelman
> <andriy.gelman at gmail.com>:
> >
> > From: Andriy Gelman <andriy.gelman at gmail.com>
> >
> > Fixes fate-qtrle-32bit on PPC64 qemu
> 
> I suspect your patch fixes colourspace conversion (and the fate
> test) on big-endian.

For this fate test it's currently doing the argb->bgra conversion in swscale()
(libswscale/swscale.c). I saved some of the output images to .bmp and they seem
fine.  Looking at swscale() I think the conversion is done via argb->yuv->bgra.
After the patch it's a permutation of the bytes.

--
Andriy


More information about the ffmpeg-devel mailing list