private void NextCode(out short _code, bool compat)
{
if (LZW_CHECKEOS)
{
if (m_dec_bitsleft < m_nbits)
{
Tiff.ErrorExt(m_tif, m_tif.m_clientdata, m_tif.m_name,
"LZWDecode: Strip {0} not terminated with EOI code", m_tif.m_curstrip);
_code = CODE_EOI;
}
else
{
if (compat)
GetNextCodeCompat(out _code);
else
GetNextCode(out _code);
m_dec_bitsleft -= m_nbits;
}
}
else
{
if (compat)
GetNextCodeCompat(out _code);
else
GetNextCode(out _code);
}
}