venc_get_jpege_predicted_size

Applicability

Product

Supported (√/x)

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas training products

x

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

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

Prototype

  • C Prototype
    1
    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)
    
  • Python Function
    1
    size, ret = acl.himpi.venc_get_jpege_predicted_size(frame, jpeg_param)
    

Parameter Description

Parameter

Description

frame

Dict, dictionary of original image information. For details, see hi_video_frame_info.

jpeg_param

Dict, dictionary of the advanced parameters of a JPEG encoding channel. This parameter is reserved. For details, see hi_venc_jpeg_param.

Return Value Description

Return Value

Description

size

Int, output buffer size, in bytes.

ret

Int, error code.