public huff_entropy_encoder(jpeg_compress_struct cinfo)
{
m_cinfo = cinfo;
/* Mark tables unallocated */
for (int i = 0; i < JpegConstants.NUM_HUFF_TBLS; i++)
{
m_dc_derived_tbls[i] = m_ac_derived_tbls[i] = null;
m_dc_count_ptrs[i] = m_ac_count_ptrs[i] = null;
}
if (m_cinfo.m_progressive_mode)
{
/* needed only in AC refinement scan */
bit_buffer = null;
}
}