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

#include <RenderBufferGuiTexture.h>

Inheritance diagram for KODI::RETRO::CRenderBufferGuiTexture:
KODI::RETRO::CBaseRenderBuffer KODI::RETRO::IRenderBuffer

Public Member Functions

 CRenderBufferGuiTexture (SCALINGMETHOD scalingMethod)
 
 ~CRenderBufferGuiTexture () override=default
 
bool Allocate (AVPixelFormat format, unsigned int width, unsigned int height) override
 
size_t GetFrameSize () const override
 
uint8_tGetMemory () override
 
bool UploadTexture () override
 
void BindToUnit (unsigned int unit) override
 
CTextureGetTexture ()
 
- Public Member Functions inherited from KODI::RETRO::CBaseRenderBuffer
 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 void Update ()
 
virtual void ReleaseMemory ()
 
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 Member Functions

AVPixelFormat TranslateFormat (XB_FMT textureFormat)
 
TEXTURE_SCALING TranslateScalingMethod (SCALINGMETHOD scalingMethod)
 

Protected Attributes

SCALINGMETHOD m_scalingMethod
 
XB_FMT m_textureFormat = XB_FMT_UNKNOWN
 
std::unique_ptr< CTexturem_texture
 
- Protected Attributes inherited from KODI::RETRO::CBaseRenderBuffer
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

◆ CRenderBufferGuiTexture()

CRenderBufferGuiTexture::CRenderBufferGuiTexture ( SCALINGMETHOD scalingMethod)

◆ ~CRenderBufferGuiTexture()

KODI::RETRO::CRenderBufferGuiTexture::~CRenderBufferGuiTexture ( )
overridedefault

Member Function Documentation

◆ Allocate()

bool CRenderBufferGuiTexture::Allocate ( AVPixelFormat format,
unsigned int width,
unsigned int height )
overridevirtual

◆ BindToUnit()

void CRenderBufferGuiTexture::BindToUnit ( unsigned int unit)
overridevirtual

Reimplemented from KODI::RETRO::IRenderBuffer.

◆ GetFrameSize()

size_t CRenderBufferGuiTexture::GetFrameSize ( ) const
overridevirtual
Todo
Remove me

Implements KODI::RETRO::IRenderBuffer.

◆ GetMemory()

uint8_t * CRenderBufferGuiTexture::GetMemory ( )
overridevirtual

◆ GetTexture()

CTexture * KODI::RETRO::CRenderBufferGuiTexture::GetTexture ( )
inline

◆ TranslateFormat()

AVPixelFormat CRenderBufferGuiTexture::TranslateFormat ( XB_FMT textureFormat)
protected

◆ TranslateScalingMethod()

TEXTURE_SCALING CRenderBufferGuiTexture::TranslateScalingMethod ( SCALINGMETHOD scalingMethod)
protected

◆ UploadTexture()

bool CRenderBufferGuiTexture::UploadTexture ( )
overridevirtual

Member Data Documentation

◆ m_scalingMethod

SCALINGMETHOD KODI::RETRO::CRenderBufferGuiTexture::m_scalingMethod
protected

◆ m_texture

std::unique_ptr<CTexture> KODI::RETRO::CRenderBufferGuiTexture::m_texture
protected

◆ m_textureFormat

XB_FMT KODI::RETRO::CRenderBufferGuiTexture::m_textureFormat = XB_FMT_UNKNOWN
protected

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