changeset 2791:8ef2ab5cd47f

added some macros for rgb/bgr
author alex
date Fri, 09 Nov 2001 23:49:03 +0000
parents 98769cea155c
children ad82a618b371
files libvo/img_format.h
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/img_format.h	Fri Nov 09 23:46:06 2001 +0000
+++ b/libvo/img_format.h	Fri Nov 09 23:49:03 2001 +0000
@@ -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 */