VideoDecodeCallBack

Function

Defines the callback function for video decoding. Use the user-defined userData to receive the video decoding callback result, and do not perform complex operations in the callback function. Otherwise, the callback thread is suspended and the video decoding speed becomes slow.

Structure Definition

typedef APP_ERROR (*VideoDecodeCallBack)(Image& decodedImage, uint32_t channelId,
                   uint32_t frameId, void* userData);

Parameter Description

Parameter

Description

decodedImage

Output image class after decoding

channelId

Video stream index, which is set by the constructor of the VideoDecoder class.

frameId

Video frame index, which is set by the Decode function of the VideoDecoder class.

userData

Input data type of the user-defined callback function, which is used to obtain the decoded data.