Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <IGameClientStream.h>
Public Member Functions | |
virtual | ~IGameClientStream ()=default |
virtual bool | OpenStream (RETRO::IRetroPlayerStream *stream, const game_stream_properties &properties)=0 |
Open the stream. | |
virtual void | CloseStream ()=0 |
Release the RetroPlayer stream resource. | |
virtual bool | GetBuffer (unsigned int width, unsigned int height, game_stream_buffer &buffer) |
Get a buffer for zero-copy stream data. | |
virtual void | ReleaseBuffer (game_stream_buffer &buffer) |
Free an allocated buffer. | |
virtual void | AddData (const game_stream_packet &packet)=0 |
Add a data packet to a stream. | |
|
virtualdefault |
|
pure virtual |
Add a data packet to a stream.
packet | The data packet |
Implemented in KODI::GAME::CGameClientStreamAudio, and KODI::GAME::CGameClientStreamVideo.
|
pure virtual |
Release the RetroPlayer stream resource.
Implemented in KODI::GAME::CGameClientStreamAudio, and KODI::GAME::CGameClientStreamVideo.
|
inlinevirtual |
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 in KODI::GAME::CGameClientStreamSwFramebuffer.
|
pure virtual |
Open the stream.
stream | The RetroPlayer resource to take ownership of |
Implemented in KODI::GAME::CGameClientStreamAudio, and KODI::GAME::CGameClientStreamVideo.
|
inlinevirtual |
Free an allocated buffer.
buffer | The buffer returned from GetBuffer() |