[MPlayer-dev-eng] RGB vs. BGR

Alex Beregszaszi alex at fsn.hu
Wed Jan 28 12:06:48 CET 2004


Hi,

imho it doesn't make sense to what std we are conforming to, we should
only settle to one decision and document it to avoid misinterpretations

> arpi, please fill the following tables :)
> memory order:		name: (big/little endian if different)
> RGBA			???32
RGB32
> ARGB			???32
Good question (btw, QT Zygo uses this)

> BGRA			???32
BGR32

> ABGR			???32
Good question again

> RGB			???24
RGB24

> BGR			???24
BGR24

> order in an int		name: (big/little endian if different)
> mostsignifant .. least significant bit
> 8A8R8G8B		???32
Dunno
> 8A8B8G8R		???32
Dunno (BGR32 would be 8B8G8R8A according to the first table)

> 8R8G8B			???24
RGB24

> 8B8G8R			???24
BGR24

> 5R6G5B			???16
RGB16

> 5B6G5R			???16
BGR16

> 1A5R5G5B		???15
RGB15

> 1A5B5G5R		???15
BGR15

-- 
Alex Beregszaszi <alex at fsn.hu>
(MPlayer Core Developer -- http://www.mplayerhq.hu/)




More information about the MPlayer-dev-eng mailing list