VideoDecodeConfig
Description
Stores video decoding parameters.
Structure Definition
1 2 3 4 5 6 7 8 9 | struct VideoDecodeConfig { uint32_t width = 1920; uint32_t height = 1080; StreamFormat inputVideoFormat = StreamFormat::H264_MAIN_LEVEL; ImageFormat outputImageFormat = ImageFormat::YUV_SP_420; VideoDecodeCallBack callbackFunc = nullptr; uint32_t skipInterval = 0; uint32_t cscMatrix = 0; }; |
Parameters
Parameter |
Description |
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
width |
Width of the video decoding buffer. The value range is [128, 4096]. The default value is 1920. The value must be an even number of a multiple of 16. Set this parameter based on the actual video frame data. The value must be greater than or equal to the actual width of video frame data. Otherwise, no decoding output will be generated. If the value is too large, redundant memory resource overheads are generated. |
||||||||||||
height |
Height of the video decoding buffer. The value range is [128, 4096]. The default value is 1080. The value must be an even number. Set this parameter based on the actual video frame data. The value must be greater than or equal to the actual height of video frame data. Otherwise, no decoding output will be generated. If the value is too large, redundant memory resource overheads are generated. |
||||||||||||
inputVideoFormat |
Input video format.
|
||||||||||||
outputImageFormat |
Output image format after decoding. The default value is ImageFormat::YUV_SP_420.
|
||||||||||||
callbackFunc |
Callback function after decoding. It cannot be a null pointer. |
||||||||||||
skipInterval |
Skipped frames during video decoding. The value range is [0, 250]. The default value is 0. |
||||||||||||
cscMatrix |
CSC option. The default value is 0, that is, HI_CSC_MATRIX_BT601_WIDE. It is supported only by
|