Function: venc_send_frame
|
C Prototype |
aclError aclvencSendFrame(aclvencChannelDesc *channelDesc, acldvppPicDesc *input, void *reserve, aclvencFrameConfig *config, void *userdata) |
|---|---|
|
Python Function |
ret = acl.media.venc_send_frame(venc_channel_desc, input, reserve, config, userdata) |
|
Function Usage |
Sends an image to the encoder for encoding. This API is asynchronous. The Atlas Training Series Product does not support this API. |
|
Input Description |
venc_channel_desc: int, pointer address of a specified channel. Must be the same as the channelDesc argument passed to the acl.media.venc_create_channel call. The callback function for video encoding is specified in channel description. input: int, pointer address of the input image description. You need to allocate the input buffer in advance.
reserve: int, reserved parameter. It is set to 0. config: int, pointer address of the configuration data of a single frame. userdata: Python object, user-defined data. |
|
Return Value |
ret: int, error code.
|
|
Restrictions |
|
|
Reference |
For details about the API call sequence and example, see VENC. |