---
title: hi_mpi_venc_compact_jpeg_tables
description: "配置是否对高级参数huffman或QT表进行压缩。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgc/aclcppdevg_03_1065.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgc/aclcppdevg_03_1065.html
indexId: 7ccbdc31fb82d40b5826767e5fa1dfb68dfdac7c3b5f629de4aefbf1da55b6c9105
---
# hi_mpi_venc_compact_jpeg_tables

#### 函数功能

配置是否对高级参数huffman或QT表进行压缩。


#### 约束说明

本接口在编码通道创建之后、编码通道销毁之前调用。

调用此接口后，如果huffman表或QT表的Y、Cb、Cr分量内容一致时，支持压缩。


#### 函数原型

hi_s32 hi_mpi_venc_compact_jpeg_tables(hi_venc_chn chn, hi_u32 table_type, hi_bool enable)


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| chn | 输入 | 编码通道号。 Atlas 200/500 A2推理产品，编码通道号的取值范围：[0, 128)，JPEGE功能和VENC功能共用通道，且通道总数最多128。 |
| table\_type | 输入 | 压缩类型，取值范围：仅支持0，表示huffman表数据和QT量化表数据都压缩。 |
| enable | 输入 | 是否压缩，0表示不压缩，1表示压缩。 |


#### 返回值说明

- 0：成功
- 非0：失败，参见  VENC视频编码/JPEGE图片编码返回码
