aclvdecGetChannelDesc系列接口

函数功能

获取视频解码处理通道的描述信息。同步接口。

函数原型

uint32_t aclvdecGetChannelDescChannelId(const aclvdecChannelDesc *channelDesc);

uint32_t aclvdecGetChannelDescThreadId(const aclvdecChannelDesc *channelDesc);

aclvdecCallback aclvdecGetChannelDescCallback(const aclvdecChannelDesc *channelDesc);

acldvppStreamFormat aclvdecGetChannelDescEnType(const aclvdecChannelDesc *channelDesc);

acldvppPixelFormat aclvdecGetChannelDescOutPicFormat(const aclvdecChannelDesc *channelDesc);

uint32_t aclvdecGetChannelDescOutPicWidth(const aclvdecChannelDesc *channelDesc);

uint32_t aclvdecGetChannelDescOutPicHeight(const aclvdecChannelDesc *channelDesc);

uint32_t aclvdecGetChannelDescRefFrameNum(const aclvdecChannelDesc *channelDesc);

uint32_t aclvdecGetChannelDescOutMode(const aclvdecChannelDesc *channelDesc)

uint32_t aclvdecGetChannelDescBitDepth(const aclvdecChannelDesc *channelDesc)

参数说明

参数名

输入/输出

说明

channelDesc

输入

视频解码数据处理通道描述信息的指针。

需提前调用aclvdecCreateChannelDesc接口创建aclvdecChannelDesc类型的数据,调用aclvdecSetChannelDesc系列接口设置视频解码处理通道描述信息的属性值。

返回值说明

参数名

说明

channelId

解码通道号。

Atlas 200/300/500 推理产品,该参数值的取值范围[0, 31]。

Atlas 训练系列产品,该参数值的取值范围[0, 31]。

Atlas A2训练系列产品,该参数值的取值范围[0, 255]。

Atlas 推理系列产品(Ascend 310P处理器),该参数值的取值范围[0, 255]。

threadId

回调线程ID。

callback

回调函数。

请参见aclvdecCallback

enType

视频编码协议H265-main level(0)、H264-baseline level(1)、H264-main level(2)、H264-high level(3)。

outPicFormat

YUV图像存储格式。

outPicWidth

图片宽度。

outPicHeight

图片高度。

refFrameNum

参考帧数量,取值范围[0, 16]。

Atlas 200/300/500 推理产品,当前版本获取该参数的值为无效值,不支持获取该参数值。

Atlas 训练系列产品,当前版本获取该参数的值为无效值,不支持获取该参数值。

outMode

是否实时出帧(即发送一帧解码一帧,无需依赖后续帧的传入),取值范围如下:

  • 0:默认出帧模式,由于解码过程中存在缓存帧,无法实时输出,因此VDEC需要在收到码流中的多帧数据后,才开始输出解码结果。
  • 1:快速出帧模式,VDEC获取码流中的一帧数据后,就开始实时输出解码结果。只支持简单参考关系的H264/H265标准码流(无长期参考帧,无B帧)。

bitDepth

视频位宽。

取值范围如下:

  • 0:8-bit
  • 1: 10-bit

Atlas 200/300/500 推理产品,当前版本获取该参数的值为无效值,不支持获取该参数值。

Atlas 训练系列产品,当前版本获取该参数的值为无效值,不支持获取该参数值。