venc_compact_jpeg_tables
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
功能说明
配置是否对高级参数huffman或QT表进行压缩。
函数原型
- C函数原型
1
hi_s32 hi_mpi_venc_compact_jpeg_tables(hi_venc_chn chn, hi_u32 table_type, hi_bool enable);
- python函数
1
ret = acl.himpi.venc_compact_jpeg_tables(chn, table_type, enable)
参数说明
参数名 |
说明 |
---|---|
chn |
int,解码通道号。
|
table_type |
int,压缩类型,仅支持设置为0,表示huffman表数据和QT量化表数据都压缩。 |
enable |
int,是否压缩,0表示不压缩,1表示压缩。 |
返回值说明
返回值 |
说明 |
---|---|
ret |
int,错误码。
|
约束说明
本接口在编码通道创建之后、编码通道销毁之前调用。
调用此接口后,如果huffman表或QT表的Y、Cb、Cr分量内容一致时,支持压缩。
父主题: VENC视频/JPEGE图像编码接口