Home | History | Annotate | Download | only in libtiff

Lines Matching refs:tile

35 int TIFFFillTile(TIFF* tif, uint32 tile);
37 static int TIFFStartTile(TIFF* tif, uint32 tile);
628 * Tile-oriented Read Support
633 * Read and decompress a tile of data. The
634 * tile is selected by the (x,y,z,s) coordinates.
646 * Read a tile of data and decompress the specified
650 TIFFReadEncodedTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size)
658 if (tile >= td->td_nstrips) {
660 "%lu: Tile out of range, max %lu",
661 (unsigned long) tile, (unsigned long) td->td_nstrips);
668 if (TIFFFillTile(tif, tile) && (*tif->tif_decodetile)(tif,
669 (uint8*) buf, size, (uint16)(tile/td->td_stripsperimage))) {
677 TIFFReadRawTile1(TIFF* tif, uint32 tile, void* buf, tmsize_t size, const char* module)
688 if (!SeekOK(tif, td->td_stripoffset[tile])) {
690 "Seek error at row %lu, col %lu, tile %lu",
693 (unsigned long) tile);
718 ma=(tmsize_t)td->td_stripoffset[tile];
720 if (((uint64)ma!=td->td_stripoffset[tile])||(ma>tif->tif_size))
729 "Read error at row %lu, col %lu, tile %lu; got %I64u bytes, expected %I64u",
732 (unsigned long) tile,
737 "Read error at row %lu, col %lu, tile %lu; got %llu bytes, expected %llu",
740 (unsigned long) tile,
752 * Read a tile of data from the file.
755 TIFFReadRawTile(TIFF* tif, uint32 tile, void* buf, tmsize_t size)
764 if (tile >= td->td_nstrips) {
766 "%lu: Tile out of range, max %lu",
767 (unsigned long) tile, (unsigned long) td->td_nstrips);
776 bytecount64 = td->td_stripbytecount[tile];
785 return (TIFFReadRawTile1(tif, tile, buf, bytecountm, module));
789 * Read the specified tile and setup for decoding. The data buffer is
790 * expanded, as necessary, to hold the tile's data.
793 TIFFFillTile(TIFF* tif, uint32 tile)
803 uint64 bytecount = td->td_stripbytecount[tile];
807 "%I64u: Invalid tile byte count, tile %lu",
809 (unsigned long) tile);
812 "%llu: Invalid tile byte count, tile %lu",
814 (unsigned long) tile);
842 * td->td_stripoffset[tile]+bytecount > tif->tif_size
848 td->td_stripoffset[tile] > (uint64)tif->tif_size - bytecount) {
854 tif->tif_base + (tmsize_t)td->td_stripoffset[tile];
861 * tile coming from file (perhaps should set upper
875 "Data buffer too small to hold tile %lu",
876 (unsigned long) tile);
888 if (TIFFReadRawTile1(tif, tile, tif->tif_rawdata,
901 return (TIFFStartTile(tif, tile));
991 * tile has just been read in.
994 TIFFStartTile(TIFF* tif, uint32 tile)
1008 tif->tif_curtile = tile;
1014 tif->tif_row = (tile % howmany32) * td->td_tilelength;
1020 tif->tif_col = (tile % howmany32) * td->td_tilewidth;
1030 tif->tif_rawcc = (tmsize_t)td->td_stripbytecount[tile];
1033 (uint16)(tile/td->td_stripsperimage)));