summaryrefslogtreecommitdiffstats
path: root/libvo/img_format.h
diff options
context:
space:
mode:
Diffstat (limited to 'libvo/img_format.h')
-rw-r--r--libvo/img_format.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvo/img_format.h b/libvo/img_format.h
index c1829fa964..fc844539e0 100644
--- a/libvo/img_format.h
+++ b/libvo/img_format.h
@@ -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 */