[Mplayer-cvslog] CVS: main/libvo img_format.h,1.3,1.4

Alex Beregszaszi alex at mplayer.dev.hu
Sat Nov 10 00:49:05 CET 2001


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv16935

Modified Files:
	img_format.h 
Log Message:
added some macros for rgb/bgr

Index: img_format.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/img_format.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- img_format.h	3 Nov 2001 21:01:12 -0000	1.3
+++ img_format.h	9 Nov 2001 23:49:03 -0000	1.4
@@ -20,6 +20,12 @@
 #define IMGFMT_BGR24 (IMGFMT_BGR|24)
 #define IMGFMT_BGR32 (IMGFMT_BGR|32)
 
+#define IMGFMT_IS_RGB(fmt) ((fmt&IMGFMT_RGB_MASK)==IMGFMT_RGB)
+#define IMGFMT_IS_BGR(fmt) ((fmt&IMGFMT_BGR_MASK)==IMGFMT_BGR)
+
+#define IMGFMT_RGB_DEPTH(fmt) (fmt&~IMGFMT_RGB)
+#define IMGFMT_BGR_DEPTH(fmt) (fmt&~IMGFMT_BGR)
+
 
 /* Planar YUV Formats */
 




More information about the MPlayer-cvslog mailing list