aclvencCallback

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

x

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

Function

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 input image description. For details, see acldvppPicDesc.

output

Input

Pointer to the VENC output stream description. For details, 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 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.

Reference

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