summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-09 23:49:03 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-09 23:49:03 +0000
commitdc28bd3450c322e917b25375acb9faf71ada3fa4 (patch)
tree6df4507008779d1e224735cf60912bddd06a0e40 /libvo
parentaabf596111a5545a6d4217646f69b80b1aba3552 (diff)
downloadmpv-dc28bd3450c322e917b25375acb9faf71ada3fa4.tar.bz2
mpv-dc28bd3450c322e917b25375acb9faf71ada3fa4.tar.xz
added some macros for rgb/bgr
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2792 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-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 */