venc_get_jpege_predicted_size
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Function Usage
Predicts the size of the output buffer required for encoding a frame in JPEGE mode.
Prototype
- C Prototype
1hi_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
1size, 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.
|
Parent topic: VENC/JPEGE APIs