1 .\" $Id: TIFFquery.3tiff,v 1.1 2004-11-11 14:39:16 dron Exp $
3 .\" Copyright (c) 1988-1997 Sam Leffler
4 .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
6 .\" Permission to use, copy, modify, distribute, and sell this software and
7 .\" its documentation for any purpose is hereby granted without fee, provided
8 .\" that (i) the above copyright notices and this permission notice appear in
9 .\" all copies of the software and related documentation, and (ii) the names of
10 .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
11 .\" publicity relating to the software without the specific, prior written
12 .\" permission of Sam Leffler and Silicon Graphics.
14 .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
15 .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
16 .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
18 .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
19 .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
20 .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
21 .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
22 .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
26 .TH QUERY 3TIFF "October 29, 2004" "libtiff"
43 .B "#include <tiffio.h>"
45 .BI "uint32 TIFFCurrentRow(TIFF* " tif ")"
47 .BI "tstrip_t TIFFCurrentStrip(TIFF* " tif ")"
49 .BI "ttile_t TIFFCurrentTile(TIFF* " tif ")"
51 .BI "tdir_t TIFFCurrentDirectory(TIFF* " tif ")"
53 .BI "int TIFFLastDirectory(TIFF* " tif ")"
55 .BI "int TIFFFileno(TIFF* " tif ")"
57 .BI "char* TIFFFileName(TIFF* " tif ")"
59 .BI "int TIFFGetMode(TIFF* " tif ")"
61 .BI "int TIFFIsTiled(TIFF* " tif ")"
63 .BI "int TIFFIsByteSwapped(TIFF* " tif ")"
65 .BI "int TIFFIsUpSampled(TIFF* " tif ")"
67 .BI "int TIFFIsMSB2LSB(TIFF* " tif ")"
69 .BI "const char* TIFFGetVersion(void)"
71 The following routines return status information about an open
75 .IR TIFFCurrentDirectory
76 returns the index of the current directory (directories are numbered starting
77 at 0). This number is suitable for use with the
82 returns a non-zero value if the current directory is the last directory in the
83 file; otherwise zero is returned.
86 .IR TIFFCurrentStrip ,
89 return the current row, strip, and tile, respectively, that is being read or
90 written. These values are updated each time a read or write is done.
93 returns the underlying file descriptor used to access the
95 image in the filesystem.
98 returns the pathname argument passed to
104 returns the mode with which the underlying file was opened. On
106 systems, this is the value passed to the
111 returns a non-zero value if the image data has a tiled organization. Zero is
112 returned if the image data is organized in strips.
114 .IR TIFFIsByteSwapped
115 returns a non-zero value if the image data was in a different byte-order than
116 the host machine. Zero is returned if the TIFF file and local host byte-orders
117 are the same. Note that TIFFReadTile(), TIFFReadStrip() and
118 TIFFReadScanline() functions already normally perform byte swapping to local
119 host order if needed.
122 returns a non-zero value if image data returned through the read interface
123 routines is being up-sampled. This can be useful to applications that want to
124 calculate I/O buffer sizes to reflect this usage (though the usual strip and
125 tile size routines already do this).
128 returns a non-zero value if the image data is being returned with bit 0 as the
129 most significant bit.
134 string that has a version stamp for the
141 .IR TIFFOpen (3TIFF),
142 .IR TIFFFdOpen (3TIFF)