|
Packit |
994f1a |
.\" $Id: TIFFquery.3tiff,v 1.1 2004/11/11 14:39:16 dron Exp $
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" Copyright (c) 1988-1997 Sam Leffler
|
|
Packit |
994f1a |
.\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" Permission to use, copy, modify, distribute, and sell this software and
|
|
Packit |
994f1a |
.\" its documentation for any purpose is hereby granted without fee, provided
|
|
Packit |
994f1a |
.\" that (i) the above copyright notices and this permission notice appear in
|
|
Packit |
994f1a |
.\" all copies of the software and related documentation, and (ii) the names of
|
|
Packit |
994f1a |
.\" Sam Leffler and Silicon Graphics may not be used in any advertising or
|
|
Packit |
994f1a |
.\" publicity relating to the software without the specific, prior written
|
|
Packit |
994f1a |
.\" permission of Sam Leffler and Silicon Graphics.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
|
|
Packit |
994f1a |
.\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
|
|
Packit |
994f1a |
.\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
|
|
Packit |
994f1a |
.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
|
|
Packit |
994f1a |
.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
|
Packit |
994f1a |
.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
|
|
Packit |
994f1a |
.\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
|
|
Packit |
994f1a |
.\" OF THIS SOFTWARE.
|
|
Packit |
994f1a |
.\"
|
|
Packit |
994f1a |
.if n .po 0
|
|
Packit |
994f1a |
.TH QUERY 3TIFF "October 29, 2004" "libtiff"
|
|
Packit |
994f1a |
.SH NAME
|
|
Packit |
994f1a |
TIFFCurrentRow,
|
|
Packit |
994f1a |
TIFFCurrentStrip,
|
|
Packit |
994f1a |
TIFFCurrentTile,
|
|
Packit |
994f1a |
TIFFCurrentDirectory,
|
|
Packit |
994f1a |
TIFFLastDirectory,
|
|
Packit |
994f1a |
TIFFFileno,
|
|
Packit |
994f1a |
TIFFFileName,
|
|
Packit |
994f1a |
TIFFGetMode,
|
|
Packit |
994f1a |
TIFFIsTiled,
|
|
Packit |
994f1a |
TIFFIsByteSwapped,
|
|
Packit |
994f1a |
TIFFIsUpSampled,
|
|
Packit |
994f1a |
TIFFIsMSB2LSB,
|
|
Packit |
994f1a |
TIFFGetVersion
|
|
Packit |
994f1a |
\- query routines
|
|
Packit |
994f1a |
.SH SYNOPSIS
|
|
Packit |
994f1a |
.B "#include <tiffio.h>"
|
|
Packit |
994f1a |
.sp
|
|
Packit |
994f1a |
.BI "uint32 TIFFCurrentRow(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "tstrip_t TIFFCurrentStrip(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "ttile_t TIFFCurrentTile(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "tdir_t TIFFCurrentDirectory(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "int TIFFLastDirectory(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "int TIFFFileno(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "char* TIFFFileName(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "int TIFFGetMode(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "int TIFFIsTiled(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "int TIFFIsByteSwapped(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "int TIFFIsUpSampled(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "int TIFFIsMSB2LSB(TIFF* " tif ")"
|
|
Packit |
994f1a |
.br
|
|
Packit |
994f1a |
.BI "const char* TIFFGetVersion(void)"
|
|
Packit |
994f1a |
.SH DESCRIPTION
|
|
Packit |
994f1a |
The following routines return status information about an open
|
|
Packit |
994f1a |
.SM TIFF
|
|
Packit |
994f1a |
file.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.IR TIFFCurrentDirectory
|
|
Packit |
994f1a |
returns the index of the current directory (directories are numbered starting
|
|
Packit |
994f1a |
at 0). This number is suitable for use with the
|
|
Packit |
994f1a |
.IR TIFFSetDirectory
|
|
Packit |
994f1a |
routine.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.IR TIFFLastDirectory
|
|
Packit |
994f1a |
returns a non-zero value if the current directory is the last directory in the
|
|
Packit |
994f1a |
file; otherwise zero is returned.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.IR TIFFCurrentRow ,
|
|
Packit |
994f1a |
.IR TIFFCurrentStrip ,
|
|
Packit |
994f1a |
and
|
|
Packit |
994f1a |
.IR TIFFCurrentTile ,
|
|
Packit |
994f1a |
return the current row, strip, and tile, respectively, that is being read or
|
|
Packit |
994f1a |
written. These values are updated each time a read or write is done.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.IR TIFFFileno
|
|
Packit |
994f1a |
returns the underlying file descriptor used to access the
|
|
Packit |
994f1a |
.SM TIFF
|
|
Packit |
994f1a |
image in the filesystem.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.IR TIFFFileName
|
|
Packit |
994f1a |
returns the pathname argument passed to
|
|
Packit |
994f1a |
.IR TIFFOpen
|
|
Packit |
994f1a |
or
|
|
Packit |
994f1a |
.IR TIFFFdOpen .
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.IR TIFFGetMode
|
|
Packit |
994f1a |
returns the mode with which the underlying file was opened. On
|
|
Packit |
994f1a |
.SM UNIX
|
|
Packit |
994f1a |
systems, this is the value passed to the
|
|
Packit |
994f1a |
.IR open (2)
|
|
Packit |
994f1a |
system call.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.IR TIFFIsTiled
|
|
Packit |
994f1a |
returns a non-zero value if the image data has a tiled organization. Zero is
|
|
Packit |
994f1a |
returned if the image data is organized in strips.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.IR TIFFIsByteSwapped
|
|
Packit |
994f1a |
returns a non-zero value if the image data was in a different byte-order than
|
|
Packit |
994f1a |
the host machine. Zero is returned if the TIFF file and local host byte-orders
|
|
Packit |
994f1a |
are the same. Note that TIFFReadTile(), TIFFReadStrip() and
|
|
Packit |
994f1a |
TIFFReadScanline() functions already normally perform byte swapping to local
|
|
Packit |
994f1a |
host order if needed.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.I TIFFIsUpSampled
|
|
Packit |
994f1a |
returns a non-zero value if image data returned through the read interface
|
|
Packit |
994f1a |
routines is being up-sampled. This can be useful to applications that want to
|
|
Packit |
994f1a |
calculate I/O buffer sizes to reflect this usage (though the usual strip and
|
|
Packit |
994f1a |
tile size routines already do this).
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.I TIFFIsMSB2LSB
|
|
Packit |
994f1a |
returns a non-zero value if the image data is being returned with bit 0 as the
|
|
Packit |
994f1a |
most significant bit.
|
|
Packit |
994f1a |
.PP
|
|
Packit |
994f1a |
.IR TIFFGetVersion
|
|
Packit |
994f1a |
returns an
|
|
Packit |
994f1a |
.SM ASCII
|
|
Packit |
994f1a |
string that has a version stamp for the
|
|
Packit |
994f1a |
.SM TIFF
|
|
Packit |
994f1a |
library software.
|
|
Packit |
994f1a |
.SH DIAGNOSTICS
|
|
Packit |
994f1a |
None.
|
|
Packit |
994f1a |
.SH "SEE ALSO"
|
|
Packit |
994f1a |
.IR libtiff (3TIFF),
|
|
Packit |
994f1a |
.IR TIFFOpen (3TIFF),
|
|
Packit |
994f1a |
.IR TIFFFdOpen (3TIFF)
|