summaryrefslogtreecommitdiffstats
path: root/video/img_format.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-01-07 16:21:26 +0100
committerwm4 <wm4@nowhere>2016-01-07 16:30:34 +0100
commitb0c1455aa4c9fc319d91fe340fa4f6766e2ad898 (patch)
tree814815073b752181759c69d36a2007721a6696f2 /video/img_format.h
parente2d90b383bc2987453e99b95081f00f5b01f3a5e (diff)
downloadmpv-b0c1455aa4c9fc319d91fe340fa4f6766e2ad898.tar.bz2
mpv-b0c1455aa4c9fc319d91fe340fa4f6766e2ad898.tar.xz
img_format: add a generic flag for semi-planar formats
Diffstat (limited to 'video/img_format.h')
-rw-r--r--video/img_format.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/img_format.h b/video/img_format.h
index 9dbc2eedf2..80acb2b3be 100644
--- a/video/img_format.h
+++ b/video/img_format.h
@@ -70,6 +70,10 @@
// Like MP_IMGFLAG_YUV_P, but RGB. This can be e.g. AV_PIX_FMT_GBRP. The planes
// are always shuffled (G - B - R [- A]).
#define MP_IMGFLAG_RGB_P 0x40000
+// Semi-planar YUV formats, like AV_PIX_FMT_NV12.
+// The flag MP_IMGFLAG_YUV_NV_SWAP is set for AV_PIX_FMT_NV21.
+#define MP_IMGFLAG_YUV_NV 0x80000
+#define MP_IMGFLAG_YUV_NV_SWAP 0x100000
// Exactly one of these bits is set in mp_imgfmt_desc.flags
#define MP_IMGFLAG_COLOR_CLASS_MASK \