[Mplayer-cvslog] CVS: main/DOCS/tech colorspaces.txt,1.9,1.10

Michael Niedermayer CVS syncmail at mplayerhq.hu
Wed Aug 11 03:52:19 CEST 2004


CVS change done by Michael Niedermayer CVS

Update of /cvsroot/mplayer/main/DOCS/tech
In directory mail:/var2/tmp/cvs-serv16736

Modified Files:
	colorspaces.txt 
Log Message:
better? RGB/BGR spec


Index: colorspaces.txt
===================================================================
RCS file: /cvsroot/mplayer/main/DOCS/tech/colorspaces.txt,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- colorspaces.txt	8 Apr 2004 21:50:29 -0000	1.9
+++ colorspaces.txt	11 Aug 2004 01:52:17 -0000	1.10
@@ -103,6 +103,28 @@
 Unfortunately, most of the x86 codecs call our BGR to RGB, so it sometimes
 confuse developers.
 
-If you are unsure, try the OpenGL driver (-vo gl:manyfmts). There is at least
-software OpenGL implementation for all major platforms and OS's, but you will
-need OpenGL version >= 1.2 for most formats.
+memory order:           name
+RGBA                    IMGFMT_RGBA
+ARGB                    IMGFMT_ARGB
+BGRA                    IMGFMT_BGRA
+ABGR                    IMGFMT_ABGR
+RGB                     IMGFMT_RGB24
+BGR                     IMGFMT_BGR24
+
+order in an int         name
+mostsignifant .. least significant bit
+8A8R8G8B                IMGFMT_BGR32
+8A8B8G8R                IMGFMT_RGB32
+5R6G5B                  IMGFMT_BGR16
+5B6G5R                  IMGFMT_RGB16
+1A5R5G5B                IMGFMT_BGR15
+1A5B5G5R                IMGFMT_RGB15
+3R3G2B                  IMGFMT_BGR8
+2B3G3R                  IMGFMT_RGB8
+1R2G1B                  IMGFMT_BGR4_CHAR
+1B2G1R                  IMGFMT_RGB4_CHAR
+1R2G1B1R2G1B            IMGFMT_BGR4
+1B2G1R1B2G1R            IMGFMT_RGB4
+
+depending upon little vs big endian different in memory & in register formats 
+will be equal (LE -> BGRA == BGR32 / BE -> ARGB == BGR32)




More information about the MPlayer-cvslog mailing list