46#include <drm_fourcc.h>
51#include <libavcodec/avcodec.h>
52#include <libavutil/hwcontext_drm.h>
53#include <libavutil/pixdesc.h>
54#include <libavfilter/buffersink.h>
55#include <libavfilter/buffersrc.h>
56#include <libavutil/opt.h>
101 EGLSurface EglSurface(
void) {
return m_eglSurface; };
102 EGLDisplay EglDisplay(
void) {
return m_eglDisplay; };
103 EGLContext EglContext(
void) {
return m_eglContext; };
104 int GlInitiated(
void) {
return m_glInitiated; };
105 struct gbm_surface *GbmSurface(
void) {
return m_pGbmSurface; };
109 int SetPropertyRequest(drmModeAtomicReqPtr, uint32_t, uint32_t,
const char *, uint64_t);
141 struct gbm_device *m_pGbmDevice;
142 struct gbm_surface *m_pGbmSurface;
144 EGLSurface m_eglSurface;
145 EGLDisplay m_eglDisplay;
146 EGLContext m_eglContext;
150 EGLConfig GetEGLConfig(
void);
151 int InitGbm(
int,
int, uint32_t, uint64_t);
Audio and alsa module header file.
Some helper functions header file.
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
cDrmDevice(cVideoRender *, const char *)
cDrmDevice constructor
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.
virtual ~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
Logger class header file.
Misc function header file.
Thread classes header file.