MythTV  master
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | List of all members
MythDRMPlane Class Reference

A wrapper around a DRM plane object. More...

#include <libmythui/platforms/drm/mythdrmplane.h>

Collaboration diagram for MythDRMPlane:
[legend]

Public Member Functions

QString Description () const
 

Static Public Member Functions

static DRMPlane Create (int FD, uint32_t Id, uint32_t Index)
 
static DRMPlanes GetPlanes (int FD, int CRTCFilter=-1)
 
static QString PlaneTypeToString (uint64_t Type)
 
static DRMPlanes FilterPrimaryPlanes (const DRMPlanes &Planes)
 
static DRMPlanes FilterOverlayPlanes (const DRMPlanes &Planes)
 
static QString FormatToString (uint32_t Format)
 
static QString FormatsToString (const FOURCCVec &Formats)
 
static bool FormatIsVideo (uint32_t Format)
 
static bool HasOverlayFormat (const FOURCCVec &Formats)
 Enusure list of supplied formats contains a format that is suitable for OpenGL/Vulkan. More...
 
static uint32_t GetAlphaFormat (const FOURCCVec &Formats)
 

Public Attributes

uint32_t m_id { 0 }
 
uint32_t m_index { 0 }
 
uint64_t m_type { DRM_PLANE_TYPE_PRIMARY }
 
uint32_t m_possibleCrtcs { 0 }
 
uint32_t m_fbId { 0 }
 
uint32_t m_crtcId { 0 }
 
DRMProps m_properties
 
DRMProp m_fbIdProp { nullptr }
 
DRMProp m_crtcIdProp { nullptr }
 
DRMProp m_srcXProp { nullptr }
 
DRMProp m_srcYProp { nullptr }
 
DRMProp m_srcWProp { nullptr }
 
DRMProp m_srcHProp { nullptr }
 
DRMProp m_crtcXProp { nullptr }
 
DRMProp m_crtcYProp { nullptr }
 
DRMProp m_crtcWProp { nullptr }
 
DRMProp m_crtcHProp { nullptr }
 
FOURCCVec m_formats
 
FOURCCVec m_videoFormats
 

Protected Member Functions

 MythDRMPlane (int FD, uint32_t Id, uint32_t Index)
 

Detailed Description

A wrapper around a DRM plane object.

The full list of available planes can be retrieved with GetPlanes.

Definition at line 53 of file mythdrmplane.h.

Constructor & Destructor Documentation

◆ MythDRMPlane()

MythDRMPlane::MythDRMPlane ( int  FD,
uint32_t  Id,
uint32_t  Index 
)
protected

Definition at line 29 of file mythdrmplane.cpp.

Referenced by Create().

Member Function Documentation

◆ Create()

DRMPlane MythDRMPlane::Create ( int  FD,
uint32_t  Id,
uint32_t  Index 
)
static

Definition at line 20 of file mythdrmplane.cpp.

Referenced by GetPlanes().

◆ GetPlanes()

DRMPlanes MythDRMPlane::GetPlanes ( int  FD,
int  CRTCFilter = -1 
)
static

Definition at line 80 of file mythdrmplane.cpp.

◆ PlaneTypeToString()

QString MythDRMPlane::PlaneTypeToString ( uint64_t  Type)
static

Definition at line 12 of file mythdrmplane.cpp.

Referenced by Description().

◆ FilterPrimaryPlanes()

DRMPlanes MythDRMPlane::FilterPrimaryPlanes ( const DRMPlanes Planes)
static

Definition at line 104 of file mythdrmplane.cpp.

◆ FilterOverlayPlanes()

DRMPlanes MythDRMPlane::FilterOverlayPlanes ( const DRMPlanes Planes)
static

Definition at line 114 of file mythdrmplane.cpp.

◆ FormatToString()

QString MythDRMPlane::FormatToString ( uint32_t  Format)
static

Definition at line 124 of file mythdrmplane.cpp.

