10139N/A<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
10139N/A<!--ArborText, Inc., 1988-1999, v.4002-->
13666N/A<!--ARC : LSARC 2003/085 libtiff, libjpeg, and libpng-->
10139N/A<!ENTITY synp-tt "SYNOPSIS">
10139N/A<!ENTITY cmd "TIFFquery">
10139N/A<!ENTITY % commonents SYSTEM "smancommon.ent">
10139N/A%commonents;
10139N/A<!ENTITY % gnomecommonents SYSTEM "gnomecommon.ent">
10139N/A%gnomecommonents;
10139N/A<!ENTITY % booktitles SYSTEM "booktitles.ent">
10139N/A%booktitles;
10139N/A<!ENTITY suncopy "Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved.">
10139N/A]>
10139N/A<?Pub UDT _bookmark _target>
10139N/A<?Pub Inc>
10139N/A<?PubInc>
10139N/A<refentry id="TIFFquery-3tiff">
10139N/A<!-- %Z%%M% %I% %E% SMI; -->
10139N/A<refmeta><refentrytitle>TIFFquery</refentrytitle><manvolnum>3tiff</manvolnum>
10139N/A<refmiscinfo class="date">01 Apr 2004</refmiscinfo>
10139N/A<refmiscinfo class="sectdesc">&man3;</refmiscinfo>
10139N/A<refmiscinfo class="software">&release;</refmiscinfo>
10139N/A<refmiscinfo class="arch">generic</refmiscinfo>
10139N/A<refmiscinfo class="copyright">&suncopy;</refmiscinfo>
10139N/A</refmeta>
10139N/A<indexterm><primary>TIFFquery</primary></indexterm><indexterm><primary>TIFFCurrentRow
10139N/A</primary></indexterm><indexterm><primary>TIFFCurrentStrip</primary></indexterm>
10139N/A<indexterm><primary>TIFFCurrentTile</primary></indexterm><indexterm><primary>
10139N/ATIFFCurrentDirectory</primary></indexterm><indexterm><primary>TIFFLastDirectory
10139N/A</primary></indexterm><indexterm><primary>TIFFFileno</primary></indexterm>
10139N/A<indexterm><primary>TIFFFileName</primary></indexterm><indexterm><primary>
10139N/ATIFFGetMode</primary></indexterm><indexterm><primary>TIFFIsTiled</primary>
10139N/A</indexterm><indexterm><primary>TIFFIsByteSwapped</primary></indexterm><indexterm>
10139N/A<primary>TIFFIsUpSampled</primary></indexterm><indexterm><primary>TIFFIsMSB2LSB
10139N/A</primary></indexterm><indexterm><primary>query routines</primary></indexterm>
10139N/A<refnamediv id="TIFFquery-3tiff-name"><refdescriptor>TIFFquery</refdescriptor>
10139N/A<refname>TIFFCurrentDirectory</refname><refname>TIFFCurrentRow</refname><refname>
10139N/ATIFFCurrentStrip</refname><refname>TIFFCurrentTile</refname><refname>TIFFFileName
10139N/A</refname><refname>TIFFFileno</refname><refname>TIFFGetMode</refname><refname>
10139N/ATIFFGetVersion</refname><refname>TIFFIsByteSwapped</refname><refname>TIFFIsMSB2LSB
10139N/A</refname><refname>TIFFIsTiled</refname><refname>TIFFIsUpSampled</refname>
10139N/A<refname>TIFFLastDirectory</refname><?Pub Caret><refpurpose>query routines
10139N/A</refpurpose></refnamediv>
10139N/A<refsect1 id="TIFFquery-3tiff-synp"><title>&synp-tt;</title>
10139N/A<programlisting>#include &lt;tiffio.h>
10139N/Auint32 TIFFCurrentRow(TIFF* tif)
10139N/Atstrip_t TIFFCurrentStrip(TIFF* tif)
10139N/Attile_t TIFFCurrentTile(TIFF* tif)
10139N/Atdir_t TIFFCurrentDirectory(TIFF* tif)
10139N/Aint TIFFLastDirectory(TIFF* tif)
10139N/Aint TIFFFileno(TIFF* tif)
10139N/Achar* TIFFFileName(TIFF* tif)
10139N/Aint TIFFGetMode(TIFF* tif)
10139N/Aint TIFFIsTiled(TIFF* tif)
10139N/Aint TIFFIsByteSwapped(TIFF* tif)
10139N/Aint TIFFIsUpSampled(TIFF* tif)
10139N/Aint TIFFIsMSB2LSB(TIFF* tif)
10139N/Aconst char* TIFFGetVersion(void)</programlisting>
10139N/A</refsect1>
10139N/A<refsect1 id="TIFFquery-3tiff-desc"><title>&desc-tt;</title>
10139N/A<para>The following routines return status information about an open TIFF
10139N/Afile.</para>
10139N/A<variablelist>
10139N/A<varlistentry><term><literal>TIFFCurrentDirectory</literal></term><listitem>
10139N/A<para>Returns the index of the current directory. Directories are numbered
10139N/Astarting at 0. This number is suitable for use with the <literal>TIFFSetDirectory
10139N/A</literal> routine.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><literal>TIFFLastDirectory</literal></term><listitem>
10139N/A<para>Returns a non-zero value if the current directory is the last directory
10139N/Ain the file. Otherwise, zero is returned.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><literal>TIFFCurrentRow</literal>, <literal>TIFFCurrentStrip
10139N/A</literal>, <literal>TIFFCurrentTile</literal></term><listitem><para>Returns
10139N/Athe current row, strip, and tile, respectively, that is being read or written.
10139N/AThese values are updated each time a read or write is performed.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><literal>TIFFFileno</literal></term><listitem><para>Returns
10139N/Athe underlying file descriptor used to access the TIFF image in the file system.
10139N/A</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><literal>TIFFFileName</literal></term><listitem><para>
10139N/AReturns the <literal>pathname</literal> argument passed to <literal>TIFFOpen
10139N/A</literal> or <literal>TIFFFdOpen</literal>.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><literal>TIFFGetMode</literal></term><listitem><para>
10139N/AReturns the mode with which the underlying file was opened. On UNIX systems,
10139N/Athis is the value passed to the <literal>open(2)</literal> system call.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><literal>TIFFIsTiled</literal></term><listitem><para>
10139N/AReturns a non-zero value if the image data has a tiled organization. Zero
10139N/Ais returned if the image data is organized in strips.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><literal>TIFFIsByteSwapped</literal></term><listitem>
10139N/A<para>Returns a non-zero value if the image data is in a different byte-order
10139N/Athan the host machine. Zero is returned if the TIFF file and local host byte-orders
10139N/Aare the same. Note that the <literal>TIFFReadTile()</literal>, <literal>TIFFReadStrip()
10139N/A</literal> and <literal>TIFFReadScanline()</literal> functions already normally
10139N/Aperform byte swapping to local host order if needed.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><literal>TIFFIsUpSampled</literal></term><listitem><para>
10139N/AReturns a non-zero value if image data returned through the read interface
10139N/Aroutines is being up-sampled. This can be useful to applications that want
10139N/Ato calculate I/O buffer sizes to reflect this usage, though the usual strip
10139N/Aand tile size routines already do this.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><literal>TIFFIsMSB2LSB</literal></term><listitem><para>
10139N/AReturns a non-zero value if the image data is being returned with bit 0 as
10139N/Athe most significant bit.</para>
10139N/A</listitem></varlistentry>
10139N/A<varlistentry><term><literal>TIFFGetVersion</literal></term><listitem><para>
10139N/AReturns an ASCII string that has a version stamp for the TIFF library software.
10139N/A</para>
10139N/A</listitem></varlistentry>
10139N/A</variablelist></refsect1>
10139N/A<refsect1 id="TIFFquery-3tiff-attr"><title>&attr-tt;</title>
10139N/A<para>See <olink targetdocent="REFMAN5" localinfo="attributes-5"><citerefentry>
10139N/A<refentrytitle>attributes</refentrytitle><manvolnum>5</manvolnum></citerefentry></olink>
10139N/Afor descriptions of the following attributes:</para>
10139N/A<informaltable frame="all">
10139N/A<tgroup cols="2" colsep="1" rowsep="1"><colspec colname="COLSPEC0" colwidth="1*">
10139N/A<colspec colname="COLSPEC1" colwidth="1*">
10139N/A<thead>
10139N/A<row><entry align="center" valign="middle">ATTRIBUTE TYPE</entry><entry align="center"
10139N/Avalign="middle">ATTRIBUTE VALUE</entry></row>
10139N/A</thead>
10139N/A<tbody>
18745N/A<row><entry><para>Availability</para></entry><entry><para>image/library/libtiff</para></entry>
10139N/A</row>
10139N/A<row><entry colname="COLSPEC0"><para>Interface stability</para></entry><entry
13623N/Acolname="COLSPEC1"><para>Uncommitted</para></entry></row>
10139N/A</tbody>
10139N/A</tgroup>
10139N/A</informaltable>
10139N/A</refsect1>
10139N/A<refsect1 id="TIFFquery-3tiff-also"><title>&also-tt;</title>
10139N/A<!--Reference to another man page-->
10139N/A<!--Reference to a Help manual-->
10139N/A<!--Reference to a book.-->
10139N/A<para><citerefentry><refentrytitle>libtiff</refentrytitle><manvolnum>3</manvolnum>
10139N/A</citerefentry>, <citerefentry><refentrytitle>TIFFOpen</refentrytitle><manvolnum>
10139N/A3tiff</manvolnum></citerefentry>, <citerefentry><refentrytitle>TIFFFdOpen
10139N/A</refentrytitle><manvolnum>3tiff</manvolnum></citerefentry></para>
10139N/A</refsect1>
10139N/A<refsect1 id="TIFFquery-3tiff-note"><title>&note-tt;</title>
10139N/A<para>This man page was originally written by Sam Leffler. Updated by Breda
10139N/AMcColgan, Sun Microsystems Inc., 2004.</para>
10139N/A</refsect1>
10139N/A</refentry>
10139N/A<?Pub *0000007651>