BitMiracle.LibJpeg.Classic.jpeg_compress_struct.jpeg_suppress_tables C# (CSharp) Method

jpeg_suppress_tables() public method

Forcibly suppress or un-suppress all quantization and Huffman tables.
Marks all currently defined tables as already written (if suppress) or not written (if !suppress). This will control whether they get emitted by a subsequent jpeg_compress_struct.jpeg_start_compress call.
This routine is exported for use by applications that want to produce abbreviated JPEG datastreams.
public jpeg_suppress_tables ( bool suppress ) : void
suppress bool if set to true then suppress tables; /// otherwise unsuppress.
return void
        public void jpeg_suppress_tables(bool suppress)
        {
            for (int i = 0; i < JpegConstants.NUM_QUANT_TBLS; i++)
            {
                if (m_quant_tbl_ptrs[i] != null)
                    m_quant_tbl_ptrs[i].Sent_table = suppress;
            }

            for (int i = 0; i < JpegConstants.NUM_HUFF_TBLS; i++)
            {
                if (m_dc_huff_tbl_ptrs[i] != null)
                    m_dc_huff_tbl_ptrs[i].Sent_table = suppress;

                if (m_ac_huff_tbl_ptrs[i] != null)
                    m_ac_huff_tbl_ptrs[i].Sent_table = suppress;
            }
        }