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