Inputstream add-on stream info
This is used to give Kodi the associated and necessary data for an open stream.
Used on kodi::addon::CInstanceInputStream::GetStream().
The following table contains values that can be set with class InputstreamInfo :
◆ SetStreamType()
Set the wanted stream type.
- Parameters
-
◆ GetStreamType()
◆ SetFeatures()
void SetFeatures |
( |
uint32_t | features | ) |
|
|
inline |
Set special supported feature flags of inputstream.
- Parameters
-
◆ GetFeatures()
uint32_t GetFeatures |
( |
| ) |
const |
|
inline |
◆ SetFlags()
void SetFlags |
( |
uint32_t | flags | ) |
|
|
inline |
Set supported flags of inputstream.
- Parameters
-
◆ GetFlags()
uint32_t GetFlags |
( |
| ) |
const |
|
inline |
◆ SetName()
void SetName |
( |
const std::string & | name | ) |
|
|
inline |
(optional) Name of the stream, leave empty for default handling.
- Parameters
-
◆ GetName()
std::string GetName |
( |
| ) |
const |
|
inline |
To get with SetName changed values.
◆ SetCodecName()
void SetCodecName |
( |
const std::string & | codecName | ) |
|
|
inline |
◆ GetCodecName()
std::string GetCodecName |
( |
| ) |
const |
|
inline |
◆ SetCodecInternalName()
void SetCodecInternalName |
( |
const std::string & | codecName | ) |
|
|
inline |
(optional) Internal name of codec (selectionstream info).
- Parameters
-
[in] | codecName | Internal codec name |
◆ GetCodecInternalName()
std::string GetCodecInternalName |
( |
| ) |
const |
|
inline |
◆ SetCodecProfile()
(optional) The profile of the codec.
- Parameters
-
◆ GetCodecProfile()
◆ SetPhysicalIndex()
void SetPhysicalIndex |
( |
unsigned int | id | ) |
|
|
inline |
(required) Physical index.
- Parameters
-
◆ GetPhysicalIndex()
unsigned int GetPhysicalIndex |
( |
| ) |
const |
|
inline |
◆ SetExtraData() [1/2]
void SetExtraData |
( |
const std::vector< uint8_t > & | extraData | ) |
|
|
inline |
Additional data where can needed on streams.
- Parameters
-
[in] | extraData | List with memory of extra data |
◆ SetExtraData() [2/2]
void SetExtraData |
( |
const uint8_t * | extraData, |
|
|
size_t | extraSize ) |
|
inline |
Additional data where can needed on streams.
- Parameters
-
[in] | extraData | Pointer with memory of extra data |
[in] | extraSize | Size to store |
◆ GetExtraData()
const std::vector< uint8_t > & GetExtraData |
( |
| ) |
|
|
inline |
◆ GetExtraDataSize()
size_t GetExtraDataSize |
( |
| ) |
|
|
inline |
◆ CompareExtraData()
bool CompareExtraData |
( |
const uint8_t * | extraData, |
|
|
size_t | extraSize ) const |
|
inline |
Compare extra data from outside with class.
- Parameters
-
[in] | extraData | Pointer with memory of extra data for compare |
[in] | extraSize | Size to compare |
- Returns
- true if they equal, false otherwise
◆ ClearExtraData()
◆ SetLanguage()
void SetLanguage |
( |
const std::string & | language | ) |
|
|
inline |
RFC 5646 language code (empty string if undefined).
- Parameters
-
[in] | language | The language to set |
◆ GetLanguage()
std::string GetLanguage |
( |
| ) |
const |
|
inline |
◆ SetFpsScale()
void SetFpsScale |
( |
unsigned int | fpsScale | ) |
|
|
inline |
Scale of 1000 and a rate of 29970 will result in 29.97 fps.
- Parameters
-
◆ GetFpsScale()
unsigned int GetFpsScale |
( |
| ) |
const |
|
inline |
◆ SetFpsRate()
void SetFpsRate |
( |
unsigned int | fpsRate | ) |
|
|
inline |
Rate to use for stream.
- Parameters
-
◆ GetFpsRate()
unsigned int GetFpsRate |
( |
| ) |
const |
|
inline |
◆ SetHeight()
void SetHeight |
( |
unsigned int | height | ) |
|
|
inline |
Height of the stream reported by the demuxer.
- Parameters
-
◆ GetHeight()
unsigned int GetHeight |
( |
| ) |
const |
|
inline |
◆ SetWidth()
void SetWidth |
( |
unsigned int | width | ) |
|
|
inline |
Width of the stream reported by the demuxer.
- Parameters
-
◆ GetWidth()
unsigned int GetWidth |
( |
| ) |
const |
|
inline |
◆ SetAspect()
void SetAspect |
( |
float | aspect | ) |
|
|
inline |
Display aspect of stream.
- Parameters
-
[in] | aspect | Aspect ratio to use |
◆ GetAspect()
float GetAspect |
( |
| ) |
const |
|
inline |
◆ SetChannels()
void SetChannels |
( |
unsigned int | channels | ) |
|
|
inline |
(required) Amount of channels.
- Parameters
-
[in] | sampleRate | Channels to use |
◆ GetChannels()
unsigned int GetChannels |
( |
| ) |
const |
|
inline |
◆ SetSampleRate()
void SetSampleRate |
( |
unsigned int | sampleRate | ) |
|
|
inline |
(required) Sample rate.
- Parameters
-
[in] | sampleRate | Rate to use |
◆ GetSampleRate()
unsigned int GetSampleRate |
( |
| ) |
const |
|
inline |
◆ SetBitRate()
void SetBitRate |
( |
unsigned int | bitRate | ) |
|
|
inline |
◆ GetBitRate()
unsigned int GetBitRate |
( |
| ) |
const |
|
inline |
◆ SetBitsPerSample()
void SetBitsPerSample |
( |
unsigned int | bitsPerSample | ) |
|
|
inline |
(required) Bits per sample.
- Parameters
-
[in] | bitsPerSample | Bits per sample to use |
◆ GetBitsPerSample()
unsigned int GetBitsPerSample |
( |
| ) |
const |
|
inline |
◆ SetBlockAlign()
void SetBlockAlign |
( |
unsigned int | blockAlign | ) |
|
|
inline |
To set the necessary stream block alignment size.
- Parameters
-
[in] | blockAlign | Block size in byte |
◆ GetBlockAlign()
unsigned int GetBlockAlign |
( |
| ) |
const |
|
inline |
◆ SetCryptoSession()
To set stream crypto session information.
- Parameters
-
[in] | cryptoSession | The with cpp_kodi_addon_inputstream_Defs_Interface_StreamCryptoSession setable info |
◆ GetCryptoSession()
◆ SetCodecFourCC()
void SetCodecFourCC |
( |
unsigned int | codecFourCC | ) |
|
|
inline |
Codec If available, the fourcc code codec.
- Parameters
-
[in] | codecFourCC | Codec four CC code |
◆ GetCodecFourCC()
unsigned int GetCodecFourCC |
( |
| ) |
const |
|
inline |
◆ SetColorSpace()
Definition of colorspace.
- Parameters
-
◆ GetColorSpace()
◆ SetColorRange()
Color range if available.
- Parameters
-
◆ GetColorRange()
◆ SetColorPrimaries()
Chromaticity coordinates of the source primaries. These values match the ones defined by ISO/IEC 23001-8_2013 § 7.1.
- Parameters
-
◆ GetColorPrimaries()
◆ SetColorTransferCharacteristic()
Color Transfer Characteristic. These values match the ones defined by ISO/IEC 23001-8_2013 § 7.2.
- Parameters
-
◆ GetColorTransferCharacteristic()
◆ SetMasteringMetadata()
Mastering static Metadata.
Describes the metadata for HDR10, used when video is compressed using High Efficiency Video Coding (HEVC). This is used to describe the capabilities of the display used to master the content and the luminance values of the content.
- Parameters
-
◆ GetMasteringMetadata()
◆ ClearMasteringMetadata()
void ClearMasteringMetadata |
( |
| ) |
|
|
inline |
Clear mastering static Metadata.
◆ SetContentLightMetadata()
Content light static Metadata.
The maximum content light level (MaxCLL) and frame average light level (MaxFALL) for the metadata for HDR10.
- Parameters
-
◆ GetContentLightMetadata()
◆ ClearContentLightMetadata()
void ClearContentLightMetadata |
( |
| ) |
|
|
inline |
Clear content light static Metadata.