1TIFFWriteEncodedStrip(3TIFF)                      TIFFWriteEncodedStrip(3TIFF)
2
3
4

NAME

6       TIFFWritedEncodedStrip  - compress and write a strip of data to an open
7       TIFF file
8

SYNOPSIS

10       #include <tiffio.h>
11
12       tsize_t TIFFWriteEncodedStrip(TIFF *tif, tstrip_t strip,  tdata_t  buf,
13       tsize_t size)
14

DESCRIPTION

16       Compress  size  bytes  of raw data from buf and write the result to the
17       specified strip; replacing any previously written data. Note  that  the
18       value of strip is a ``raw strip number.'' That is, the caller must take
19       into account whether or not the data are organized in  separate  planes
20       (PlanarConfiguration=2).
21

NOTES

23       The  library  writes  encoded data using the native machine byte order.
24       Correctly implemented TIFF readers are expected  to  do  any  necessary
25       byte-swapping  to  correctly  process  image  data  with  BitsPerSample
26       greater than 8.
27
28       The strip number must be valid according to the current settings of the
29       ImageLength  and  RowsPerStrip tags.  An image may be dynamically grown
30       by  increasing  the  value  of  ImageLength  prior  to  each  call   to
31       TIFFWriteEncodedStrip.
32

RETURN VALUES

34       -1  is  returned  if  an error was encountered. Otherwise, the value of
35       size is returned.
36

DIAGNOSTICS

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

SEE ALSO

59       TIFFOpen(3TIFF),  TIFFWriteScanline(3TIFF),   TIFFWriteRawStrip(3TIFF),
60       libtiff(3TIFF)
61
62       Libtiff library home page: http://www.simplesystems.org/libtiff/
63
64
65
66libtiff                        October 15, 1995   TIFFWriteEncodedStrip(3TIFF)
Impressum