summaryrefslogtreecommitdiffstats
path: root/video/img_format.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-07-18 13:49:28 +0200
committerwm4 <wm4@nowhere>2013-07-18 13:49:28 +0200
commitfcdb681822891dbd0f78b6f3dcfc7786de65c695 (patch)
treee9089cf02841b59acbb6cef1a85d4761dae34997 /video/img_format.h
parentb606a6ce1a94017ee6519d884661ef828878226a (diff)
downloadmpv-fcdb681822891dbd0f78b6f3dcfc7786de65c695.tar.bz2
mpv-fcdb681822891dbd0f78b6f3dcfc7786de65c695.tar.xz
img_format: add a mask for color class
Using the term "color class" to avoid confusion with the other colorspace related concepts. Also get rid of MP_IMGFLAG_FMT_MASK, since it was unused.
Diffstat (limited to 'video/img_format.h')
-rw-r--r--video/img_format.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/img_format.h b/video/img_format.h
index 0cc48d937f..3631872ff0 100644
--- a/video/img_format.h
+++ b/video/img_format.h
@@ -57,7 +57,9 @@
// set if in native (host) endian, or endian independent
#define MP_IMGFLAG_NE MP_SELECT_LE_BE(MP_IMGFLAG_LE, MP_IMGFLAG_BE)
-#define MP_IMGFLAG_FMT_MASK 0x3FFF
+// Exactly one of these bits is set in mp_imgfmt_desc.flags
+#define MP_IMGFLAG_COLOR_CLASS_MASK \
+ (MP_IMGFLAG_YUV | MP_IMGFLAG_RGB | MP_IMGFLAG_XYZ)
struct mp_imgfmt_desc {
int id; // IMGFMT_*