VideoDecodeConfig
功能
用于保存视频解码的参数。
结构定义
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; };
参数说明
参数名 |
说明 |
---|---|
width |
视频解码缓冲区的宽,取值范围:[128, 4096],默认值:1920,必须为偶数并自动对齐到16的倍数。 请用户根据实际的视频帧数据进行适当设置,需大于或等于实际的视频帧数据宽,否则会无解码输出,设置过大将会产生多余的内存资源。 |
height |
视频解码缓冲区的高,取值范围:[128, 4096],默认值:1080,必须为偶数。 请用户根据实际的视频帧数据进行设置,需大于或等于实际的视频帧数据高,否则会无解码输出,设置过大将会产生多余的内存资源。 |
inputVideoFormat |
输入的视频格式。
|
outputImageFormat |
解码后输出的图像格式,默认值:ImageFormat::YUV_SP_420。
|
callbackFunc |
解码完成后的回调函数,不能为空指针。 |
skipInterval |
视频解码的跳帧参数,取值范围:[0, 250],默认值:0。 |
cscMatrix |
色域转换选项,默认值为“0”,(即HI_CSC_MATRIX_BT601_WIDE)。
|
父主题: 通用数据结构