kodi
Public Member Functions | Static Public Member Functions | List of all members
KODI::RETRO::CRPProcessInfo Class Reference

Player process info. More...

#include <RPProcessInfo.h>

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

Public Member Functions

const std::string & GetPlatformName () const
 Get the descriptive name of the platform. More...
 
std::string GetRenderSystemName (IRenderBufferPool *renderBufferPool) const
 Get the descriptive name of the rendering system. More...
 
CRPBaseRendererCreateRenderer (IRenderBufferPool *renderBufferPool, const CRenderSettings &renderSettings)
 Create a renderer. More...
 
void SetDataCache (CDataCacheCore *cache)
 Set data cache.
 
void ResetInfo ()
 Reset data cache info.
 
Rendering functions

{

CRenderContextGetRenderContext ()
 Get the context shared by the rendering system.
 
CRenderBufferManagerGetBufferManager ()
 Get the buffer manager that owns the buffer pools.
 
bool HasScalingMethod (SCALINGMETHOD scalingMethod) const
 Check if a buffer pool supports the given scaling method.
 
SCALINGMETHOD GetDefaultScalingMethod () const
 Get the default scaling method for this rendering system.
 
Player video info

}

{

void SetVideoPixelFormat (AVPixelFormat pixFormat)
 
void SetVideoDimensions (int width, int height)
 
void SetVideoFps (float fps)
 
Player audio info

}

{

void SetAudioChannels (const std::string &channels)
 
void SetAudioSampleRate (int sampleRate)
 
void SetAudioBitsPerSample (int bitsPerSample)
 

Static Public Member Functions

static std::unique_ptr< CRPProcessInfoCreateInstance ()
 
static void RegisterProcessControl (const CreateRPProcessControl &createFunc)
 
static void RegisterRendererFactory (IRendererFactory *factory)
 

Player states

}

{

static CreateRPProcessControl m_processControl = nullptr
 
static std::vector< std::unique_ptr< IRendererFactory > > m_rendererFactories
 
static CCriticalSection m_createSection
 
const std::string m_platformName
 
CDataCacheCorem_dataCache = nullptr
 
std::unique_ptr< CRenderBufferManagerm_renderBufferManager
 
void SetSpeed (float speed)
 
void SetPlayTimes (time_t start, int64_t current, int64_t min, int64_t max)
 
 CRPProcessInfo (std::string platformName)
 } More...
 
static std::vector< SCALINGMETHOD > GetScalingMethods ()
 Get all scaling methods available to the rendering system.
 

Detailed Description

Player process info.

Constructor & Destructor Documentation

◆ CRPProcessInfo()

CRPProcessInfo::CRPProcessInfo ( std::string  platformName)
protected

}

Constructor

Parameters
platformNameA descriptive name of the platform

Member Function Documentation

◆ CreateRenderer()

CRPBaseRenderer * CRPProcessInfo::CreateRenderer ( IRenderBufferPool renderBufferPool,
const CRenderSettings renderSettings 
)

Create a renderer.

Parameters
renderBufferPoolThe buffer pool used to return render buffers
renderSettingsThe settings for this renderer
Returns
The renderer, or nullptr on failure

◆ GetPlatformName()

const std::string& KODI::RETRO::CRPProcessInfo::GetPlatformName ( ) const
inline

Get the descriptive name of the platform.

Returns
The name of the platform as set by windowing

◆ GetRenderSystemName()

std::string CRPProcessInfo::GetRenderSystemName ( IRenderBufferPool renderBufferPool) const

Get the descriptive name of the rendering system.

Parameters
renderBufferPoolA pool belonging to the rendering system
Returns
The name of the rendering system as set by windowing

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