aclvencCallback
Applicable Products
|
Product |
Supported |
|---|---|
|
|
x |
|
|
x |
|
|
x |
|
|
√ |
|
|
√ |
|
|
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.