[FFmpeg-devel] [PATCH v2] swscale: Add support for unscaled 8-bit Packed RGB -> Planar RGB
Michael Niedermayer
michaelni at gmx.at
Wed Feb 13 13:32:20 CET 2013
On Sun, Feb 10, 2013 at 05:15:15PM -0500, Derek Buitenhuis wrote:
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
[...]
> @@ -971,6 +1052,9 @@ void ff_get_unscaled_swscale(SwsContext *c)
> if (srcFormat == AV_PIX_FMT_GBR24P && isPlanar(srcFormat) && isByteRGB(dstFormat))
> c->swScale = planarRgbToRgbWrapper;
>
> + if (isPackedRGB(srcFormat) && dstFormat == AV_PIX_FMT_GBRP)
> + c->swScale = rgbToPlanarRgbWrapper;
This will attempt to use the function in cases other than byte based
packed RGB, which will fail
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130213/3a59ef65/attachment.asc>
More information about the ffmpeg-devel
mailing list