hi_mpi_venc_get_jpege_predicted_size

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Description

Predicts the size of the output buffer 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 JPEG encoding channels. This parameter is reserved.

size

Output

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

Returns