xbmc
Public Member Functions | List of all members
KODI::RETRO::CRetroPlayerVideo Class Reference

Renders video frames provided by the game loop. More...

#include <RetroPlayerVideo.h>

Inheritance diagram for KODI::RETRO::CRetroPlayerVideo:
Inheritance graph
[legend]
Collaboration diagram for KODI::RETRO::CRetroPlayerVideo:
Collaboration graph
[legend]

Public Member Functions

 CRetroPlayerVideo (CRPRenderManager &m_renderManager, CRPProcessInfo &m_processInfo)
 
bool OpenStream (const StreamProperties &properties) override
 Open a stream. More...
 
bool GetStreamBuffer (unsigned int width, unsigned int height, StreamBuffer &buffer) override
 Get a buffer for zero-copy stream data. More...
 
void AddStreamData (const StreamPacket &packet) override
 Add a data packet to a stream. More...
 
void CloseStream () override
 Close the stream.
 

Detailed Description

Renders video frames provided by the game loop.

See also
CRPRenderManager

Member Function Documentation

◆ AddStreamData()

void CRetroPlayerVideo::AddStreamData ( const StreamPacket packet)
overridevirtual

Add a data packet to a stream.

Parameters
packetThe data packet

Implements KODI::RETRO::IRetroPlayerStream.

◆ GetStreamBuffer()

bool CRetroPlayerVideo::GetStreamBuffer ( unsigned int  width,
unsigned int  height,
StreamBuffer 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
Returns
True if a buffer was returned, false otherwise
Todo:
This comment was in the original code
Todo:
Handle multiple buffers

Implements KODI::RETRO::IRetroPlayerStream.

◆ OpenStream()

bool CRetroPlayerVideo::OpenStream ( const StreamProperties properties)
overridevirtual

Open a stream.

Returns
True if the stream was opened, false otherwise

Implements KODI::RETRO::IRetroPlayerStream.


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