VideoDecodeConfig
Parameter |
Type |
Description |
|---|---|---|
width |
int |
Width of the buffer for video decoding. The value must be an even number within the range of [128, 4096]. The default value is 1920. It is automatically rounded up to 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 video frame data width. Otherwise, no decoding output is available. If the value is too large, redundant memory resources are generated. |
height |
int |
Height of the buffer for video decoding. The value must be an even number within the range of [128, 4096]. The default value is 1080. Set this parameter based on the actual video frame data. The value must be greater than or equal to the actual video frame data height. Otherwise, no decoding output is available. If the value is too large, redundant memory resources are generated. |
inputVideoFormat |
StreamFormat enumeration |
Input video format. H.264 videos support base.h264_baseline_level, base.h264_main_level (default), and base.h264_high_level. H.265 videos support only base.h265_main_level. Default value: base.h264_main_level. |
outputImageFormat |
image_format enumeration |
Output image format after decoding. The default value is base.nv12.
|
skipInterval |
int |
Skipped frames during video decoding. The value range is [0, 250]. The default value is 0. |