31#include <xf86drmMode.h>
72 EGLSurface EglSurface(
void) {
return m_eglSurface; };
73 EGLDisplay EglDisplay(
void) {
return m_eglDisplay; };
74 EGLContext EglContext(
void) {
return m_eglContext; };
75 int GlInitiated(
void) {
return m_glInitiated; };
76 struct gbm_surface *GbmSurface(
void) {
return m_pGbmSurface; };
80 int SetPropertyRequest(drmModeAtomicReqPtr, uint32_t, uint32_t,
const char *, uint64_t);
112 struct gbm_device *m_pGbmDevice;
113 struct gbm_surface *m_pGbmSurface;
115 EGLSurface m_eglSurface;
116 EGLDisplay m_eglDisplay;
117 EGLContext m_eglContext;
121 EGLConfig GetEGLConfig(
void);
122 int InitGbm(
int,
int, uint32_t, uint64_t);
uint32_t m_userReqDisplayRefreshRate
user requested display refresh rate
int m_userReqDisplayHeight
user requested display height
drmModeModeInfo m_drmModeInfo
mode info
int CreatePropertyBlob(uint32_t *)
Creates a property blob.
cDrmPlane m_videoPlane
the video drm plane
int SetPropertyRequest(drmModeAtomicReqPtr, uint32_t, uint32_t, const char *, uint64_t)
Add a property to a request.
uint64_t DisplayHeight(void)
int32_t FindCrtcForConnector(const drmModeRes *, const drmModeConnector *)
Finds the CRTC_ID for the given connector.
int HandleEvent(void)
Polls for a drm event.
int m_userReqDisplayWidth
user requested display width
cDrmPlane m_pipPlane
the pip drm plane
uint64_t DisplayWidth(void)
uint64_t ZposPrimary(void)
drmModeCrtc * m_drmModeCrtcSaved
saved CRTC infos
int m_fdDrm
drm file descriptor
uint64_t ZposOverlay(void)
uint64_t m_zposPip
zpos of pip plane
cDrmPlane * PipPlane(void)
void SaveCrtc(void)
Saves information of a CRTC.
~cDrmDevice(void)
cDrmDevice destructor
uint32_t m_connectorId
connector id
void RestoreCrtc(void)
Restore information of a CRTC.
void Close(void)
Close drm file handle.
cDrmPlane * OsdPlane(void)
uint32_t m_crtcId
current crtc ID
cDrmPlane * VideoPlane(void)
uint32_t ConnectorId(void)
uint32_t m_crtcIndex
current crtc index
cVideoRender * m_pRender
pointer to cVideoRender object
int Init(void)
Initiate the drm device.
uint64_t m_zposPrimary
zpos of primary plane
drmEventContext m_drmEventCtx
drm event context
bool m_useZpos
is set, if drm hardware can use zpos
cDrmPlane m_osdPlane
the osd drm plane
void InitEvent(void)
Init the event context.
uint64_t m_zposOverlay
zpos of overlay plane
cDrmPlane - DRM plane class
cVideoRender - Video render class