private bool first_marker()
{
int c;
if (!m_cinfo.m_src.GetByte(out c))
return false;
int c2;
if (!m_cinfo.m_src.GetByte(out c2))
return false;
if (c != 0xFF || c2 != (int)JPEG_MARKER.SOI)
m_cinfo.ERREXIT(J_MESSAGE_CODE.JERR_NO_SOI, c, c2);
m_cinfo.m_unread_marker = c2;
return true;
}
}