Initialization data to open a video codec stream.
The following table contains values that can be set with class VideoCodecInitdata :
◆ 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).
|
VIDEOCODEC_AV1 | AV1 video coding format
AV1 is the successor to VP9 and competes mainly with MPEG's High Efficiency Video Coding (HEVC/H.265).
|
◆ GetCodecType()
The codec type required by Kodi to process the stream.
See VIDEOCODEC_TYPE for possible values.
◆ GetCodecProfile()
Used profiles for non-scalable 2D video.
◆ GetVideoFormats()
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 |
◆ GetHeight()
uint32_t GetHeight |
( |
| ) |
const |
|
inline |
◆ 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()
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 :