MythTV  master
mythegldefs.h
Go to the documentation of this file.
1 #ifndef MYTHEGLDEFS_H
2 #define MYTHEGLDEFS_H
3 
4 // This file exists solely to work around conflicts between the generic and
5 // Broadcom EGL headers when using both open and closed source drivers/features
6 // on the Raspberry Pi.
7 
8 #include <EGL/egl.h>
9 #include <EGL/eglext.h>
10 
11 #ifndef EGL_IMAGE_BRCM_MULTIMEDIA_Y
12 static constexpr uint32_t EGL_IMAGE_BRCM_MULTIMEDIA_Y { 0x99930C0 };
13 #endif
14 #ifndef EGL_IMAGE_BRCM_MULTIMEDIA_U
15 static constexpr uint32_t EGL_IMAGE_BRCM_MULTIMEDIA_U { 0x99930C1 };
16 #endif
17 #ifndef EGL_IMAGE_BRCM_MULTIMEDIA_V
18 static constexpr uint32_t EGL_IMAGE_BRCM_MULTIMEDIA_V { 0x99930C2 };
19 #endif
20 
21 #ifndef EGL_EXT_image_dma_buf_import
22 #define EGL_EXT_image_dma_buf_import 1 // NOLINT(cppcoreguidelines-macro-usage)
23 static constexpr uint16_t EGL_LINUX_DMA_BUF_EXT { 0x3270 };
24 static constexpr uint16_t EGL_LINUX_DRM_FOURCC_EXT { 0x3271 };
25 static constexpr uint16_t EGL_DMA_BUF_PLANE0_FD_EXT { 0x3272 };
26 static constexpr uint16_t EGL_DMA_BUF_PLANE0_OFFSET_EXT { 0x3273 };
27 static constexpr uint16_t EGL_DMA_BUF_PLANE0_PITCH_EXT { 0x3274 };
28 static constexpr uint16_t EGL_DMA_BUF_PLANE1_FD_EXT { 0x3275 };
29 static constexpr uint16_t EGL_DMA_BUF_PLANE1_OFFSET_EXT { 0x3276 };
30 static constexpr uint16_t EGL_DMA_BUF_PLANE1_PITCH_EXT { 0x3277 };
31 static constexpr uint16_t EGL_DMA_BUF_PLANE2_FD_EXT { 0x3278 };
32 static constexpr uint16_t EGL_DMA_BUF_PLANE2_OFFSET_EXT { 0x3279 };
33 static constexpr uint16_t EGL_DMA_BUF_PLANE2_PITCH_EXT { 0x327A };
34 static constexpr uint16_t EGL_YUV_COLOR_SPACE_HINT_EXT { 0x327B };
35 static constexpr uint16_t EGL_SAMPLE_RANGE_HINT_EXT { 0x327C };
38 static constexpr uint16_t EGL_ITU_REC601_EXT { 0x327F };
39 static constexpr uint16_t EGL_ITU_REC709_EXT { 0x3280 };
40 static constexpr uint16_t EGL_ITU_REC2020_EXT { 0x3281 };
41 static constexpr uint16_t EGL_YUV_FULL_RANGE_EXT { 0x3282 };
42 static constexpr uint16_t EGL_YUV_NARROW_RANGE_EXT { 0x3283 };
43 static constexpr uint16_t EGL_YUV_CHROMA_SITING_0_EXT { 0x3284 };
44 static constexpr uint16_t EGL_YUV_CHROMA_SITING_0_5_EXT { 0x3285 };
45 #endif
46 
47 #ifndef EGL_EXT_image_dma_buf_import_modifiers
48 #define EGL_EXT_image_dma_buf_import_modifiers 1 // NOLINT(cppcoreguidelines-macro-usage)
49 static constexpr uint16_t EGL_DMA_BUF_PLANE3_FD_EXT { 0x3440 };
50 static constexpr uint16_t EGL_DMA_BUF_PLANE3_OFFSET_EXT { 0x3441 };
51 static constexpr uint16_t EGL_DMA_BUF_PLANE3_PITCH_EXT { 0x3442 };
52 static constexpr uint16_t EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT { 0x3443 };
53 static constexpr uint16_t EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT { 0x3444 };
54 static constexpr uint16_t EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT { 0x3445 };
55 static constexpr uint16_t EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT { 0x3446 };
56 static constexpr uint16_t EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT { 0x3447 };
57 static constexpr uint16_t EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT { 0x3448 };
58 static constexpr uint16_t EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT { 0x3449 };
59 static constexpr uint16_t EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT { 0x344A };
60 #endif
61 
62 #endif // MYTHEGLDEFS_H
EGL_DMA_BUF_PLANE3_FD_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE3_FD_EXT
Definition: mythegldefs.h:49
EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT
Definition: mythegldefs.h:59
EGL_DMA_BUF_PLANE2_PITCH_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE2_PITCH_EXT
Definition: mythegldefs.h:33
EGL_DMA_BUF_PLANE1_OFFSET_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE1_OFFSET_EXT
Definition: mythegldefs.h:29
EGL_DMA_BUF_PLANE2_OFFSET_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE2_OFFSET_EXT
Definition: mythegldefs.h:32
EGL_DMA_BUF_PLANE1_FD_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE1_FD_EXT
Definition: mythegldefs.h:28
EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT
Definition: mythegldefs.h:55
EGL_IMAGE_BRCM_MULTIMEDIA_U
static constexpr uint32_t EGL_IMAGE_BRCM_MULTIMEDIA_U
Definition: mythegldefs.h:15
EGL_ITU_REC2020_EXT
static constexpr uint16_t EGL_ITU_REC2020_EXT
Definition: mythegldefs.h:40
EGL_DMA_BUF_PLANE0_FD_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE0_FD_EXT
Definition: mythegldefs.h:25
EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT
Definition: mythegldefs.h:56
EGL_YUV_CHROMA_SITING_0_5_EXT
static constexpr uint16_t EGL_YUV_CHROMA_SITING_0_5_EXT
Definition: mythegldefs.h:44
EGL_YUV_COLOR_SPACE_HINT_EXT
static constexpr uint16_t EGL_YUV_COLOR_SPACE_HINT_EXT
Definition: mythegldefs.h:34
EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT
Definition: mythegldefs.h:54
EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT
static constexpr uint16_t EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT
Definition: mythegldefs.h:36
EGL_YUV_FULL_RANGE_EXT
static constexpr uint16_t EGL_YUV_FULL_RANGE_EXT
Definition: mythegldefs.h:41
EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT
Definition: mythegldefs.h:53
EGL_ITU_REC601_EXT
static constexpr uint16_t EGL_ITU_REC601_EXT
Definition: mythegldefs.h:38
EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT
Definition: mythegldefs.h:58
EGL_DMA_BUF_PLANE0_OFFSET_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE0_OFFSET_EXT
Definition: mythegldefs.h:26
EGL_IMAGE_BRCM_MULTIMEDIA_V
static constexpr uint32_t EGL_IMAGE_BRCM_MULTIMEDIA_V
Definition: mythegldefs.h:18
EGL_IMAGE_BRCM_MULTIMEDIA_Y
static constexpr uint32_t EGL_IMAGE_BRCM_MULTIMEDIA_Y
Definition: mythegldefs.h:12
EGL_DMA_BUF_PLANE3_PITCH_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE3_PITCH_EXT
Definition: mythegldefs.h:51
EGL_DMA_BUF_PLANE0_PITCH_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE0_PITCH_EXT
Definition: mythegldefs.h:27
EGL_DMA_BUF_PLANE1_PITCH_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE1_PITCH_EXT
Definition: mythegldefs.h:30
EGL_LINUX_DRM_FOURCC_EXT
static constexpr uint16_t EGL_LINUX_DRM_FOURCC_EXT
Definition: mythegldefs.h:24
EGL_LINUX_DMA_BUF_EXT
static constexpr uint16_t EGL_LINUX_DMA_BUF_EXT
Definition: mythegldefs.h:23
EGL_YUV_NARROW_RANGE_EXT
static constexpr uint16_t EGL_YUV_NARROW_RANGE_EXT
Definition: mythegldefs.h:42
EGL_DMA_BUF_PLANE3_OFFSET_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE3_OFFSET_EXT
Definition: mythegldefs.h:50
EGL_ITU_REC709_EXT
static constexpr uint16_t EGL_ITU_REC709_EXT
Definition: mythegldefs.h:39
EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT
static constexpr uint16_t EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT
Definition: mythegldefs.h:37
uint16_t
unsigned short uint16_t
Definition: iso6937tables.h:3
EGL_YUV_CHROMA_SITING_0_EXT
static constexpr uint16_t EGL_YUV_CHROMA_SITING_0_EXT
Definition: mythegldefs.h:43
EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT
Definition: mythegldefs.h:52
EGL_SAMPLE_RANGE_HINT_EXT
static constexpr uint16_t EGL_SAMPLE_RANGE_HINT_EXT
Definition: mythegldefs.h:35
EGL_DMA_BUF_PLANE2_FD_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE2_FD_EXT
Definition: mythegldefs.h:31
EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT
static constexpr uint16_t EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT
Definition: mythegldefs.h:57