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

#include <BaseRenderBuffer.h>

Inheritance diagram for KODI::RETRO::CBaseRenderBuffer:
KODI::RETRO::IRenderBuffer KODI::RETRO::CRenderBufferDMA KODI::RETRO::CRenderBufferGuiTexture KODI::RETRO::CRenderBufferSysMem KODI::RETRO::CRenderBufferOpenGL KODI::RETRO::CRenderBufferOpenGLES KODI::RETRO::CWinRenderBuffer

Public Member Functions

 CBaseRenderBuffer ()
 
 ~CBaseRenderBuffer () override=default
 
void Acquire () override
 
void Acquire (std::shared_ptr< IRenderBufferPool > pool) override
 
void Release () override
 
IRenderBufferPoolGetPool () override
 
DataAccess GetMemoryAccess () const override
 
DataAlignment GetMemoryAlignment () const override
 
- Public Member Functions inherited from KODI::RETRO::IRenderBuffer
virtual ~IRenderBuffer ()=default
 
virtual bool Allocate (AVPixelFormat format, unsigned int width, unsigned int height)=0
 
virtual void Update ()
 
virtual size_t GetFrameSize () const =0
 
virtual uint8_tGetMemory ()=0
 
virtual void ReleaseMemory ()
 
virtual bool UploadTexture ()=0
 
virtual void BindToUnit (unsigned int unit)
 
virtual void SetHeader (void *header)
 
AVPixelFormat GetFormat () const
 
unsigned int GetWidth () const
 
unsigned int GetHeight () const
 
bool IsLoaded () const
 
void SetLoaded (bool bLoaded)
 
bool IsRendered () const
 
void SetRendered (bool bRendered)
 
unsigned int GetRotation () const
 
void SetRotation (unsigned int rotationDegCCW)
 

Protected Attributes

std::atomic_int m_refCount
 
std::shared_ptr< IRenderBufferPoolm_pool
 
- Protected Attributes inherited from KODI::RETRO::IRenderBuffer
AVPixelFormat m_format = AV_PIX_FMT_NONE
 
unsigned int m_width = 0
 
unsigned int m_height = 0
 
bool m_bLoaded = false
 
bool m_bRendered = false
 
unsigned int m_rotationDegCCW = 0
 

Constructor & Destructor Documentation

◆ CBaseRenderBuffer()

CBaseRenderBuffer::CBaseRenderBuffer ( )

◆ ~CBaseRenderBuffer()

KODI::RETRO::CBaseRenderBuffer::~CBaseRenderBuffer ( )
overridedefault

Member Function Documentation

◆ Acquire() [1/2]

void CBaseRenderBuffer::Acquire ( )
overridevirtual

◆ Acquire() [2/2]

void CBaseRenderBuffer::Acquire ( std::shared_ptr< IRenderBufferPool > pool)
overridevirtual

◆ GetMemoryAccess()

DataAccess CBaseRenderBuffer::GetMemoryAccess ( ) const
overridevirtual

◆ GetMemoryAlignment()

DataAlignment CBaseRenderBuffer::GetMemoryAlignment ( ) const
overridevirtual

◆ GetPool()

IRenderBufferPool * KODI::RETRO::CBaseRenderBuffer::GetPool ( )
inlineoverridevirtual

◆ Release()

void CBaseRenderBuffer::Release ( )
overridevirtual

Member Data Documentation

◆ m_pool

std::shared_ptr<IRenderBufferPool> KODI::RETRO::CBaseRenderBuffer::m_pool
protected

◆ m_refCount

std::atomic_int KODI::RETRO::CBaseRenderBuffer::m_refCount
protected

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