cDrmPlane - DRM plane class
More...
#include <drmplane.h>
|
| | cDrmPlane (void)=default |
| |
| 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.
|
| |
| void | DumpParameters (const char *) |
| | Dump the plane parameter modesetting values.
|
| |
| void | FillProperties (int) |
| | Fill the plane properties.
|
| |
| void | FreeProperties (void) |
| | Free the previously filled plane properties.
|
| |
| void | SetPlaneZpos (drmModeAtomicReqPtr) |
| | Set the plane zpos property.
|
| |
| void | SetPlane (drmModeAtomicReqPtr) |
| | Set all other plane properties.
|
| |
| void | ClearPlane (drmModeAtomicReqPtr) |
| | Clear plane from drm.
|
| |
| int | HasZpos (int) |
| | Check, if the plane is able to set the zpos property.
|
| |
| 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) |
| |
|
| int | SetPropertyRequest (drmModeAtomicReqPtr, const char *, uint64_t) |
| | Add the properties to the mode setting request.
|
| |
cDrmPlane - DRM plane class
Definition at line 29 of file drmplane.h.
◆ cDrmPlane()
| cDrmPlane::cDrmPlane |
( |
void |
| ) |
|
|
default |
◆ ClearPlane()
| void cDrmPlane::ClearPlane |
( |
drmModeAtomicReqPtr |
ModeReq | ) |
|
◆ DumpParameters()
| void cDrmPlane::DumpParameters |
( |
const char * |
id | ) |
|
Dump the plane parameter modesetting values.
Definition at line 218 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().
◆ FillProperties()
| void cDrmPlane::FillProperties |
( |
int |
fd | ) |
|
◆ FreeProperties()
| void cDrmPlane::FreeProperties |
( |
void |
| ) |
|
◆ GetCountProps()
| int cDrmPlane::GetCountProps |
( |
void |
| ) |
|
|
inline |
◆ GetCrtcH()
| uint64_t cDrmPlane::GetCrtcH |
( |
void |
| ) |
|
|
inline |
◆ GetCrtcId()
| uint64_t cDrmPlane::GetCrtcId |
( |
void |
| ) |
|
|
inline |
◆ GetCrtcW()
| uint64_t cDrmPlane::GetCrtcW |
( |
void |
| ) |
|
|
inline |
◆ GetCrtcX()
| uint64_t cDrmPlane::GetCrtcX |
( |
void |
| ) |
|
|
inline |
◆ GetCrtcY()
| uint64_t cDrmPlane::GetCrtcY |
( |
void |
| ) |
|
|
inline |
◆ GetFbId()
| uint64_t cDrmPlane::GetFbId |
( |
void |
| ) |
|
|
inline |
◆ GetId()
| uint32_t cDrmPlane::GetId |
( |
void |
| ) |
|
|
inline |
◆ GetProps()
| drmModeObjectProperties * cDrmPlane::GetProps |
( |
void |
| ) |
|
|
inline |
◆ GetPropsInfo()
| drmModePropertyRes ** cDrmPlane::GetPropsInfo |
( |
void |
| ) |
|
|
inline |
◆ GetPropsInfoElem()
| drmModePropertyRes ** cDrmPlane::GetPropsInfoElem |
( |
int |
elem | ) |
|
|
inline |
◆ GetPropsInfoName()
| char * cDrmPlane::GetPropsInfoName |
( |
int |
prop | ) |
|
|
inline |
◆ GetPropsInfoPropId()
| uint32_t cDrmPlane::GetPropsInfoPropId |
( |
int |
prop | ) |
|
|
inline |
◆ GetSrcH()
| uint64_t cDrmPlane::GetSrcH |
( |
void |
| ) |
|
|
inline |
◆ GetSrcW()
| uint64_t cDrmPlane::GetSrcW |
( |
void |
| ) |
|
|
inline |
◆ GetSrcX()
| uint64_t cDrmPlane::GetSrcX |
( |
void |
| ) |
|
|
inline |
◆ GetSrcY()
| uint64_t cDrmPlane::GetSrcY |
( |
void |
| ) |
|
|
inline |
◆ GetType()
| uint64_t cDrmPlane::GetType |
( |
void |
| ) |
|
|
inline |
◆ GetZpos()
| uint64_t cDrmPlane::GetZpos |
( |
void |
| ) |
|
|
inline |
◆ HasZpos()
| int cDrmPlane::HasZpos |
( |
int |
fdDrm | ) |
|
◆ SetId()
| void cDrmPlane::SetId |
( |
uint32_t |
id | ) |
|
|
inline |
◆ SetParams()
| 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
- Parameters
-
| 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 98 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().
◆ SetPlane()
| void cDrmPlane::SetPlane |
( |
drmModeAtomicReqPtr |
ModeReq | ) |
|
Set all other plane properties.
- Parameters
-
| ModeReq | pointer to the atomic mode request |
Definition at line 156 of file drmplane.cpp.
References GetCrtcH(), GetCrtcId(), GetCrtcW(), GetCrtcX(), GetCrtcY(), GetFbId(), GetSrcH(), GetSrcW(), GetSrcX(), GetSrcY(), and SetPropertyRequest().
Referenced by cVideoRender::CommitBuffer(), and cVideoRender::Init().
◆ SetPlaneZpos()
| void cDrmPlane::SetPlaneZpos |
( |
drmModeAtomicReqPtr |
ModeReq | ) |
|
◆ SetPropertyRequest()
| int cDrmPlane::SetPropertyRequest |
( |
drmModeAtomicReqPtr |
ModeReq, |
|
|
const char * |
propName, |
|
|
uint64_t |
value |
|
) |
| |
|
private |
◆ SetProps()
| void cDrmPlane::SetProps |
( |
drmModeObjectProperties * |
props | ) |
|
|
inline |
◆ SetType()
| void cDrmPlane::SetType |
( |
uint64_t |
type | ) |
|
|
inline |
◆ SetZpos()
| void cDrmPlane::SetZpos |
( |
uint64_t |
zpos | ) |
|
|
inline |
◆ m_crtcH
| uint64_t cDrmPlane::m_crtcH |
|
private |
◆ m_crtcId
| uint64_t cDrmPlane::m_crtcId |
|
private |
◆ m_crtcW
| uint64_t cDrmPlane::m_crtcW |
|
private |
◆ m_crtcX
| uint64_t cDrmPlane::m_crtcX |
|
private |
◆ m_crtcY
| uint64_t cDrmPlane::m_crtcY |
|
private |
◆ m_fbId
| uint64_t cDrmPlane::m_fbId |
|
private |
◆ m_planeId
| uint32_t cDrmPlane::m_planeId = 0 |
|
private |
◆ m_props
| drmModeObjectProperties* cDrmPlane::m_props = nullptr |
|
private |
◆ m_propsInfo
| drmModePropertyRes** cDrmPlane::m_propsInfo |
|
private |
◆ m_srcH
| uint64_t cDrmPlane::m_srcH |
|
private |
◆ m_srcW
| uint64_t cDrmPlane::m_srcW |
|
private |
◆ m_srcX
| uint64_t cDrmPlane::m_srcX |
|
private |
◆ m_srcY
| uint64_t cDrmPlane::m_srcY |
|
private |
◆ m_type
| uint64_t cDrmPlane::m_type = 0 |
|
private |
◆ m_zpos
| uint64_t cDrmPlane::m_zpos = 0 |
|
private |
The documentation for this class was generated from the following files: