Kodi Documentation  18.0
Kodi is an open source media player and entertainment hub.
CGBMUtils Class Reference

#include <GBMUtils.h>

Public Member Functions

 CGBMUtils ()=default
 
 ~CGBMUtils ()=default
 
bool CreateDevice (int fd)
 
void DestroyDevice ()
 
bool CreateSurface (int width, int height, const uint64_t *modifiers, const int modifiers_count)
 
void DestroySurface ()
 
struct gbm_bo * LockFrontBuffer ()
 
void ReleaseBuffer ()
 
struct gbm_device * GetDevice () const
 
struct gbm_surface * GetSurface () const
 

Protected Attributes

struct gbm_device * m_device = nullptr
 
struct gbm_surface * m_surface = nullptr
 
struct gbm_bo * m_bo = nullptr
 
struct gbm_bo * m_next_bo = nullptr
 

Constructor & Destructor Documentation

§ CGBMUtils()

CGBMUtils::CGBMUtils ( )
default

§ ~CGBMUtils()

CGBMUtils::~CGBMUtils ( )
default

Member Function Documentation

§ CreateDevice()

bool CGBMUtils::CreateDevice ( int  fd)

§ CreateSurface()

bool CGBMUtils::CreateSurface ( int  width,
int  height,
const uint64_t *  modifiers,
const int  modifiers_count 
)

§ DestroyDevice()

void CGBMUtils::DestroyDevice ( )

§ DestroySurface()

void CGBMUtils::DestroySurface ( )

§ GetDevice()

struct gbm_device* CGBMUtils::GetDevice ( ) const
inline

§ GetSurface()

struct gbm_surface* CGBMUtils::GetSurface ( ) const
inline

§ LockFrontBuffer()

struct gbm_bo * CGBMUtils::LockFrontBuffer ( )

§ ReleaseBuffer()

void CGBMUtils::ReleaseBuffer ( )

Member Data Documentation

§ m_bo

struct gbm_bo* CGBMUtils::m_bo = nullptr
protected

§ m_device

struct gbm_device* CGBMUtils::m_device = nullptr
protected

§ m_next_bo

struct gbm_bo* CGBMUtils::m_next_bo = nullptr
protected

§ m_surface

struct gbm_surface* CGBMUtils::m_surface = nullptr
protected

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