Referenced by MythDRMFramebuffer::Description(), and FormatsToString().

◆ FormatsToString()

QString MythDRMPlane::FormatsToString ( const FOURCCVec Formats)
static

Definition at line 151 of file mythdrmplane.cpp.

Referenced by Description().

◆ FormatIsVideo()

bool MythDRMPlane::FormatIsVideo ( uint32_t  Format)
static

Definition at line 159 of file mythdrmplane.cpp.

Referenced by MythDRMPlane().

◆ HasOverlayFormat()

bool MythDRMPlane::HasOverlayFormat ( const FOURCCVec Formats)
static

Enusure list of supplied formats contains a format that is suitable for OpenGL/Vulkan.

Definition at line 181 of file mythdrmplane.cpp.

Referenced by FilterOverlayPlanes().

◆ GetAlphaFormat()

uint32_t MythDRMPlane::GetAlphaFormat ( const FOURCCVec Formats)
static

Definition at line 199 of file mythdrmplane.cpp.

◆ Description()

QString MythDRMPlane::Description ( ) const

Definition at line 73 of file mythdrmplane.cpp.

Member Data Documentation

◆ m_id

uint32_t MythDRMPlane::m_id { 0 }

Definition at line 69 of file mythdrmplane.h.

Referenced by Description(), and MythDRMPlane().

◆ m_index

uint32_t MythDRMPlane::m_index { 0 }

Definition at line 70 of file mythdrmplane.h.

Referenced by Description(), and MythDRMPlane().

◆ m_type

uint64_t MythDRMPlane::m_type { DRM_PLANE_TYPE_PRIMARY }

Definition at line 71 of file mythdrmplane.h.

Referenced by Description(), and MythDRMPlane().

◆ m_possibleCrtcs

uint32_t MythDRMPlane::m_possibleCrtcs { 0 }

Definition at line 72 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_fbId

uint32_t MythDRMPlane::m_fbId { 0 }

Definition at line 73 of file mythdrmplane.h.

Referenced by Description(), and MythDRMPlane().

◆ m_crtcId

uint32_t MythDRMPlane::m_crtcId { 0 }

Definition at line 74 of file mythdrmplane.h.

Referenced by Description(), and MythDRMPlane().

◆ m_properties

DRMProps MythDRMPlane::m_properties

Definition at line 75 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_fbIdProp

DRMProp MythDRMPlane::m_fbIdProp { nullptr }

Definition at line 77 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_crtcIdProp

DRMProp MythDRMPlane::m_crtcIdProp { nullptr }

Definition at line 78 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_srcXProp

DRMProp MythDRMPlane::m_srcXProp { nullptr }

Definition at line 79 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_srcYProp

DRMProp MythDRMPlane::m_srcYProp { nullptr }

Definition at line 80 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_srcWProp

DRMProp MythDRMPlane::m_srcWProp { nullptr }

Definition at line 81 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_srcHProp

DRMProp MythDRMPlane::m_srcHProp { nullptr }

Definition at line 82 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_crtcXProp

DRMProp MythDRMPlane::m_crtcXProp { nullptr }

Definition at line 83 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_crtcYProp

DRMProp MythDRMPlane::m_crtcYProp { nullptr }

Definition at line 84 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_crtcWProp

DRMProp MythDRMPlane::m_crtcWProp { nullptr }

Definition at line 85 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_crtcHProp

DRMProp MythDRMPlane::m_crtcHProp { nullptr }

Definition at line 86 of file mythdrmplane.h.

Referenced by MythDRMPlane().

◆ m_formats

FOURCCVec MythDRMPlane::m_formats

Definition at line 88 of file mythdrmplane.h.

Referenced by Description(), and MythDRMPlane().

◆ m_videoFormats

FOURCCVec MythDRMPlane::m_videoFormats

Definition at line 89 of file mythdrmplane.h.

Referenced by MythDRMPlane().


The documentation for this class was generated from the following files: