Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

PVR stream properties
All information about a respective stream is stored in this, so that Kodi can process the data given by the addon after demux.


The following table contains values that can be set with class PVRStreamProperties :

Name Type Set call Get call
PID unsigned int SetPID GetPID
Codec type PVR_CODEC_TYPE SetCodecType GetCodecType
Codec identifier unsigned int SetCodecId GetCodecId
Language std::string SetLanguage GetLanguage
Subtitle info int SetSubtitleInfo GetSubtitleInfo
FPS scale int SetFPSScale GetFPSScale
FPS rate int SetFPSRate GetFPSRate
Height int SetHeight GetHeight
Width int SetWidth GetWidth
Aspect ratio float SetAspect GetAspect
Channels int SetChannels GetChannels
Samplerate int SetSampleRate GetSampleRate
Block align int SetBlockAlign GetBlockAlign
Bit rate int SetBitRate GetBitRate
Bits per sample int SetBitsPerSample GetBitsPerSample

Modules

 Value Help
 

Function Documentation

◆ SetPID()

void SetPID ( unsigned int  pid)
inline

PID.

◆ GetPID()

unsigned int GetPID ( ) const
inline

To get with SetPID() changed values.

◆ SetCodecType()

void SetCodecType ( PVR_CODEC_TYPE  codecType)
inline

Codec type this stream.

◆ GetCodecType()

PVR_CODEC_TYPE GetCodecType ( ) const
inline

To get with SetCodecType() changed values.

◆ SetCodecId()

void SetCodecId ( unsigned int  codecId)
inline

Codec id of this stream.

◆ GetCodecId()

unsigned int GetCodecId ( ) const
inline

To get with SetCodecId() changed values.

◆ SetLanguage()

void SetLanguage ( const std::string &  language)
inline

3 letter language id.

◆ GetLanguage()

std::string GetLanguage ( ) const
inline

To get with SetLanguage() changed values.

◆ SetSubtitleInfo()

void SetSubtitleInfo ( int  subtitleInfo)
inline

Subtitle Info.

◆ GetSubtitleInfo()

int GetSubtitleInfo ( ) const
inline

To get with SetSubtitleInfo() changed values.

◆ SetFPSScale()

void SetFPSScale ( int  fpsScale)
inline

To set scale of 1000 and a rate of 29970 will result in 29.97 fps.

◆ GetFPSScale()

int GetFPSScale ( ) const
inline

To get with SetFPSScale() changed values.

◆ SetFPSRate()

void SetFPSRate ( int  fpsRate)
inline

FPS rate.

◆ GetFPSRate()

int GetFPSRate ( ) const
inline

To get with SetFPSRate() changed values.

◆ SetHeight()

void SetHeight ( int  height)
inline

Height of the stream reported by the demuxer.

◆ GetHeight()

int GetHeight ( ) const
inline

To get with SetHeight() changed values.

◆ SetWidth()

void SetWidth ( int  width)
inline

Width of the stream reported by the demuxer.

◆ GetWidth()

int GetWidth ( ) const
inline

To get with SetWidth() changed values.

◆ SetAspect()

void SetAspect ( float  aspect)
inline

Display aspect ratio of the stream.

◆ GetAspect()

float GetAspect ( ) const
inline

To get with SetAspect() changed values.

◆ SetChannels()

void SetChannels ( int  channels)
inline

Amount of channels.

◆ GetChannels()

int GetChannels ( ) const
inline

To get with SetChannels() changed values.

◆ SetSampleRate()

void SetSampleRate ( int  sampleRate)
inline

Sample rate.

◆ GetSampleRate()

int GetSampleRate ( ) const
inline

To get with SetSampleRate() changed values.

◆ SetBlockAlign()

void SetBlockAlign ( int  blockAlign)
inline

Block alignment.

◆ GetBlockAlign()

int GetBlockAlign ( ) const
inline

To get with SetBlockAlign() changed values.

◆ SetBitRate()

void SetBitRate ( int  bitRate)
inline

Bit rate.

◆ GetBitRate()

int GetBitRate ( ) const
inline

To get with SetBitRate() changed values.

◆ SetBitsPerSample()

void SetBitsPerSample ( int  bitsPerSample)
inline

Bits per sample.

◆ GetBitsPerSample()

int GetBitsPerSample ( ) const
inline

To get with SetBitsPerSample() changed values.