[NUT-devel] [RFC] FourCCs for rawvideo rgb4_byte / bgr4_byte

Michael Niedermayer michaelni at gmx.at
Wed Jun 2 14:34:15 CEST 2010


On Mon, May 31, 2010 at 06:17:00PM +0200, Stefano Sabatini wrote:
> On date Friday 2010-05-28 03:23:38 +0200, Michael Niedermayer wrote:
> > On Thu, May 27, 2010 at 12:14:24PM +0200, Stefano Sabatini wrote:
> > > On date Thursday 2010-05-27 00:59:21 +0200, Stefano Sabatini wrote:
> [...]
> > > > I was almost committing, but since there are other formats I want to
> > > > add support for, maybe someone can find out a scheme for all of them.
> > > > 
> > > > These are the format I want to add support for:
> > > > bgr4_byte ->none
> > > > rgb4_byte ->none
> > > > rgb444be ->none
> > > > rgb444le ->none
> > > > bgr444be ->none
> > > > bgr444le ->none
> > > > 
> > > > I propose this scheme.
> > > > 
> > > > First byte:
> > > > b = BGR
> > > > B = BGR+A
> > > > r = RGB
> > > > R = RGB+A
> > > > a = ABGR
> > > > A = ARGB
> > 
> > i dont like this at all, using upper/lower case to distinguish formats
> > 
> > following is much closer to the existing system:
> > RGBA -> RBA[bits]
> > ARGB -> ARB[bits]
> > ABGR -> ABR[bits]
> > BGRA -> BRA[bits]
> 
> This only works if all the components have the same amount of bits.
> 
> Anyway I don't mind if you want to use this scheme for the missing
> formats:
> rgb444be -> [16]BRA
> rgb444le -> ARB[16]
> bgr444be -> [16]RBA
> bgr444le -> ABR[16]

the bits value should be 64 for 16bit per component, 32 for 8bpc

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/nut-devel/attachments/20100602/2d00793f/attachment.pgp>


More information about the NUT-devel mailing list