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 |
Topics | |
| Value Help | |
| enum VIDEOCODEC_FORMAT |
The video stream representations requested by Kodi.
| enum 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 |
| VIDEOCODEC_AV1 | AV1 video coding format |
| VIDEOCODEC_HEVC | HEVC/H.265. |
| VIDEOCODEC_RAWVIDEO | Raw uncompressed video. |
|
inline |
The codec type required by Kodi to process the stream.
See VIDEOCODEC_TYPE for possible values.
|
inline |
Used profiles for non-scalable 2D video.
|
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.
|
inline |
Picture width.
|
inline |
Picture height.
|
inline |
Depending on the required decoding, additional data given by the stream.
|
inline |
Size of the data given with extraData.
|
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 |