acl.himpi.venc_compact_jpeg_tables

C Prototype

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

Python Function

ret = acl.himpi.venc_compact_jpeg_tables(chn, table_type, enable)

Function Usage

Sets whether to compress Huffman and QT tables.

The Atlas 200/300/500 Inference Product does not support this API in the current version.

The Atlas Training Series Product does not support this API in the current version.

Input Description

chn: int, encoding channel ID.

table_type: int, compression type. It can only be set to 0, indicating that both the Huffman table data and QT quantization table data are compressed.

enable: int, compression enable. 0: disabled. 1: enabled.

Return Value

ret: int, error code.

Restrictions

This API must be called after an encoding channel is created and before the channel is destroyed.

After this API is called, compression is supported only if the Huffman/QT table has the same Y, Cb, and Cr components.