Encode

Function Usage

Video encoding API of the VideoEncoder class.

Prototype

APP_ERROR Encode(const Image &inputImage, const uint32_t frameId, void* userData);

Parameter Description

Parameter

Input/Output

Description

inputImage

Input

FrameImage structure before encoding

frameId

Input

Video frame index

userData

Input/Output

User-defined data, which is transferred to the user-defined callback function and is used to obtain the encoding result.

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.