[Ffmpeg-devel] PIX_FMT_RGB555 and alpha channel

Alex Beregszaszi alex
Mon Oct 30 12:14:54 CET 2006


Hi,

> > Index: libavutil/avutil.h
> > ===================================================================
> > --- libavutil/avutil.h	(revision 6738)
> > +++ libavutil/avutil.h	(working copy)
> > @@ -78,7 +78,8 @@
> >      PIX_FMT_YUV410P,   ///< Planar YUV 4:1:0,  9bpp, (1 Cr & Cb
> >      sample per 4x4 Y samples) PIX_FMT_YUV411P,   ///< Planar YUV
> >      4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
> >      PIX_FMT_RGB565,    ///< Packed RGB 5:6:5, 16bpp, (msb)   5R 6G
> >      5B(lsb), in cpu endianness
> > -    PIX_FMT_RGB555,    ///< Packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G
> > 5B(lsb), in cpu endianness most significant bit to 1 +   
> > PIX_FMT_RGB555,    ///< Packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G
> > 5B(lsb), in cpu endianness most significant bit to 0 +   
> > PIX_FMT_RGBA555,    ///< Packed RGB 5:5:5, 16bpp, (msb)1A 5R 5G
> > 5B(lsb), in cpu endianness most significant bit to 1
> >      PIX_FMT_GRAY8,     ///<        Y        ,  8bpp
> 
> breaks binary compatibility
> 
> also it likely breaks the swscaler as you didnt change it

Does SWScaler sets the MSB to 1 in case of RGB555? If not, this doesnt
breaks it.

-- 
Alex Beregszaszi | alex at siqon.com

-- 
Alex Beregszaszi | alex at fsn.hu




More information about the ffmpeg-devel mailing list