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_header_fixes.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'video/out/gl_header_fixes.h') diff --git a/video/out/gl_header_fixes.h b/video/out/gl_header_fixes.h index 88e8dd5e58..902116ace4 100644 --- a/video/out/gl_header_fixes.h +++ b/video/out/gl_header_fixes.h @@ -249,6 +249,18 @@ #endif #endif +#ifndef GL_RGB_422_APPLE +#define GL_RGB_422_APPLE 0x8A1F +#endif + +#ifndef UNSIGNED_SHORT_8_8_APPLE +#define UNSIGNED_SHORT_8_8_APPLE 0x85BA +#endif + +#ifndef UNSIGNED_SHORT_8_8_APPLE +#define UNSIGNED_SHORT_8_8_APPLE 0x85BB +#endif + #ifndef GL_NV_vdpau_interop #define GLvdpauSurfaceNV GLintptr #endif -- cgit v1.2.3