跳到主要内容

函数:dvpp_get_stream_desc_format

函数:dvpp_get_stream_desc_data

C函数原型void *acldvppGetStreamDescData(const acldvppStreamDesc *streamDesc)
Python函数data_dev = acl.media.dvpp_get_stream_desc_data(dvpp_stream_desc)
函数功能获取视频码流描述参数:Device上视频码流数据内存。
输入说明dvpp_stream_desc:int,视频码流描述信息。
返回值说明data_dev:int,Device上视频码流数据内存。
约束说明

父主题: common

函数:dvpp_get_stream_desc_size

C函数原型uint32_t acldvppGetStreamDescSize(const acldvppStreamDesc *streamDesc)
Python函数size = acl.media.dvpp_get_stream_desc_size(dvpp_stream_desc)
函数功能获取视频码流描述参数:视频码流数据内存大小。
输入说明dvpp_stream_desc:int,视频码流描述信息。
返回值说明size:int,内存大小,单位Byte。
约束说明

父主题: common

函数:dvpp_get_stream_desc_format

C函数原型acldvppStreamFormat acldvppGetStreamDescFormat(const acldvppStreamDesc *streamDesc)
Python函数format = acl.media.dvpp_get_stream_desc_format(dvpp_stream_desc)
函数功能获取视频码流描述参数:视频码流格式。
输入说明d****vpp_stream_desc:int,视频码流描述信息。
返回值说明format:int,视频码流格式(h264/h265)。
- 0:H265_MAIN_LEVEL
- 1:H264_BASELINE_LEVEL
- 2:H264_MAIN_LEVEL
- 3:H264_HIGH_LEVEL
约束说明

父主题: common

函数:dvpp_get_stream_desc_timestamp

C函数原型uint64_t acldvppGetStreamDescTimestamp(const acldvppStreamDesc *streamDesc)
Python函数timestamp = acl.media.dvpp_get_stream_desc_timestamp(dvpp_stream_desc)
函数功能获取视频码流描述参数:时间戳。
输入说明dvpp_stream_desc:int,视频码流描述信息。
返回值说明timestamp:int,时间戳。
约束说明

父主题: common

函数:dvpp_get_stream_desc_ret_code

C函数原型uint32_t acldvppGetStreamDescRetCode(const acldvppStreamDesc *streamDesc)
Python函数ret_code = acl.media.dvpp_get_stream_desc_ret_code(dvpp_stream_desc)
函数功能获取视频码流描述参数:返回码。
输入说明dvpp_stream_desc:int,视频码流描述信息。
返回值说明ret_code:int,返回码。
- 返回0成功。
- 返回非0失败。
约束说明

父主题: common

函数:dvpp_get_stream_desc_eos

C函数原型uint8_t acldvppGetStreamDescEos(const acldvppStreamDesc *streamDesc)
Python函数eos = acl.media.dvpp_get_stream_desc_eos(dvpp_stream_desc)
函数功能获取视频码流描述参数:是否为最后一帧数据。
输入说明dvpp_stream_desc:int,视频码流描述信息。
返回值说明eos:int,是否为最后一帧数据(0否,1是)。
约束说明

父主题: common

在线提单