From 36eebc231e0ad94f31ed27f43e52b439a77a2560 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Wed, 13 Nov 2013 21:52:34 +0100 Subject: gl_video: support packed YUV formats with Apple extensions This adds support for packed YUV formats (YUVY and UYVY) using the extension GL_APPLE_rgb_422. While supporting this formats on their own is not that important (considering most video is planar YUV) they are used for interoperability with IOSurfaces. Next commit will use this formats to render VDA hardware decoded frames through IOSurface and OpenGL interoperability. --- video/out/gl_common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'video/out/gl_common.h') diff --git a/video/out/gl_common.h b/video/out/gl_common.h index c19ec7f73d..3c8d1aaa98 100644 --- a/video/out/gl_common.h +++ b/video/out/gl_common.h @@ -88,6 +88,7 @@ enum { MPGL_CAP_FLOAT_TEX = (1 << 9), MPGL_CAP_TEX_RG = (1 << 10), // GL_ARB_texture_rg / GL 3.x MPGL_CAP_VDPAU = (1 << 11), // GL_NV_vdpau_interop + MPGL_CAP_APPLE_RGB_422 = (1 << 12), // GL_APPLE_rgb_422 MPGL_CAP_NO_SW = (1 << 30), // used to block sw. renderers }; -- cgit v1.2.3