Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::RETRO::CRetroPlayerVideo Class Reference

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

#include <RetroPlayerVideo.h>

Inheritance diagram for KODI::RETRO::CRetroPlayerVideo:
KODI::RETRO::IRetroPlayerStream

Public Member Functions

 CRetroPlayerVideo (CRPRenderManager &m_renderManager, CRPProcessInfo &m_processInfo)
 
 ~CRetroPlayerVideo () override
 
bool OpenStream (const StreamProperties &properties) override
 Open a stream.
 
bool GetStreamBuffer (unsigned int width, unsigned int height, StreamBuffer &buffer) override
 Get a buffer for zero-copy stream data.
 
void AddStreamData (const StreamPacket &packet) override
 Add a data packet to a stream.
 
void CloseStream () override
 Close the stream.
 
- Public Member Functions inherited from KODI::RETRO::IRetroPlayerStream
virtual ~IRetroPlayerStream ()=default
 

Detailed Description

Renders video frames provided by the game loop.

See also
CRPRenderManager

Constructor & Destructor Documentation

◆ CRetroPlayerVideo()

CRetroPlayerVideo::CRetroPlayerVideo ( CRPRenderManager & m_renderManager,
CRPProcessInfo & m_processInfo )

◆ ~CRetroPlayerVideo()

CRetroPlayerVideo::~CRetroPlayerVideo ( )
override

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.

◆ CloseStream()

void CRetroPlayerVideo::CloseStream ( )
overridevirtual

Close the stream.

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

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: