// Set state to appear as if a // tile has just been read in. static bool TIFFStartTile(TIFF tif, uint tile) { TIFFDirectory td = tif.tif_dir; if ((tif.tif_flags & TIF_FLAGS.TIFF_CODERSETUP) == 0) { if (!tif.tif_setupdecode(tif)) { return(false); } tif.tif_flags |= TIF_FLAGS.TIFF_CODERSETUP; } tif.tif_curtile = tile; tif.tif_row = (tile % TIFFhowmany(td.td_imagewidth, td.td_tilewidth)) * td.td_tilelength; tif.tif_col = (tile % TIFFhowmany(td.td_imagelength, td.td_tilelength)) * td.td_tilewidth; if ((tif.tif_flags & TIF_FLAGS.TIFF_NOREADRAW) == TIF_FLAGS.TIFF_NOREADRAW) { tif.tif_rawdata = null; // ????? tif.tif_rawcp = 0; tif.tif_rawcc = 0; } else { tif.tif_rawcp = 0; //was tif.tif_rawdata; tif.tif_rawcc = td.td_stripbytecount[tile]; } return(tif.tif_predecode(tif, (ushort)(tile / td.td_stripsperimage))); }
// Set state to appear as if a // strip has just been read in. static bool TIFFStartStrip(TIFF tif, uint strip) { TIFFDirectory td = tif.tif_dir; if ((tif.tif_flags & TIF_FLAGS.TIFF_CODERSETUP) == 0) { if (!tif.tif_setupdecode(tif)) { return(false); } tif.tif_flags |= TIF_FLAGS.TIFF_CODERSETUP; } tif.tif_curstrip = strip; tif.tif_row = (strip % td.td_stripsperimage) * td.td_rowsperstrip; if ((tif.tif_flags & TIF_FLAGS.TIFF_NOREADRAW) == TIF_FLAGS.TIFF_NOREADRAW) { tif.tif_rawdata = null; // ????? tif.tif_rawcp = 0; tif.tif_rawcc = 0; } else { tif.tif_rawcp = 0; //was tif.tif_rawdata; tif.tif_rawcc = td.td_stripbytecount[strip]; } return(tif.tif_predecode(tif, (ushort)(strip / td.td_stripsperimage))); }
// Set state to appear as if a // tile has just been read in. static bool TIFFStartTile(TIFF tif, uint tile) { TIFFDirectory td=tif.tif_dir; if((tif.tif_flags&TIF_FLAGS.TIFF_CODERSETUP)==0) { if(!tif.tif_setupdecode(tif)) return false; tif.tif_flags|=TIF_FLAGS.TIFF_CODERSETUP; } tif.tif_curtile=tile; tif.tif_row=(tile%TIFFhowmany(td.td_imagewidth, td.td_tilewidth))*td.td_tilelength; tif.tif_col=(tile%TIFFhowmany(td.td_imagelength, td.td_tilelength))*td.td_tilewidth; if((tif.tif_flags&TIF_FLAGS.TIFF_NOREADRAW)==TIF_FLAGS.TIFF_NOREADRAW) { tif.tif_rawdata=null; // ????? tif.tif_rawcp=0; tif.tif_rawcc=0; } else { tif.tif_rawcp=0; //was tif.tif_rawdata; tif.tif_rawcc=td.td_stripbytecount[tile]; } return tif.tif_predecode(tif, (ushort)(tile/td.td_stripsperimage)); }
// Set state to appear as if a // strip has just been read in. static bool TIFFStartStrip(TIFF tif, uint strip) { TIFFDirectory td=tif.tif_dir; if((tif.tif_flags&TIF_FLAGS.TIFF_CODERSETUP)==0) { if(!tif.tif_setupdecode(tif)) return false; tif.tif_flags|=TIF_FLAGS.TIFF_CODERSETUP; } tif.tif_curstrip=strip; tif.tif_row=(strip%td.td_stripsperimage)*td.td_rowsperstrip; if((tif.tif_flags&TIF_FLAGS.TIFF_NOREADRAW)==TIF_FLAGS.TIFF_NOREADRAW) { tif.tif_rawdata=null; // ????? tif.tif_rawcp=0; tif.tif_rawcc=0; } else { tif.tif_rawcp=0; //was tif.tif_rawdata; tif.tif_rawcc=td.td_stripbytecount[strip]; } return tif.tif_predecode(tif, (ushort)(strip/td.td_stripsperimage)); }