xbmc
Public Member Functions | List of all members
KODI::GAME::CGameClientStreamSwFramebuffer Class Reference
Inheritance diagram for KODI::GAME::CGameClientStreamSwFramebuffer:
Inheritance graph
[legend]
Collaboration diagram for KODI::GAME::CGameClientStreamSwFramebuffer:
Collaboration graph
[legend]

Public Member Functions

bool GetBuffer (unsigned int width, unsigned int height, game_stream_buffer &buffer) override
 Get a buffer for zero-copy stream data. More...
 
- Public Member Functions inherited from KODI::GAME::CGameClientStreamVideo
bool OpenStream (RETRO::IRetroPlayerStream *stream, const game_stream_properties &properties) override
 Open the stream. More...
 
void CloseStream () override
 Release the RetroPlayer stream resource.
 
void AddData (const game_stream_packet &packet) override
 Add a data packet to a stream. More...
 
- Public Member Functions inherited from KODI::GAME::IGameClientStream
virtual void ReleaseBuffer (game_stream_buffer &buffer)
 Free an allocated buffer. More...
 

Additional Inherited Members

- Protected Attributes inherited from KODI::GAME::CGameClientStreamVideo
RETRO::IRetroPlayerStreamm_stream = nullptr
 

Member Function Documentation

◆ GetBuffer()

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

Get a buffer for zero-copy stream data.

Parameters
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().

Returns
True if buffer was set, false otherwise

Reimplemented from KODI::GAME::IGameClientStream.


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