函数:venc_send_frame
C函数原型 |
aclError aclvencSendFrame(aclvencChannelDesc *channelDesc, acldvppPicDesc *input, void *reserve, aclvencFrameConfig *config, void *userdata) |
---|---|
Python函数 |
ret = acl.media.venc_send_frame(venc_channel_desc, input, reserve, config, userdata) |
函数功能 |
将待编码的图片传到编码器进行编码。异步接口。 |
输入说明 |
venc_channel_desc:int,指定通道描述。 与调用acl.media.venc_create_channel接口创建通道时指定的channelDesc保持一致。 在通道描述信息中指定视频编码的回调函数。 input:int,输入图片描述信息,输入内存用户需提前申请。
reserve:int,预留参数,暂不使用,设值为0。 config:int,单帧配置数据。 userdata:Python对象,用户自定义数据。 |
返回值说明 |
ret:int,错误码。
|
约束说明 |
|
父主题: VENC功能