Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
kodi::addon::CInstanceGame::CStream Class Reference

#include <Game.h>

Public Member Functions

 CStream ()=default
 
 CStream (const game_stream_properties &properties)
 
 ~CStream ()
 
bool Open (const game_stream_properties &properties)
 Create a stream for gameplay data.
 
void Close ()
 Free the specified stream.
 
bool GetBuffer (unsigned int width, unsigned int height, game_stream_buffer &buffer)
 Get a buffer for zero-copy stream data.
 
void AddData (const game_stream_packet &packet)
 Add a data packet to a stream.
 
void ReleaseBuffer (game_stream_buffer &buffer)
 Free an allocated buffer.
 
bool IsOpen () const
 To check stream open was OK, e.g. after use of constructor.
 

Constructor & Destructor Documentation

◆ CStream() [1/2]

kodi::addon::CInstanceGame::CStream::CStream ( )
default

◆ CStream() [2/2]

kodi::addon::CInstanceGame::CStream::CStream ( const game_stream_properties & properties)
inline

◆ ~CStream()

kodi::addon::CInstanceGame::CStream::~CStream ( )
inline

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