|
vdr-plugin-softhddevice-drm-gles 1.6.4-d0291bb
|
DRM Plane. More...
#include <drmplane.h>
Private Member Functions | |
| int | SetPropertyRequest (drmModeAtomicReqPtr, const char *, uint64_t) |
| Add the properties to the mode setting request. | |
Private Attributes | |
| uint32_t | m_planeId = 0 |
| the plane's ID | |
| uint64_t | m_type = 0 |
| type: DRM_PLANE_TYPE_PRIMARY or DRM_PLANE_TYPE_OVERLAY | |
| drmModeObjectProperties * | m_props = nullptr |
| drmModePropertyRes ** | m_propsInfo |
| uint64_t | m_crtcId |
| CRTC_ID. | |
| uint64_t | m_fbId |
| FB_ID. | |
| uint64_t | m_crtcX |
| CRTC_X. | |
| uint64_t | m_crtcY |
| CRTC_Y. | |
| uint64_t | m_crtcW |
| CRTC_W. | |
| uint64_t | m_crtcH |
| CRTC_H. | |
| uint64_t | m_srcX |
| SRC_X. | |
| uint64_t | m_srcY |
| SRC_Y. | |
| uint64_t | m_srcW |
| SRC_W. | |
| uint64_t | m_srcH |
| SRC_H. | |
| uint64_t | m_zpos = 0 |
| ZPOS. | |
DRM Plane.
Definition at line 23 of file drmplane.h.
|
default |
| void cDrmPlane::ClearPlane | ( | drmModeAtomicReqPtr | ModeReq | ) |
Clear plane from drm.
| ModeReq | pointer to the atomic mode request |
Definition at line 165 of file drmplane.cpp.
References SetPropertyRequest().
Dump the cached plane parameter modesetting values.
Definition at line 206 of file drmplane.cpp.
References GetCrtcH(), GetCrtcId(), GetCrtcW(), GetCrtcX(), GetCrtcY(), GetFbId(), GetId(), GetSrcH(), GetSrcW(), GetSrcX(), GetSrcY(), GetZpos(), and LOGERROR.
Fill the plane properties.
This "caches" the properties within the class
| fd | drm file descriptor |
Definition at line 34 of file drmplane.cpp.
References GetId(), LOGERROR, m_props, m_propsInfo, and SetProps().
Referenced by cDrmDevice::Init().
Free the previously filled plane properties.
Definition at line 53 of file drmplane.cpp.
References GetProps(), GetPropsInfo(), m_props, and m_propsInfo.
Definition at line 48 of file drmplane.h.
References m_crtcH.
Referenced by DumpParameters(), and SetPlane().
Definition at line 43 of file drmplane.h.
References m_crtcId.
Referenced by DumpParameters(), and SetPlane().
Definition at line 47 of file drmplane.h.
References m_crtcW.
Referenced by DumpParameters(), and SetPlane().
Definition at line 45 of file drmplane.h.
References m_crtcX.
Referenced by DumpParameters(), and SetPlane().
Definition at line 46 of file drmplane.h.
References m_crtcY.
Referenced by DumpParameters(), and SetPlane().
Definition at line 44 of file drmplane.h.
References m_fbId.
Referenced by DumpParameters(), and SetPlane().
Definition at line 39 of file drmplane.h.
References m_planeId.
Referenced by DumpParameters(), FillProperties(), cDrmDevice::GetVideoPlaneColorRange(), cDrmDevice::HasPipPlane(), cDrmDevice::Init(), cVideoRender::SetColorSpace(), SetPropertyRequest(), cDrmDevice::SetVideoPlaneColorEncoding(), and cDrmDevice::SetVideoPlaneColorRange().
|
inline |
|
inline |
|
inline |
Definition at line 62 of file drmplane.h.
References m_propsInfo.
Definition at line 57 of file drmplane.h.
References m_propsInfo.
Referenced by SetPropertyRequest().
Definition at line 58 of file drmplane.h.
References m_propsInfo.
Referenced by SetPropertyRequest().
Definition at line 52 of file drmplane.h.
References m_srcH.
Referenced by DumpParameters(), and SetPlane().
Definition at line 51 of file drmplane.h.
References m_srcW.
Referenced by DumpParameters(), and SetPlane().
Definition at line 49 of file drmplane.h.
References m_srcX.
Referenced by DumpParameters(), and SetPlane().
Definition at line 50 of file drmplane.h.
References m_srcY.
Referenced by DumpParameters(), and SetPlane().
Definition at line 53 of file drmplane.h.
References m_zpos.
Referenced by DumpParameters(), cDrmDevice::Init(), and SetPlaneZpos().
Check, if the plane is able to set the zpos property.
| fdDrm | drm file descriptor |
| 1 | plane can use zpos |
| 0 | plane can't use zpos |
Definition at line 179 of file drmplane.cpp.
References L_DRM, LOGDEBUG2, LOGERROR, and SetPlaneZpos().
Referenced by cDrmDevice::Init().
| 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 | ||
| ) |
Caches 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 86 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.
| void cDrmPlane::SetPlane | ( | drmModeAtomicReqPtr | ModeReq | ) |
Set all plane properties (except zpos)
| ModeReq | pointer to the atomic mode request |
Definition at line 144 of file drmplane.cpp.
References GetCrtcH(), GetCrtcId(), GetCrtcW(), GetCrtcX(), GetCrtcY(), GetFbId(), GetSrcH(), GetSrcW(), GetSrcX(), GetSrcY(), and SetPropertyRequest().
| void cDrmPlane::SetPlaneZpos | ( | drmModeAtomicReqPtr | ModeReq | ) |
Set the plane zpos property.
| ModeReq | pointer to the atomic mode request |
Definition at line 134 of file drmplane.cpp.
References GetZpos(), and SetPropertyRequest().
Referenced by HasZpos().
|
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 109 of file drmplane.cpp.
References GetCountProps(), GetId(), GetPropsInfoName(), GetPropsInfoPropId(), and LOGDEBUG.
Referenced by ClearPlane(), SetPlane(), and SetPlaneZpos().
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 68 of file drmplane.h.
Referenced by FillProperties(), FreeProperties(), GetCountProps(), GetProps(), and SetProps().
|
private |
Definition at line 69 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 66 of file drmplane.h.
|
private |