下载
中文
注册

函数:vdec_set_channel_desc_out_pic_format

C函数原型

aclError aclvdecSetChannelDescOutPicFormat(aclvdecChannelDesc *channelDesc, acldvppPixelFormat outPicFormat)

Python函数

ret = acl.media.vdec_set_channel_desc_out_pic_format(vdec_channel_desc, out_pic_format)

函数功能

设置视频解码处理通道描述信息的属性:YUV图像存储格式。

输入说明

vdec_channel_desc:int,视频解码处理通道描述信息的指针地址。

需提前调用acl.media.vdec_create_channel_desc接口创建aclvdecChannelDesc类型的数据。

out_pic_format:int,YUV图像存储格式,支持格式请参见表1

如果不设置输出格式,默认使用YUV420SP NV12。

返回值说明

ret:int,错误码。

  • 返回0表示成功。
  • 返回其它值表示失败。