Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <GameClientStreamSwFramebuffer.h>
Public Member Functions | |
CGameClientStreamSwFramebuffer ()=default | |
~CGameClientStreamSwFramebuffer () override=default | |
bool | GetBuffer (unsigned int width, unsigned int height, game_stream_buffer &buffer) override |
Get a buffer for zero-copy stream data. | |
Public Member Functions inherited from KODI::GAME::CGameClientStreamVideo | |
CGameClientStreamVideo ()=default | |
~CGameClientStreamVideo () override | |
bool | OpenStream (RETRO::IRetroPlayerStream *stream, const game_stream_properties &properties) override |
Open the stream. | |
void | CloseStream () override |
Release the RetroPlayer stream resource. | |
void | AddData (const game_stream_packet &packet) override |
Add a data packet to a stream. | |
Public Member Functions inherited from KODI::GAME::IGameClientStream | |
virtual | ~IGameClientStream ()=default |
virtual void | ReleaseBuffer (game_stream_buffer &buffer) |
Free an allocated buffer. | |
Additional Inherited Members | |
Protected Attributes inherited from KODI::GAME::CGameClientStreamVideo | |
RETRO::IRetroPlayerStream * | m_stream = nullptr |
|
default |
|
overridedefault |
|
overridevirtual |
Get a buffer for zero-copy stream data.
width | The framebuffer width, or 0 for no width specified | |
height | The framebuffer height, or 0 for no height specified | |
[out] | buffer | The buffer, or unmodified if false is returned |
If this returns true, buffer must be freed using ReleaseBuffer().
Reimplemented from KODI::GAME::IGameClientStream.