From b0c1455aa4c9fc319d91fe340fa4f6766e2ad898 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 7 Jan 2016 16:21:26 +0100 Subject: img_format: add a generic flag for semi-planar formats --- video/img_format.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'video/img_format.h') 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 \ -- cgit v1.2.3