1 // 2 // Copyright 2018 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 // glext_angle.h: ANGLE modifications to the glext.h header file. 7 // Currently we don't include this file directly, we patch glext.h 8 // to include it implicitly so it is visible throughout our code. 9 10 #ifndef INCLUDE_GLES_GLEXT_ANGLE_H_ 11 #define INCLUDE_GLES_GLEXT_ANGLE_H_ 12 13 // clang-format off 14 15 // clang-format on 16 17 #ifndef GL_ANGLE_yuv_internal_format 18 #define GL_ANGLE_yuv_internal_format 19 20 // YUV formats introduced by GL_ANGLE_yuv_internal_format 21 // 8-bit YUV formats 22 #define GL_G8_B8R8_2PLANE_420_UNORM_ANGLE 0x96B1 23 #define GL_G8_B8_R8_3PLANE_420_UNORM_ANGLE 0x96B2 24 25 // 10-bit YUV formats 26 #define GL_G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16_ANGLE 0x96B3 27 #define GL_G10X6_B10X6_R10X6_3PLANE_420_UNORM_3PACK16_ANGLE 0x96B4 28 29 // 12-bit YUV formats 30 #define GL_G12X4_B12X4R12X4_2PLANE_420_UNORM_3PACK16_ANGLE 0x96B5 31 #define GL_G12X4_B12X4_R12X4_3PLANE_420_UNORM_3PACK16_ANGLE 0x96B6 32 33 // 16-bit YUV formats 34 #define GL_G16_B16R16_2PLANE_420_UNORM_ANGLE 0x96B7 35 #define GL_G16_B16_R16_3PLANE_420_UNORM_ANGLE 0x96B8 36 37 #endif /* GL_ANGLE_yuv_internal_format */ 38 39 #endif // INCLUDE_GLES_GLEXT_ANGLE_H_ 40