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

Special IRenderBufferPool implementation that converts AVPixelFormat to DRM_FORMAT_* for use with CRenderBufferDMA. More...

#include <RenderBufferPoolDMA.h>

Inheritance diagram for KODI::RETRO::CRenderBufferPoolDMA:
KODI::RETRO::CBaseRenderBufferPool KODI::RETRO::IRenderBufferPool

Public Member Functions

 CRenderBufferPoolDMA (CRenderContext &context)
 
 ~CRenderBufferPoolDMA () override=default
 
bool IsCompatible (const CRenderVideoSettings &renderSettings) const override
 
- Public Member Functions inherited from KODI::RETRO::CBaseRenderBufferPool
 CBaseRenderBufferPool ()=default
 
 ~CBaseRenderBufferPool () override
 
void RegisterRenderer (CRPBaseRenderer *renderer) override
 
void UnregisterRenderer (CRPBaseRenderer *renderer) override
 
bool HasVisibleRenderer () const override
 
bool Configure (AVPixelFormat format) override
 
bool IsConfigured () const override
 
IRenderBufferGetBuffer (unsigned int width, unsigned int height) override
 Get a free buffer from the pool, sets ref count to 1.
 
void Return (IRenderBuffer *buffer) override
 Called by buffer when ref count goes to zero.
 
void Prime (unsigned int width, unsigned int height) override
 
void Flush () override
 
AVPixelFormat Format () const
 
- Public Member Functions inherited from KODI::RETRO::IRenderBufferPool
virtual ~IRenderBufferPool ()=default
 
virtual DataAccess GetMemoryAccess () const
 
virtual DataAlignment GetMemoryAlignment () const
 
virtual std::shared_ptr< IRenderBufferPoolGetPtr ()
 Call in GetBuffer() before returning buffer to caller.
 

Protected Member Functions

IRenderBufferCreateRenderBuffer (void *header=nullptr) override
 
bool ConfigureInternal () override
 
- Protected Member Functions inherited from KODI::RETRO::CBaseRenderBufferPool
virtual voidGetHeader (unsigned int timeoutMs=0)
 
virtual bool GetHeaderWithTimeout (void *&header)
 
virtual bool SendBuffer (IRenderBuffer *buffer)
 

Protected Attributes

CRenderContextm_context
 
int m_fourcc = 0
 
- Protected Attributes inherited from KODI::RETRO::CBaseRenderBufferPool
bool m_bConfigured = false
 
AVPixelFormat m_format = AV_PIX_FMT_NONE
 

Detailed Description

Special IRenderBufferPool implementation that converts AVPixelFormat to DRM_FORMAT_* for use with CRenderBufferDMA.

Constructor & Destructor Documentation

◆ CRenderBufferPoolDMA()

CRenderBufferPoolDMA::CRenderBufferPoolDMA ( CRenderContext & context)

◆ ~CRenderBufferPoolDMA()

KODI::RETRO::CRenderBufferPoolDMA::~CRenderBufferPoolDMA ( )
overridedefault

Member Function Documentation

◆ ConfigureInternal()

bool CRenderBufferPoolDMA::ConfigureInternal ( )
overrideprotectedvirtual

◆ CreateRenderBuffer()

IRenderBuffer * CRenderBufferPoolDMA::CreateRenderBuffer ( void * header = nullptr)
overrideprotectedvirtual

◆ IsCompatible()

bool CRenderBufferPoolDMA::IsCompatible ( const CRenderVideoSettings & renderSettings) const
overridevirtual

Member Data Documentation

◆ m_context

CRenderContext& KODI::RETRO::CRenderBufferPoolDMA::m_context
protected

◆ m_fourcc

int KODI::RETRO::CRenderBufferPoolDMA::m_fourcc = 0
protected

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