[MPlayer-dev-eng] Defining MPlayers RGB color formats

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Aug 9 13:07:07 CEST 2004


Hi,

> I think this question has already been answered in the thread
> starting with:
> 
> From: Michael Niedermayer <michaelni at gmx.at>
> To: mplayer-dev-eng at mplayer.dev.hu
> Date: Wed, 21 Jan 2004 16:47:56 +0100
> Subject: [MPlayer-dev-eng] RGB vs. BGR
> Message-Id: <200401211647.56307.michaelni at gmx.at>

No, it wasn't answered because it is plain wrong.

 > memory order:
 > RGB			???24
RGB24

 > order in an int
 > 8R8G8B			???24
RGB24

just plain can't be true on both big/little endian.

and e.g.

 > 5R6G5B			???16
RGB16

is actually BGR16 currently, at least on x86.

Not to mention that RGB8 doesn't appear at all in this list.

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list