BitMiracle.LibJpeg.Classic.jpeg_decompress_struct.jpeg_has_multiple_scans C# (CSharp) Method

jpeg_has_multiple_scans() public method

Is there more than one scan?
If you are concerned about maximum performance on baseline JPEG files, you should use buffered-image mode only when the incoming file actually has multiple scans. This can be tested by calling this method.
public jpeg_has_multiple_scans ( ) : bool
return bool
        public bool jpeg_has_multiple_scans()
        {
            /* Only valid after jpeg_read_header completes */
            if (m_global_state < JpegState.DSTATE_READY || m_global_state > JpegState.DSTATE_STOPPING)
                ERREXIT(J_MESSAGE_CODE.JERR_BAD_STATE, (int)m_global_state);

            return m_inputctl.HasMultipleScans();
        }