11 #include "cores/RetroPlayer/RetroPlayerTypes.h" 15 #include <libavutil/pixfmt.h> 25 class CRenderBufferManager;
26 class CRenderVideoSettings;
27 class CRPBaseRenderer;
37 virtual bool HasVisibleRenderer()
const = 0;
39 virtual bool Configure(AVPixelFormat format) = 0;
41 virtual bool IsConfigured()
const = 0;
62 virtual void Prime(
unsigned int width,
unsigned int height) = 0;
64 virtual void Flush() = 0;
66 virtual DataAccess GetMemoryAccess()
const {
return DataAccess::READ_WRITE; }
67 virtual DataAlignment GetMemoryAlignment()
const {
return DataAlignment::DATA_UNALIGNED; }
72 virtual std::shared_ptr<IRenderBufferPool>
GetPtr() {
return shared_from_this(); }
virtual void Return(IRenderBuffer *buffer)=0
Called by buffer when ref count goes to zero.
Definition: IRenderBuffer.h:27
Definition: AudioDecoder.h:18
Definition: IRenderBufferPool.h:30
virtual IRenderBuffer * GetBuffer(unsigned int width, unsigned int height)=0
Get a free buffer from the pool, sets ref count to 1.
Video settings provided by the rendering system.
Definition: RenderVideoSettings.h:22
Definition: RPBaseRenderer.h:37
virtual std::shared_ptr< IRenderBufferPool > GetPtr()
Call in GetBuffer() before returning buffer to caller.
Definition: IRenderBufferPool.h:72