Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

Initialization data to open a video codec stream.


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

Name Type Get call
Codec type VIDEOCODEC_TYPE GetCodecType
Codec profile STREAMCODEC_PROFILE GetCodecProfile
Video formats std::vector<VIDEOCODEC_FORMAT> GetVideoFormats
Width uint32_t GetWidth
Height uint32_t GetHeight
Extra data const uint8_t* GetExtraData
Extra data size unsigned int GetExtraDataSize
Crypto session kodi::addon::StreamCryptoSession GetCryptoSession

Modules

 Value Help
 

Enumeration Type Documentation

◆ VIDEOCODEC_FORMAT

The video stream representations requested by Kodi.

Enumerator
VIDEOCODEC_FORMAT_UNKNOWN 

Unknown types, this is used to declare the end of a list of requested types.

VIDEOCODEC_FORMAT_YV12 

YV12 4:2:0 YCrCb planar format.

VIDEOCODEC_FORMAT_I420 

These formats are identical to YV12 except that the U and V plane order is reversed.

VIDEOCODEC_FORMAT_MAXFORMATS 

The maximum value to use in a list.

◆ VIDEOCODEC_TYPE

Video codec types that can be requested from Kodi.

Enumerator
VIDEOCODEC_UNKNOWN 

Unknown or other type requested.

VIDEOCODEC_VP8 

VP8 video coding format

VIDEOCODEC_H264 

Advanced Video Coding (AVC), also referred to as H.264 or MPEG-4 Part 10, Advanced Video Coding (MPEG-4 AVC).

VIDEOCODEC_VP9 

VP9 video coding format

VP9 is the successor to VP8 and competes mainly with MPEG's High Efficiency Video Coding (HEVC/H.265).

Function Documentation

◆ GetCodecType()

VIDEOCODEC_TYPE GetCodecType ( ) const
inline

The codec type required by Kodi to process the stream.

See VIDEOCODEC_TYPE for possible values.

◆ GetCodecProfile()

STREAMCODEC_PROFILE GetCodecProfile ( ) const
inline

Used profiles for non-scalable 2D video.

◆ GetVideoFormats()

std::vector<VIDEOCODEC_FORMAT> GetVideoFormats ( ) const
inline

The video stream representations requested by Kodi.

This contains a list of the required video formats. One of them has to select the addon to return the created image.

◆ GetWidth()

uint32_t GetWidth ( ) const
inline

Picture width.

◆ GetHeight()

uint32_t GetHeight ( ) const
inline

Picture height.

◆ GetExtraData()

const uint8_t* GetExtraData ( ) const
inline

Depending on the required decoding, additional data given by the stream.

◆ GetExtraDataSize()

unsigned int GetExtraDataSize ( ) const
inline

Size of the data given with extraData.

◆ GetCryptoSession()

kodi::addon::StreamCryptoSession GetCryptoSession ( ) const
inline

Data to manage stream cryptography
To get class structure manages any encryption values required in order to have them available in their stream processing.


The following table contains values that can be set with cpp_kodi_addon_inputstream_Defs_Info_StreamCryptoSession :

Name Type Set call Get call
Keysystem for encrypted media STREAM_CRYPTO_KEY_SYSTEM SetKeySystem GetKeySystem
Flags for special conditions uint8_t SetFlags GetFlags
Crypto session key id std::string SetSessionId GetSessionId