[FFmpeg-cvslog] Add PIX_FMT_BGR48LE and PIX_FMT_BGR48BE pixel?formats

Michael Niedermayer michaelni at gmx.at
Sun Mar 20 02:17:09 CET 2011


On Sun, Mar 20, 2011 at 12:57:00AM +0100, Stefano Sabatini wrote:
> On date Saturday 2011-03-19 23:36:22 +0100, Michael Niedermayer wrote:
> > On Sat, Mar 19, 2011 at 11:10:57PM +0100, Ivo wrote:
> > > On Saturday 19 March 2011, 05:29:01, Peter Ross wrote:
> > > > --- a/libavutil/pixfmt.h
> > > > +++ b/libavutil/pixfmt.h
> > > > @@ -133,6 +133,7 @@ enum PixelFormat {
> > > >      PIX_FMT_BGR444BE,  ///< packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G
> > > > 4R(lsb), big-endian, most significant bits to 1 PIX_FMT_BGR444LE,  ///<
> > > > packed BGR 4:4:4, 16bpp, (msb)4A 4B 4G 4R(lsb), little-endian, most
> > > > significant bits to 1 PIX_FMT_Y400A,     ///< 8bit gray, 8bit alpha
> > > > +    PIX_FMT_UNUSED,
> > > >      PIX_FMT_BGR48BE,   ///< packed RGB 16:16:16, 48bpp, 16B, 16G, 16R,
> > > > the 2-byte value for each R/G/B component is stored as big-endian
> > > > PIX_FMT_BGR48LE,   ///< packed RGB 16:16:16, 48bpp, 16B, 16G, 16R, the
> > > > 2-byte value for each R/G/B component is stored as little-endian
> > > > PIX_FMT_NB,        ///< number of pixel formats, DO NOT USE THIS if you
> > > > want to link with shared libav* because the number of formats might
> > > > differ between versions
> > > 
> > > Isn't it easier to reverse the order of BGR48BE and LE?
> > 
> > It is before one wrote the patch.
> > but once its written its more work :)
> 
> $ ffmpeg -pix_fmts
> [...]
> .O... rgb444be               3            12
> .O... rgb444le               3            12
> .O... bgr444be               3            12
> .O... bgr444le               3            12
> I.... y400a                  2            16
> ..... (null)                 0             0
> ..... bgr48be                3            48
> ..... bgr48le                3            48

ive not considered that.
yes the solution is not optimal,
patch welcome, ill apply it

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

He who knows, does not speak. He who speaks, does not know. -- Lao Tsu
-------------- 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-cvslog/attachments/20110320/c3291570/attachment-0001.asc>


More information about the ffmpeg-cvslog mailing list