private void initialize()
{
/* Zero out pointers to permanent structures. */
m_progress = null;
m_src = null;
for (int i = 0; i < JpegConstants.NUM_QUANT_TBLS; i++)
m_quant_tbl_ptrs[i] = null;
for (int i = 0; i < JpegConstants.NUM_HUFF_TBLS; i++)
{
m_dc_huff_tbl_ptrs[i] = null;
m_ac_huff_tbl_ptrs[i] = null;
}
/* Initialize marker processor so application can override methods
* for COM, APPn markers before calling jpeg_read_header.
*/
m_marker_list = new List<jpeg_marker_struct>();
m_marker = new jpeg_marker_reader(this);
/* And initialize the overall input controller. */
m_inputctl = new jpeg_input_controller(this);
/* OK, I'm ready */
m_global_state = JpegState.DSTATE_START;
}