aclvencSendFrame

Description

Feeds images to the encoder for encoding. This API is asynchronous.

The Ascend 910 AI Processor does not support this API in the current version.

Restrictions

Prototype

aclError aclvencSendFrame(aclvencChannelDesc *channelDesc,

acldvppPicDesc *input,

void *reserve,

aclvencFrameConfig *config,

void *userdata)

Parameters

Parameter

Input/Output

Description

channelDesc

Input

Pointer to the channel description.

Must be the same as the channelDesc argument passed to the aclvencCreateChannel call.

Specify the video encoding callback function in the channel description.

input

Input

Pointer to the input image description. The user needs to allocate input buffer in advance.

reserve

Input

Reserved.

config

Input

Pointer to the single-frame configuration.

userdata

Input

Pointer to the user-defined data.

Returns

0 on success; else, failure.

See Also

For the API call sequence, see VENC.