acl.himpi.venc_get_jpege_predicted_size
C 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) |
|---|---|
Python Function |
size, ret = acl.himpi.venc_get_jpege_predicted_size(frame, jpeg_param) |
Function Usage |
Predicts the output buffer size required for encoding a frame in JPEGE mode. The Atlas 200/300/500 Inference Product does not support this API in the current version. The Atlas Training Series Product does not support this API in the current version. |
Input Description |
frame: int, original image information dictionary. For details, see hi_video_frame_info. jpeg_param: dict, dictionary of the advanced parameters of a JPEG encoding channel. This parameter is reserved. |
Return Value |
ret: int, error code.
size: output buffer size. The unit is byte. |