aclvencCallback

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

Video encoding callback function. This callback function is user-defined.

Prototype

1
void (*aclvencCallback)(acldvppPicDesc *input, acldvppStreamDesc *output, void *userdata)

Parameters

Parameter

Input/Output

Description

input

Input

Pointer to the description of input images. For details about the type definition, see acldvppPicDesc.

output

Input

Pointer to the description of the output frame stream after VENC encoding. For details about the type definition, see acldvppStreamDesc.

userdata

Input

Pointer to the user-defined data.

Returns

None

Restrictions

  • Do not perform channel destruction in the callback function. Doing so results in a deadlock at app runtime.
  • The delay of the callback function processing must meet the frame rate requirement. Otherwise, the real-time performance of the aclvencSendFrame interface in processing video frames is affected.
  • Unsubscribe from a callback thread after all callbacks are executed.

See Also

For details about the API call sequence and examples, see VENC.