aclvencCallback

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

x

Atlas A2 training products / Atlas A2 inference products

x

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

x

Description

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

Prototype

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

Parameters

Parameter

Input/Output

Description

input

Input

Pointer to the description of input images.

output

Input

Pointer to the VENC output stream description.

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 latency for handling the callback function must meet the frame rate required for frame feeding. Otherwise, aclvencSendFrame will be unable to process video frames in real time.
  • Unsubscribe from a callback thread after all callbacks are executed.

See Also

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