Class:  kodi::addon::CInstanceGame::CStream 
  Game stream handler  
More...
 
Class:  kodi::addon::CInstanceGame::CStream 
  Game stream handler 
This class will be integrated into the addon, which can then open it if necessary for the processing of an audio or video stream.
- Note
 - Callback to Kodi class 
 
◆ AddData()
Add a data packet to a stream. 
- Parameters
 - 
  
    | [in] | packet | The data packet | 
  
   
 
 
◆ Close()
  
  
      
        
          | void kodi::addon::CInstanceGame::CStream::Close  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
Free the specified stream. 
 
 
◆ GetBuffer()
Get a buffer for zero-copy stream data. 
- Parameters
 - 
  
    | [in] | width | The framebuffer width, or 0 for no width specified  | 
    | [in] | height | The framebuffer height, or 0 for no height specified  | 
    | [out] | buffer | The buffer, or unmodified if false is returned | 
  
   
- Returns
 - True if buffer was set, false otherwise
 
- Note
 - If this returns true, buffer must be freed using ReleaseBuffer()
 
 
 
◆ IsOpen()
  
  
      
        
          | bool kodi::addon::CInstanceGame::CStream::IsOpen  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
inline   | 
  
 
Check if the stream opened correctly, e.g. after calling the constructor. 
- Returns
 - True if stream was successfully opened, false otherwise
 
 
 
◆ Open()
Create a stream for gameplay data. 
- Parameters
 - 
  
    | [in] | properties | The stream properties | 
  
   
- Returns
 - A stream handle, or 
nullptr on failure 
 
 
◆ ReleaseBuffer()
Free an allocated buffer. 
- Parameters
 - 
  
    | [in] | buffer | The buffer returned from GetStreamBuffer() |