Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::WINDOWING::GBM::CDRMUtils Class Reference

#include <DRMUtils.h>

Inheritance diagram for KODI::WINDOWING::GBM::CDRMUtils:
KODI::WINDOWING::GBM::CDRMAtomic KODI::WINDOWING::GBM::CDRMLegacy KODI::WINDOWING::GBM::COffScreenModeSetting

Public Member Functions

 CDRMUtils ()=default
 
virtual ~CDRMUtils ()
 
virtual void FlipPage (struct gbm_bo *bo, bool rendered, bool videoLayer, bool async)
 
virtual bool SetVideoMode (const RESOLUTION_INFO &res, struct gbm_bo *bo)
 
virtual bool SetActive (bool active)
 
virtual bool InitDrm ()
 
virtual void DestroyDrm ()
 
int GetFileDescriptor () const
 
int GetRenderNodeFileDescriptor () const
 
const char * GetRenderDevicePath () const
 
CDRMPlaneGetVideoPlane () const
 
CDRMPlaneGetGuiPlane () const
 
CDRMCrtcGetCrtc () const
 
CDRMConnectorGetConnector () const
 
std::vector< std::string > GetConnectedConnectorNames ()
 
virtual RESOLUTION_INFO GetCurrentMode ()
 
virtual std::vector< RESOLUTION_INFOGetModes ()
 
virtual bool SetMode (const RESOLUTION_INFO &res)
 
void SetInFenceFd (int fd)
 
int TakeOutFenceFd ()
 

Static Public Member Functions

static uint32_t FourCCWithAlpha (uint32_t fourcc)
 
static uint32_t FourCCWithoutAlpha (uint32_t fourcc)
 

Protected Member Functions

bool OpenDrm (bool needConnector)
 
drm_fbDrmFbGetFromBo (struct gbm_bo *bo)
 

Protected Attributes

int m_fd
 
CDRMConnectorm_connector {nullptr}
 
CDRMEncoderm_encoder {nullptr}
 
CDRMCrtcm_crtc {nullptr}
 
CDRMCrtcm_orig_crtc {nullptr}
 
CDRMPlanem_video_plane {nullptr}
 
CDRMPlanem_gui_plane {nullptr}
 
drmModeModeInfo * m_mode = nullptr
 
int m_width = 0
 
int m_height = 0
 
int m_inFenceFd {-1}
 
int m_outFenceFd {-1}
 
std::vector< std::unique_ptr< CDRMPlane > > m_planes
 

Constructor & Destructor Documentation

◆ CDRMUtils()

KODI::WINDOWING::GBM::CDRMUtils::CDRMUtils ( )
default

◆ ~CDRMUtils()

CDRMUtils::~CDRMUtils ( )
virtual

Member Function Documentation

◆ DestroyDrm()

void CDRMUtils::DestroyDrm ( )
virtual

◆ DrmFbGetFromBo()

drm_fb * CDRMUtils::DrmFbGetFromBo ( struct gbm_bo * bo)
protected

◆ FlipPage()

virtual void KODI::WINDOWING::GBM::CDRMUtils::FlipPage ( struct gbm_bo * bo,
bool rendered,
bool videoLayer,
bool async )
inlinevirtual

◆ FourCCWithAlpha()

uint32_t CDRMUtils::FourCCWithAlpha ( uint32_t fourcc)
static

◆ FourCCWithoutAlpha()

uint32_t CDRMUtils::FourCCWithoutAlpha ( uint32_t fourcc)
static

◆ GetConnectedConnectorNames()

std::vector< std::string > CDRMUtils::GetConnectedConnectorNames ( )

◆ GetConnector()

CDRMConnector * KODI::WINDOWING::GBM::CDRMUtils::GetConnector ( ) const
inline

◆ GetCrtc()

CDRMCrtc * KODI::WINDOWING::GBM::CDRMUtils::GetCrtc ( ) const
inline

◆ GetCurrentMode()

RESOLUTION_INFO CDRMUtils::GetCurrentMode ( )
virtual

◆ GetFileDescriptor()

int KODI::WINDOWING::GBM::CDRMUtils::GetFileDescriptor ( ) const
inline

◆ GetGuiPlane()

CDRMPlane * KODI::WINDOWING::GBM::CDRMUtils::GetGuiPlane ( ) const
inline

◆ GetModes()

std::vector< RESOLUTION_INFO > CDRMUtils::GetModes ( )
virtual

◆ GetRenderDevicePath()

const char * KODI::WINDOWING::GBM::CDRMUtils::GetRenderDevicePath ( ) const
inline

◆ GetRenderNodeFileDescriptor()

int KODI::WINDOWING::GBM::CDRMUtils::GetRenderNodeFileDescriptor ( ) const
inline

◆ GetVideoPlane()

CDRMPlane * KODI::WINDOWING::GBM::CDRMUtils::GetVideoPlane ( ) const
inline

◆ InitDrm()

◆ OpenDrm()

bool CDRMUtils::OpenDrm ( bool needConnector)
protected

◆ SetActive()

virtual bool KODI::WINDOWING::GBM::CDRMUtils::SetActive ( bool active)
inlinevirtual

◆ SetInFenceFd()

void KODI::WINDOWING::GBM::CDRMUtils::SetInFenceFd ( int fd)
inline

◆ SetMode()

bool CDRMUtils::SetMode ( const RESOLUTION_INFO & res)
virtual

◆ SetVideoMode()

virtual bool KODI::WINDOWING::GBM::CDRMUtils::SetVideoMode ( const RESOLUTION_INFO & res,
struct gbm_bo * bo )
inlinevirtual

◆ TakeOutFenceFd()

int KODI::WINDOWING::GBM::CDRMUtils::TakeOutFenceFd ( )
inline

Member Data Documentation

◆ m_connector

CDRMConnector* KODI::WINDOWING::GBM::CDRMUtils::m_connector {nullptr}
protected

◆ m_crtc

CDRMCrtc* KODI::WINDOWING::GBM::CDRMUtils::m_crtc {nullptr}
protected

◆ m_encoder

CDRMEncoder* KODI::WINDOWING::GBM::CDRMUtils::m_encoder {nullptr}
protected

◆ m_fd

int KODI::WINDOWING::GBM::CDRMUtils::m_fd
protected

◆ m_gui_plane

CDRMPlane* KODI::WINDOWING::GBM::CDRMUtils::m_gui_plane {nullptr}
protected

◆ m_height

int KODI::WINDOWING::GBM::CDRMUtils::m_height = 0
protected

◆ m_inFenceFd

int KODI::WINDOWING::GBM::CDRMUtils::m_inFenceFd {-1}
protected

◆ m_mode

drmModeModeInfo* KODI::WINDOWING::GBM::CDRMUtils::m_mode = nullptr
protected

◆ m_orig_crtc

CDRMCrtc* KODI::WINDOWING::GBM::CDRMUtils::m_orig_crtc {nullptr}
protected

◆ m_outFenceFd

int KODI::WINDOWING::GBM::CDRMUtils::m_outFenceFd {-1}
protected

◆ m_planes

std::vector<std::unique_ptr<CDRMPlane> > KODI::WINDOWING::GBM::CDRMUtils::m_planes
protected

◆ m_video_plane

CDRMPlane* KODI::WINDOWING::GBM::CDRMUtils::m_video_plane {nullptr}
protected

◆ m_width

int KODI::WINDOWING::GBM::CDRMUtils::m_width = 0
protected

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