Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
No Matches
KODI::GAME::CGameClientStreamSwFramebuffer Class Reference

#include <GameClientStreamSwFramebuffer.h>

Inheritance diagram for KODI::GAME::CGameClientStreamSwFramebuffer:
KODI::GAME::CGameClientStreamVideo KODI::GAME::IGameClientStream

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::IRetroPlayerStreamm_stream = nullptr

Constructor & Destructor Documentation

◆ CGameClientStreamSwFramebuffer()

KODI::GAME::CGameClientStreamSwFramebuffer::CGameClientStreamSwFramebuffer ( )

◆ ~CGameClientStreamSwFramebuffer()

KODI::GAME::CGameClientStreamSwFramebuffer::~CGameClientStreamSwFramebuffer ( )

Member Function Documentation

◆ GetBuffer()

bool CGameClientStreamSwFramebuffer::GetBuffer ( unsigned int width,
unsigned int height,
game_stream_buffer & buffer )

Get a buffer for zero-copy stream data.

widthThe framebuffer width, or 0 for no width specified
heightThe framebuffer height, or 0 for no height specified
[out]bufferThe buffer, or unmodified if false is returned

If this returns true, buffer must be freed using ReleaseBuffer().

True if buffer was set, false otherwise

Reimplemented from KODI::GAME::IGameClientStream.

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