![]() |
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Special IRenderBufferPool implementation that converts AVPixelFormat to DRM_FORMAT_* for use with CRenderBufferDMA. More...
#include <RenderBufferPoolDMA.h>
Public Member Functions | |
CRenderBufferPoolDMA (CRenderContext &context) | |
~CRenderBufferPoolDMA () override=default | |
bool | IsCompatible (const CRenderVideoSettings &renderSettings) const override |
![]() | |
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 |
IRenderBuffer * | GetBuffer (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 |
![]() | |
virtual | ~IRenderBufferPool ()=default |
virtual DataAccess | GetMemoryAccess () const |
virtual DataAlignment | GetMemoryAlignment () const |
virtual std::shared_ptr< IRenderBufferPool > | GetPtr () |
Call in GetBuffer() before returning buffer to caller. | |
Protected Member Functions | |
IRenderBuffer * | CreateRenderBuffer (void *header=nullptr) override |
bool | ConfigureInternal () override |
![]() | |
virtual void * | GetHeader (unsigned int timeoutMs=0) |
virtual bool | GetHeaderWithTimeout (void *&header) |
virtual bool | SendBuffer (IRenderBuffer *buffer) |
Protected Attributes | |
CRenderContext & | m_context |
int | m_fourcc = 0 |
![]() | |
bool | m_bConfigured = false |
AVPixelFormat | m_format = AV_PIX_FMT_NONE |
Special IRenderBufferPool implementation that converts AVPixelFormat to DRM_FORMAT_* for use with CRenderBufferDMA.
CRenderBufferPoolDMA::CRenderBufferPoolDMA | ( | CRenderContext & | context | ) |
|
overridedefault |
|
overrideprotectedvirtual |
Reimplemented from KODI::RETRO::CBaseRenderBufferPool.
|
overrideprotectedvirtual |
Implements KODI::RETRO::CBaseRenderBufferPool.
|
overridevirtual |
Implements KODI::RETRO::IRenderBufferPool.
|
protected |
|
protected |