venc_get_jpege_predicted_size
产品支持情况
产品  | 
是否支持  | 
|---|---|
√  | 
|
√  | 
|
x  | 
|
√  | 
|
√  | 
|
x  | 
使用说明
c函数原型  | 
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函数  | 
size, ret = acl.himpi.venc_get_jpege_predicted_size(frame, jpeg_param)  | 
函数功能  | 
预估JPEGE编码一帧图片所需的输出缓冲区大小。  | 
输入说明  | 
frame:dict,原始图像信息字典,具体请参见hi_video_frame_info。 jpeg_param:dict,JPEG协议编码通道的高级参数集合字典,预留参数。具体请参见hi_venc_jpeg_param。  | 
返回值说明  | 
size:int,输出缓冲区大小,单位为Byte。 ret:int,错误码。 
  | 
父主题: VENC视频/JPEGE图像编码接口