hi_mpi_venc_get_jpege_predicted_size

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Predicts the output buffer size required for encoding a frame in JPEGE mode.

Prototype

hi_s32 hi_mpi_venc_get_jpege_predicted_size (const hi_video_frame_info* frame, const hi_venc_jpeg_param* jpeg_param, hi_u32 *size)

Parameters

Parameter

Input/Output

Description

frame

Input

Pointer to the source image information.

jpeg_param

Input

Pointer to the advanced parameters of a JPEG encoding channel. This parameter is reserved.

size

Output

Pointer to the output buffer size. The unit is byte.

Returns