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 training product

x

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Predicts the output buffer size 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)
    

Parameters

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

Return Value

Description

size

Int, output buffer size, in bytes.

ret

Int, error code.