1TIFFWriteEncodedTile(3TIFF)                        TIFFWriteEncodedTile(3TIFF)
2
3
4

NAME

6       TIFFWritedEncodedTile  -  compress  and write a tile of data to an open
7       TIFF file
8

SYNOPSIS

10       #include <tiffio.h>
11
12       tsize_t TIFFWriteEncodedTile(TIFF  *tif,  ttile_t  tile,  tdata_t  buf,
13       tsize_t size)
14

DESCRIPTION

16       Compress  size  bytes of raw data from buf and append the result to the
17       end of the specified tile. Note that the value of tile is a ``raw  tile
18       number.'' That is, the caller must take into account whether or not the
19       data are organized in separate places  (PlanarConfiguration=2).   TIFF‐
20       ComputeTile  automatically  does this when converting an (x,y,z,sample)
21       coordinate quadruple to a tile number.
22

NOTES

24       The library writes encoded data using the native  machine  byte  order.
25       Correctly  implemented  TIFF  readers  are expected to do any necessary
26       byte-swapping  to  correctly  process  image  data  with  BitsPerSample
27       greater than 8.
28

RETURN VALUES

30       -1  is  returned  if  an error was encountered. Otherwise, the value of
31       size is returned.
32

DIAGNOSTICS

34       All error messages are directed to the TIFFError(3TIFF) routine.
35
36       %s: File not open for writing.  The file was opened  for  reading,  not
37       writing.
38
39       Can  not  write  tiles to a stripped image.  The image is assumed to be
40       organized in strips because neither of the TileWidth or TileLength tags
41       have been set with TIFFSetField(3TIFF).
42
43       %s:  Must  set  "ImageWidth" before writing data. The image's width has
44       not be set before the first write. See TIFFSetField(3TIFF) for informa‐
45       tion on how to do this.
46
47       %s:  Must  set "PlanarConfiguration" before writing data. The organiza‐
48       tion of data has not be defined before the first  write.  See  TIFFSet‐
49       Field(3TIFF) for information on how to do this.
50
51       %s:  No  space  for  tile  arrays".  There was not enough space for the
52       arrays that hold tile offsets and byte counts.
53

SEE ALSO

55       TIFFOpen(3TIFF),     TIFFWriteTile(3TIFF),     TIFFWriteRawTile(3TIFF),
56       libtiff(3TIFF)
57
58       Libtiff library home page: http://www.simplesystems.org/libtiff/
59
60
61
62libtiff                        December 16, 1991   TIFFWriteEncodedTile(3TIFF)
Impressum