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

Player process info. More...

#include <RPProcessInfo.h>

Inheritance diagram for KODI::RETRO::CRPProcessInfo:
KODI::RETRO::CRPProcessInfoAndroid KODI::RETRO::CRPProcessInfoGbm KODI::RETRO::CRPProcessInfoIOS KODI::RETRO::CRPProcessInfoOSX KODI::RETRO::CRPProcessInfoWayland KODI::RETRO::CRPProcessInfoWin KODI::RETRO::CRPProcessInfoX11

Public Member Functions

virtual ~CRPProcessInfo ()
 
const std::string & GetPlatformName () const
 Get the descriptive name of the platform.
 
std::string GetRenderSystemName (IRenderBufferPool *renderBufferPool) const
 Get the descriptive name of the rendering system.
 
CRPBaseRendererCreateRenderer (IRenderBufferPool *renderBufferPool, const CRenderSettings &renderSettings)
 Create a renderer.
 
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)
 }
 
static std::vector< SCALINGMETHODGetScalingMethods ()
 Get all scaling methods available to the rendering system.
 

Detailed Description

Player process info.

Constructor & Destructor Documentation

◆ ~CRPProcessInfo()

CRPProcessInfo::~CRPProcessInfo ( )
virtualdefault

◆ CRPProcessInfo()

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

}

Constructor

Parameters
platformNameA descriptive name of the platform

Member Function Documentation

◆ CreateInstance()

std::unique_ptr< CRPProcessInfo > CRPProcessInfo::CreateInstance ( )
static

◆ 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

◆ GetBufferManager()

CRenderBufferManager & KODI::RETRO::CRPProcessInfo::GetBufferManager ( )
inline

Get the buffer manager that owns the buffer pools.

◆ GetDefaultScalingMethod()

SCALINGMETHOD KODI::RETRO::CRPProcessInfo::GetDefaultScalingMethod ( ) const
inline

Get the default scaling method for this rendering system.

◆ 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

◆ GetRenderContext()

CRenderContext & KODI::RETRO::CRPProcessInfo::GetRenderContext ( )
inline

Get the context shared by the rendering system.

◆ 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

◆ GetScalingMethods()

std::vector< SCALINGMETHOD > CRPProcessInfo::GetScalingMethods ( )
staticprotected

Get all scaling methods available to the rendering system.

◆ HasScalingMethod()

bool CRPProcessInfo::HasScalingMethod ( SCALINGMETHOD scalingMethod) const

Check if a buffer pool supports the given scaling method.

◆ RegisterProcessControl()

void CRPProcessInfo::RegisterProcessControl ( const CreateRPProcessControl & createFunc)
static

◆ RegisterRendererFactory()

void CRPProcessInfo::RegisterRendererFactory ( IRendererFactory * factory)
static

◆ ResetInfo()

void CRPProcessInfo::ResetInfo ( )

Reset data cache info.

◆ SetAudioBitsPerSample()

void CRPProcessInfo::SetAudioBitsPerSample ( int bitsPerSample)

◆ SetAudioChannels()

void CRPProcessInfo::SetAudioChannels ( const std::string & channels)

◆ SetAudioSampleRate()

void CRPProcessInfo::SetAudioSampleRate ( int sampleRate)

◆ SetDataCache()

void CRPProcessInfo::SetDataCache ( CDataCacheCore * cache)

Set data cache.

◆ SetPlayTimes()

void CRPProcessInfo::SetPlayTimes ( time_t start,
int64_t current,
int64_t min,
int64_t max )

◆ SetSpeed()

void CRPProcessInfo::SetSpeed ( float speed)

◆ SetVideoDimensions()

void CRPProcessInfo::SetVideoDimensions ( int width,
int height )

◆ SetVideoFps()

void CRPProcessInfo::SetVideoFps ( float fps)

◆ SetVideoPixelFormat()

void CRPProcessInfo::SetVideoPixelFormat ( AVPixelFormat pixFormat)

Member Data Documentation

◆ m_createSection

CCriticalSection CRPProcessInfo::m_createSection
staticprotected

◆ m_dataCache

CDataCacheCore* KODI::RETRO::CRPProcessInfo::m_dataCache = nullptr
protected

◆ m_platformName

const std::string KODI::RETRO::CRPProcessInfo::m_platformName
protected

◆ m_processControl

CreateRPProcessControl CRPProcessInfo::m_processControl = nullptr
staticprotected

◆ m_renderBufferManager

std::unique_ptr<CRenderBufferManager> KODI::RETRO::CRPProcessInfo::m_renderBufferManager
protected

◆ m_rendererFactories

std::vector< std::unique_ptr< IRendererFactory > > CRPProcessInfo::m_rendererFactories
staticprotected

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