|
vdr-plugin-softhddevice-drm-gles 1.4.0
|
cDrmPlane - DRM plane class More...
#include <drmplane.h>
Public Member Functions | |
| cDrmPlane (void) | |
| virtual | ~cDrmPlane (void) |
| void | SetParams (uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t, uint64_t) |
| Set the modesetting parameters of a plane. More... | |
| void | DumpParameters (const char *) |
| Dump the plane parameter modesetting values. More... | |
| void | FillProperties (int) |
| Fill the plane properties. More... | |
| void | FreeProperties (void) |
| Free the previously filled plane properties. More... | |
| void | SetPlaneZpos (drmModeAtomicReqPtr) |
| Set the plane zpos property. More... | |
| void | SetPlane (drmModeAtomicReqPtr) |
| Set all other plane properties. More... | |
| void | ClearPlane (drmModeAtomicReqPtr) |
| Clear plane from drm. More... | |
| int | HasZpos (int) |
| Check, if the plane is able to set the zpos property. More... | |
| uint32_t | GetId (void) |
| void | SetId (uint32_t id) |
| uint64_t | GetType (void) |
| void | SetType (uint64_t type) |
| uint64_t | GetCrtcId (void) |
| uint64_t | GetFbId (void) |
| uint64_t | GetCrtcX (void) |
| uint64_t | GetCrtcY (void) |
| uint64_t | GetCrtcW (void) |
| uint64_t | GetCrtcH (void) |
| uint64_t | GetSrcX (void) |
| uint64_t | GetSrcY (void) |
| uint64_t | GetSrcW (void) |
| uint64_t | GetSrcH (void) |
| uint64_t | GetZpos (void) |
| void | SetZpos (uint64_t zpos) |
| int | GetCountProps (void) |
| char * | GetPropsInfoName (int prop) |
| uint32_t | GetPropsInfoPropId (int prop) |
| drmModeObjectProperties * | GetProps (void) |
| void | SetProps (drmModeObjectProperties *props) |
| drmModePropertyRes ** | GetPropsInfo (void) |
| drmModePropertyRes ** | GetPropsInfoElem (int elem) |
Private Member Functions | |
| int | SetPropertyRequest (drmModeAtomicReqPtr, const char *, uint64_t) |
| Add the properties to the mode setting request. More... | |
Private Attributes | |
| uint32_t | m_planeId |
| the plane's ID More... | |
| uint64_t | m_type |
| type: DRM_PLANE_TYPE_PRIMARY or DRM_PLANE_TYPE_OVERLAY More... | |
| drmModeObjectProperties * | m_props |
| drmModePropertyRes ** | m_propsInfo |
| uint64_t | m_crtcId |
| CRTC_ID. More... | |
| uint64_t | m_fbId |
| FB_ID. More... | |
| uint64_t | m_crtcX |
| CRTC_X. More... | |
| uint64_t | m_crtcY |
| CRTC_Y. More... | |
| uint64_t | m_crtcW |
| CRTC_W. More... | |
| uint64_t | m_crtcH |
| CRTC_H. More... | |
| uint64_t | m_srcX |
| SRC_X. More... | |
| uint64_t | m_srcY |
| SRC_Y. More... | |
| uint64_t | m_srcW |
| SRC_W. More... | |
| uint64_t | m_srcH |
| SRC_H. More... | |
| uint64_t | m_zpos |
| ZPOS. More... | |
cDrmPlane - DRM plane class
Definition at line 30 of file drmplane.h.
| cDrmPlane::cDrmPlane | ( | void | ) |
Definition at line 35 of file drmplane.cpp.
|
virtual |
Definition at line 41 of file drmplane.cpp.
| void cDrmPlane::ClearPlane | ( | drmModeAtomicReqPtr | ModeReq | ) |
Clear plane from drm.
| ModeReq | pointer to the atomic mode request |
Definition at line 183 of file drmplane.cpp.
References SetPropertyRequest().
Referenced by cVideoRender::CommitBuffer().
| void cDrmPlane::DumpParameters | ( | const char * | id | ) |
Dump the plane parameter modesetting values.
Definition at line 223 of file drmplane.cpp.
References GetCrtcH(), GetCrtcId(), GetCrtcW(), GetCrtcX(), GetCrtcY(), GetFbId(), GetId(), GetSrcH(), GetSrcW(), GetSrcX(), GetSrcY(), GetZpos(), and LOGERROR.
Referenced by cVideoRender::CommitBuffer(), and cVideoRender::Init().
| void cDrmPlane::FillProperties | ( | int | fd | ) |
Fill the plane properties.
This "caches" the properties within the class
| fd | drm file descriptor |
Definition at line 52 of file drmplane.cpp.
References GetId(), LOGERROR, m_props, m_propsInfo, and SetProps().
Referenced by cDrmDevice::Init().
| void cDrmPlane::FreeProperties | ( | void | ) |
Free the previously filled plane properties.
Definition at line 71 of file drmplane.cpp.
References GetProps(), GetPropsInfo(), m_props, and m_propsInfo.
Referenced by cVideoRender::Exit().
|
inline |
|
inline |
Definition at line 55 of file drmplane.h.
References m_crtcH.
Referenced by DumpParameters(), and SetPlane().
|
inline |
Definition at line 50 of file drmplane.h.
References m_crtcId.
Referenced by DumpParameters(), and SetPlane().
|
inline |
Definition at line 54 of file drmplane.h.
References m_crtcW.
Referenced by DumpParameters(), and SetPlane().
|
inline |
Definition at line 52 of file drmplane.h.
References m_crtcX.
Referenced by DumpParameters(), and SetPlane().
|
inline |
Definition at line 53 of file drmplane.h.
References m_crtcY.
Referenced by DumpParameters(), and SetPlane().
|
inline |
Definition at line 51 of file drmplane.h.
References m_fbId.
Referenced by cVideoRender::CommitBuffer(), DumpParameters(), and SetPlane().
|
inline |
Definition at line 46 of file drmplane.h.
References m_planeId.
Referenced by DumpParameters(), FillProperties(), cDrmDevice::Init(), cVideoRender::SetOsdBuffer(), and SetPropertyRequest().
|
inline |
|
inline |
|
inline |
Definition at line 69 of file drmplane.h.
References m_propsInfo.
|
inline |
Definition at line 64 of file drmplane.h.
References m_propsInfo.
Referenced by SetPropertyRequest().
|
inline |
Definition at line 65 of file drmplane.h.
References m_propsInfo.
Referenced by SetPropertyRequest().
|
inline |
Definition at line 59 of file drmplane.h.
References m_srcH.
Referenced by DumpParameters(), and SetPlane().
|
inline |
Definition at line 58 of file drmplane.h.
References m_srcW.
Referenced by DumpParameters(), and SetPlane().
|
inline |
Definition at line 56 of file drmplane.h.
References m_srcX.
Referenced by DumpParameters(), and SetPlane().
|
inline |
Definition at line 57 of file drmplane.h.
References m_srcY.
Referenced by DumpParameters(), and SetPlane().
|
inline |
|
inline |
Definition at line 60 of file drmplane.h.
References m_zpos.
Referenced by DumpParameters(), cDrmDevice::Init(), cVideoRender::SetOsdBuffer(), and SetPlaneZpos().
| int cDrmPlane::HasZpos | ( | int | fdDrm | ) |
Check, if the plane is able to set the zpos property.
| fdDrm | drm file descriptor |
Definition at line 196 of file drmplane.cpp.
References L_DRM, LOGDEBUG2, LOGERROR, and SetPlaneZpos().
Referenced by cDrmDevice::Init().
|
inline |
| void cDrmPlane::SetParams | ( | uint64_t | crtcId, |
| uint64_t | fbId, | ||
| uint64_t | crtcX, | ||
| uint64_t | crtcY, | ||
| uint64_t | crtcW, | ||
| uint64_t | crtcH, | ||
| uint64_t | srcX, | ||
| uint64_t | srcY, | ||
| uint64_t | srcW, | ||
| uint64_t | srcH | ||
| ) |
Set the modesetting parameters of a plane.
These values are used for drm modesetting
| crtcId | Mode object ID of the crtc |
| fbId | Mode object ID of the drm framebuffer |
| crtcX | X offset of the destination rect |
| crtcY | Y offset of the destination rect |
| crtcW | width of the destination rect |
| crtcH | height of the destination rect |
| srcX | X offset of the source rect |
| srcY | Y offset of the source rect |
| srcW | width of the source rect |
| srccH | height of the source rect |
Definition at line 104 of file drmplane.cpp.
References m_crtcH, m_crtcId, m_crtcW, m_crtcX, m_crtcY, m_fbId, m_srcH, m_srcW, m_srcX, and m_srcY.
Referenced by cVideoRender::Init(), cVideoRender::SetOsdBuffer(), cVideoRender::SetPipBuffer(), and cVideoRender::SetVideoBuffer().
| void cDrmPlane::SetPlane | ( | drmModeAtomicReqPtr | ModeReq | ) |
Set all other plane properties.
| ModeReq | pointer to the atomic mode request |
Definition at line 162 of file drmplane.cpp.
References GetCrtcH(), GetCrtcId(), GetCrtcW(), GetCrtcX(), GetCrtcY(), GetFbId(), GetSrcH(), GetSrcW(), GetSrcX(), GetSrcY(), and SetPropertyRequest().
Referenced by cVideoRender::CommitBuffer(), and cVideoRender::Init().
| void cDrmPlane::SetPlaneZpos | ( | drmModeAtomicReqPtr | ModeReq | ) |
Set the plane zpos property.
| ModeReq | pointer to the atomic mode request |
Definition at line 152 of file drmplane.cpp.
References GetZpos(), and SetPropertyRequest().
Referenced by HasZpos(), cVideoRender::Init(), and cVideoRender::SetOsdBuffer().
|
private |
Add the properties to the mode setting request.
| ModeReq | pointer to the atomic mode request |
| propName | name of the property to set |
| value | property value |
Definition at line 127 of file drmplane.cpp.
References GetCountProps(), GetId(), GetPropsInfoName(), GetPropsInfoPropId(), and LOGERROR.
Referenced by ClearPlane(), SetPlane(), and SetPlaneZpos().
|
inline |
|
inline |
|
inline |
Definition at line 61 of file drmplane.h.
References m_zpos.
Referenced by cDrmDevice::Init(), cVideoRender::Init(), and cVideoRender::SetOsdBuffer().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
the plane's ID
Definition at line 72 of file drmplane.h.
Referenced by cDrmPlane(), GetId(), and SetId().
|
private |
Definition at line 75 of file drmplane.h.
Referenced by FillProperties(), FreeProperties(), GetCountProps(), GetProps(), and SetProps().
|
private |
Definition at line 76 of file drmplane.h.
Referenced by FillProperties(), FreeProperties(), GetPropsInfo(), GetPropsInfoElem(), GetPropsInfoName(), and GetPropsInfoPropId().
|
private |
|
private |
|
private |
|
private |
|
private |
type: DRM_PLANE_TYPE_PRIMARY or DRM_PLANE_TYPE_OVERLAY
Definition at line 73 of file drmplane.h.
|
private |
ZPOS.
Definition at line 89 of file drmplane.h.
Referenced by cDrmPlane(), GetZpos(), and SetZpos().