|
vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
|
DRM Display Interface. More...
Classes | |
| struct | format_plane_info |
| struct | format_info |
| class | cDrmBuffer |
| DRM Buffer. More... | |
| class | cDrmBufferPool |
| DRM Buffer Pool. More... | |
| class | cDrmDevice |
| DRM Device. More... | |
| struct | vector |
| struct | colorspace |
| class | cHdrMetadata |
| HDR Metadata. More... | |
| class | cDrmPlane |
| DRM Plane. More... | |
Macros | |
| #define | ARRAY_LENGTH(a) (sizeof(a) / sizeof(a)[0]) |
Enumerations | |
| enum | hdrMetadataEotf { EOTF_TRADITIONAL_GAMMA_SDR , EOTF_TRADITIONAL_GAMMA_HDR , EOTF_ST2084 , EOTF_HLG } |
| enum | metadataId { METADATA_TYPE1 } |
Functions | |
| static int | get_resources (int fd, drmModeRes **resources) |
| static int | OpenDrmDevice (const char *device, drmModeRes **resources) |
| Open the given device. | |
| static int | FindDrmDevice (drmModeRes **resources) |
| Find and open a suitable device with the wanted capabilities. | |
| static drmModeConnector * | FindDrmConnector (int fd, drmModeRes *resources) |
| Find a suitable connector, preferably a connected one. | |
| static void | drm_fb_destroy_callback (struct gbm_bo *bo, void *data) |
| Callback function to destroy a drm buffer which stays in the gbm_bo's user data. | |
| static int32_t | FindCrtcForEncoder (const drmModeRes *resources, const drmModeEncoder *encoder) |
| Find the CRTC_ID for the given encoder. | |
| static uint16_t | EncodeXYY (float xyy) |
| static struct colorspace * | colorspace_lookup (const char *name) |
| EGLConfig | cDrmDevice::GetEGLConfig (void) |
| Get a suitable EGLConfig. | |
Variables | |
| static const EGLint | context_attribute_list [] |
| static struct colorspace | bt709 |
| BT709 Color Space. | |
| static struct colorspace | bt2020 |
| BT2020 Color Space. | |
| static struct colorspace | bt470bg |
| BT470bg Color Space. | |
| static struct colorspace *const | colorspaces [] |
DRM Display Interface.
| Enumerator | |
|---|---|
| EOTF_TRADITIONAL_GAMMA_SDR | |
| EOTF_TRADITIONAL_GAMMA_HDR | |
| EOTF_ST2084 | |
| EOTF_HLG | |
Definition at line 28 of file drmhdr.cpp.
| Enumerator | |
|---|---|
| METADATA_TYPE1 | |
Definition at line 36 of file drmhdr.cpp.
|
inlinestatic |
Definition at line 86 of file drmhdr.h.
References ARRAY_LENGTH, colorspaces, and colorspace::name.
Referenced by cHdrMetadata::Build().
Callback function to destroy a drm buffer which stays in the gbm_bo's user data.
Definition at line 777 of file drmdevice.cpp.
Referenced by cDrmDevice::GetBufFromBo().
Definition at line 41 of file drmhdr.cpp.
Referenced by cHdrMetadata::Build().
|
static |
Find the CRTC_ID for the given encoder.
| resources | drm resources |
| encoder | drm encoder |
Definition at line 903 of file drmdevice.cpp.
Referenced by cDrmDevice::FindCrtcForConnector().
|
static |
Find a suitable connector, preferably a connected one.
Definition at line 182 of file drmdevice.cpp.
Referenced by cDrmDevice::Init().
|
static |
Find and open a suitable device with the wanted capabilities.
Definition at line 134 of file drmdevice.cpp.
References get_resources(), LOGERROR, and TestCaps().
Referenced by cDrmDevice::Init().
|
static |
Definition at line 61 of file drmdevice.cpp.
References LOGERROR.
Referenced by FindDrmDevice(), and OpenDrmDevice().
Get a suitable EGLConfig.
Definition at line 664 of file drmdevice.cpp.
References EGL_CHECK, L_OPENGL, LOGDEBUG2, LOGFATAL, and cDrmDevice::m_eglDisplay.
Referenced by cDrmDevice::InitEGL().
|
static |
Open the given device.
| deviceName | name of the device (e.g. "/dev/dri/card0") |
| file | handle on success |
| -1 | if open failed |
Definition at line 112 of file drmdevice.cpp.
References get_resources(), and TestCaps().
Referenced by cDrmDevice::Init().
|
static |
|
static |
|
static |
|
static |
Definition at line 653 of file drmdevice.cpp.
Referenced by cDrmDevice::InitEGL().