public override void PrintDir(Tiff tif, Stream fd, TiffPrintFlags flags)
{
CCITTCodec sp = tif.m_currentCodec as CCITTCodec;
Debug.Assert(sp != null);
if (tif.fieldSet(CCITTCodec.FIELD_OPTIONS))
{
string sep = " ";
if (tif.m_dir.td_compression == Compression.CCITTFAX4)
{
Tiff.fprintf(fd, " Group 4 Options:");
if ((sp.m_groupoptions & Group3Opt.UNCOMPRESSED) != 0)
Tiff.fprintf(fd, "{0}uncompressed data", sep);
}
else
{
Tiff.fprintf(fd, " Group 3 Options:");
if ((sp.m_groupoptions & Group3Opt.ENCODING2D) != 0)
{
Tiff.fprintf(fd, "{0}2-d encoding", sep);
sep = "+";
}
if ((sp.m_groupoptions & Group3Opt.FILLBITS) != 0)
{
Tiff.fprintf(fd, "{0}EOL padding", sep);
sep = "+";
}
if ((sp.m_groupoptions & Group3Opt.UNCOMPRESSED) != 0)
Tiff.fprintf(fd, "{0}uncompressed data", sep);
}
Tiff.fprintf(fd, " ({0} = 0x{1:x})\n", sp.m_groupoptions, sp.m_groupoptions);
}
if (tif.fieldSet(CCITTCodec.FIELD_CLEANFAXDATA))
{
Tiff.fprintf(fd, " Fax Data:");
switch (sp.m_cleanfaxdata)
{
case CleanFaxData.CLEAN:
Tiff.fprintf(fd, " clean");
break;
case CleanFaxData.REGENERATED:
Tiff.fprintf(fd, " receiver regenerated");
break;
case CleanFaxData.UNCLEAN:
Tiff.fprintf(fd, " uncorrected errors");
break;
}
Tiff.fprintf(fd, " ({0} = 0x{1:x})\n", sp.m_cleanfaxdata, sp.m_cleanfaxdata);
}
if (tif.fieldSet(CCITTCodec.FIELD_BADFAXLINES))
Tiff.fprintf(fd, " Bad Fax Lines: {0}\n", sp.m_badfaxlines);
if (tif.fieldSet(CCITTCodec.FIELD_BADFAXRUN))
Tiff.fprintf(fd, " Consecutive Bad Fax Lines: {0}\n", sp.m_badfaxrun);
if (tif.fieldSet(CCITTCodec.FIELD_RECVPARAMS))
Tiff.fprintf(fd, " Fax Receive Parameters: {0,8:x}\n", sp.m_recvparams);
if (tif.fieldSet(CCITTCodec.FIELD_SUBADDRESS))
Tiff.fprintf(fd, " Fax SubAddress: {0}\n", sp.m_subaddress);
if (tif.fieldSet(CCITTCodec.FIELD_RECVTIME))
Tiff.fprintf(fd, " Fax Receive Time: {0} secs\n", sp.m_recvtime);
if (tif.fieldSet(CCITTCodec.FIELD_FAXDCS))
Tiff.fprintf(fd, " Fax DCS: {0}\n", sp.m_faxdcs);
}