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

#include <DRMObject.h>

Inheritance diagram for KODI::WINDOWING::GBM::CDRMObject:
KODI::WINDOWING::GBM::CDRMConnector KODI::WINDOWING::GBM::CDRMCrtc KODI::WINDOWING::GBM::CDRMEncoder KODI::WINDOWING::GBM::CDRMPlane

Classes

struct  DrmModeObjectPropertiesDeleter
 
struct  DrmModePropertyResDeleter
 

Public Member Functions

 CDRMObject (const CDRMObject &)=delete
 
CDRMObjectoperator= (const CDRMObject &)=delete
 
virtual ~CDRMObject ()=default
 
std::string GetTypeName () const
 
std::string GetPropertyName (uint32_t propertyId) const
 
uint32_t GetId () const
 
uint32_t GetPropertyId (const std::string &name) const
 
std::optional< uint64_t > GetPropertyValue (std::string_view name, std::string_view valueName) const
 
bool SetProperty (const std::string &name, uint64_t value)
 
bool SupportsProperty (const std::string &name)
 

Protected Member Functions

 CDRMObject (int fd)
 
bool GetProperties (uint32_t id, uint32_t type)
 

Protected Attributes

std::unique_ptr< drmModeObjectProperties, DrmModeObjectPropertiesDeleterm_props
 
std::vector< std::unique_ptr< drmModePropertyRes, DrmModePropertyResDeleter > > m_propsInfo
 
int m_fd {-1}
 

Constructor & Destructor Documentation

◆ CDRMObject() [1/2]

KODI::WINDOWING::GBM::CDRMObject::CDRMObject ( const CDRMObject & )
delete

◆ ~CDRMObject()

virtual KODI::WINDOWING::GBM::CDRMObject::~CDRMObject ( )
virtualdefault

◆ CDRMObject() [2/2]

CDRMObject::CDRMObject ( int fd)
explicitprotected

Member Function Documentation

◆ GetId()

uint32_t KODI::WINDOWING::GBM::CDRMObject::GetId ( ) const
inline

◆ GetProperties()

bool CDRMObject::GetProperties ( uint32_t id,
uint32_t type )
protected

◆ GetPropertyId()

uint32_t CDRMObject::GetPropertyId ( const std::string & name) const

◆ GetPropertyName()

std::string CDRMObject::GetPropertyName ( uint32_t propertyId) const

◆ GetPropertyValue()

std::optional< uint64_t > CDRMObject::GetPropertyValue ( std::string_view name,
std::string_view valueName ) const

◆ GetTypeName()

std::string CDRMObject::GetTypeName ( ) const

◆ operator=()

CDRMObject & KODI::WINDOWING::GBM::CDRMObject::operator= ( const CDRMObject & )
delete

◆ SetProperty()

bool CDRMObject::SetProperty ( const std::string & name,
uint64_t value )

◆ SupportsProperty()

bool CDRMObject::SupportsProperty ( const std::string & name)

Member Data Documentation

◆ m_fd

int KODI::WINDOWING::GBM::CDRMObject::m_fd {-1}
protected

◆ m_props

std::unique_ptr<drmModeObjectProperties, DrmModeObjectPropertiesDeleter> KODI::WINDOWING::GBM::CDRMObject::m_props
protected

◆ m_propsInfo

std::vector<std::unique_ptr<drmModePropertyRes, DrmModePropertyResDeleter> > KODI::WINDOWING::GBM::CDRMObject::m_propsInfo
protected

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