2 .\" Copyright (c) 1988-1997 Sam Leffler
3 .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
5 .\" Permission to use, copy, modify, distribute, and sell this software and
6 .\" its documentation for any purpose is hereby granted without fee, provided
7 .\" that (i) the above copyright notices and this permission notice appear in
8 .\" all copies of the software and related documentation, and (ii) the names of
9 .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
10 .\" publicity relating to the software without the specific, prior written
11 .\" permission of Sam Leffler and Silicon Graphics.
13 .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
14 .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
15 .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
17 .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
18 .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
19 .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
20 .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
21 .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
25 .TH QUERY 3TIFF "October 29, 2004" "libtiff"
42 .B "#include <tiffio.h>"
44 .BI "uint32 TIFFCurrentRow(TIFF* " tif ")"
46 .BI "tstrip_t TIFFCurrentStrip(TIFF* " tif ")"
48 .BI "ttile_t TIFFCurrentTile(TIFF* " tif ")"
50 .BI "tdir_t TIFFCurrentDirectory(TIFF* " tif ")"
52 .BI "int TIFFLastDirectory(TIFF* " tif ")"
54 .BI "int TIFFFileno(TIFF* " tif ")"
56 .BI "char* TIFFFileName(TIFF* " tif ")"
58 .BI "int TIFFGetMode(TIFF* " tif ")"
60 .BI "int TIFFIsTiled(TIFF* " tif ")"
62 .BI "int TIFFIsByteSwapped(TIFF* " tif ")"
64 .BI "int TIFFIsUpSampled(TIFF* " tif ")"
66 .BI "int TIFFIsMSB2LSB(TIFF* " tif ")"
68 .BI "const char* TIFFGetVersion(void)"
70 The following routines return status information about an open
74 .IR TIFFCurrentDirectory
75 returns the index of the current directory (directories are numbered starting
76 at 0). This number is suitable for use with the
81 returns a non-zero value if the current directory is the last directory in the
82 file; otherwise zero is returned.
85 .IR TIFFCurrentStrip ,
88 return the current row, strip, and tile, respectively, that is being read or
89 written. These values are updated each time a read or write is done.
92 returns the underlying file descriptor used to access the
94 image in the filesystem.
97 returns the pathname argument passed to
103 returns the mode with which the underlying file was opened. On
105 systems, this is the value passed to the
110 returns a non-zero value if the image data has a tiled organization. Zero is
111 returned if the image data is organized in strips.
113 .IR TIFFIsByteSwapped
114 returns a non-zero value if the image data was in a different byte-order than
115 the host machine. Zero is returned if the TIFF file and local host byte-orders
116 are the same. Note that TIFFReadTile(), TIFFReadStrip() and
117 TIFFReadScanline() functions already normally perform byte swapping to local
118 host order if needed.
121 returns a non-zero value if image data returned through the read interface
122 routines is being up-sampled. This can be useful to applications that want to
123 calculate I/O buffer sizes to reflect this usage (though the usual strip and
124 tile size routines already do this).
127 returns a non-zero value if the image data is being returned with bit 0 as the
128 most significant bit.
133 string that has a version stamp for the
140 .IR TIFFOpen (3TIFF),
141 .IR TIFFFdOpen (3TIFF)