summaryrefslogtreecommitdiffstats
path: root/video/img_format.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-10-18 18:37:24 +0200
committerwm4 <wm4@nowhere>2015-10-18 18:37:24 +0200
commite3de309804d27d3ed41a45f37ca6a37ba3d4a267 (patch)
treed637aaf30e590404bcad324e92d0a3179948f1a3 /video/img_format.h
parent9ca312b4b1d8ccd2c3e28527b5a02dd27d911186 (diff)
downloadmpv-e3de309804d27d3ed41a45f37ca6a37ba3d4a267.tar.bz2
mpv-e3de309804d27d3ed41a45f37ca6a37ba3d4a267.tar.xz
vo_opengl: support all kinds of GBRP formats
Adds support for AV_PIX_FMT_GBRP9, AV_PIX_FMT_GBRP10, AV_PIX_FMT_GBRP12, AV_PIX_FMT_GBRP14, AV_PIX_FMT_GBRP16, AV_PIX_FMT_GBRAP, and AV_PIX_FMT_GBRAP16. (Not that it matters, because nobody uses these anyway.)
Diffstat (limited to 'video/img_format.h')
-rw-r--r--video/img_format.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/img_format.h b/video/img_format.h
index fefe0b82e4..cd2ebf5360 100644
--- a/video/img_format.h
+++ b/video/img_format.h
@@ -67,6 +67,8 @@
#define MP_IMGFLAG_HWACCEL 0x10000
// Set if the chroma resolution is lower than luma resolution. Unset for non-YUV.
#define MP_IMGFLAG_SUBSAMPLED 0x20000
+// Like MP_IMGFLAG_YUV_P, but RGB. The planes are organized as in IMGFMT_GBRP.
+#define MP_IMGFLAG_RGB_P 0x40000
// Exactly one of these bits is set in mp_imgfmt_desc.flags
#define MP_IMGFLAG_COLOR_CLASS_MASK \