📄 tiffquery.3t
字号:
.\" $Header: /cvsroot/osrs/libtiff/man/TIFFquery.3t,v 1.2 1999/11/24 17:08:30 warmerda Exp $.\".\" Copyright (c) 1988-1997 Sam Leffler.\" Copyright (c) 1991-1997 Silicon Graphics, Inc..\".\" Permission to use, copy, modify, distribute, and sell this software and .\" its documentation for any purpose is hereby granted without fee, provided.\" that (i) the above copyright notices and this permission notice appear in.\" all copies of the software and related documentation, and (ii) the names of.\" Sam Leffler and Silicon Graphics may not be used in any advertising or.\" publicity relating to the software without the specific, prior written.\" permission of Sam Leffler and Silicon Graphics..\" .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. .\" .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR.\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,.\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,.\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE .\" OF THIS SOFTWARE..\".if n .po 0.TH QUERY 3T "October 15, 1995".SH NAMETIFFCurrentRow,TIFFCurrentStrip,TIFFCurrentTile,TIFFCurrentDirectory,TIFFLastDirectory,TIFFFileno,TIFFFileName,TIFFGetMode,TIFFIsTiled,TIFFIsByteSwapped,TIFFIsUpSampled,TIFFIsMSB2LSB\- query routines.SH SYNOPSIS.nf.B "#include <tiffio.h>".B "uint32 TIFFCurrentRow(TIFF* tif)".B "tstrip_t TIFFCurrentStrip(TIFF* tif)".B "ttile_t TIFFCurrentTile(TIFF* tif)".B "tdir_t TIFFCurrentDirectory(TIFF* tif)".B "int TIFFLastDirectory(TIFF* tif)".B "int TIFFFileno(TIFF* tif)".B "char* TIFFFileName(TIFF* tif)".B "int TIFFGetMode(TIFF* tif)".B "int TIFFIsTiled(TIFF* tif)".B "int TIFFIsByteSwapped(TIFF* tif)".B "int TIFFIsUpSampled(TIFF* tif)".B "int TIFFIsMSB2LSB(TIFF* tif)".B "const char* TIFFGetVersion(void)".fi.SH DESCRIPTIONThe following routines return status information about an open.SM TIFFfile..PP.IR TIFFCurrentDirectoryreturns the index of the current directory (directoriesare numbered starting at 0).This number is suitable for use with the.IR TIFFSetDirectoryroutine..PP.IR TIFFLastDirectoryreturns a non-zero value if the current directory is thelast directory in the file;otherwise zero is returned..PP.IR TIFFCurrentRow ,.IR TIFFCurrentStrip ,and.IR TIFFCurrentTile ,return the current row, strip, and tile, respectively,that is being read or written.These values are updated each time a read or write is done..PP.IR TIFFFilenoreturns the underlying file descriptor used to access the .SM TIFFimage in the filesystem..PP.IR TIFFFileNamereturns the pathname argument passed to.IR TIFFOpenor.IR TIFFFdOpen ..PP.IR TIFFGetModereturns the mode with which the underlying file was opened.On.SM UNIXsystems, this is the value passed to the.IR open (2)system call..PP.IR TIFFIsTiledreturns a non-zero value if the image data hasa tiled organization.Zero is returned if the image data is organized in strips..PP.IR TIFFIsByteSwappedreturns a non-zero value if the image data was in a differentbyte-order than the host machine.Zero is returned if the TIFF file and local host byte-ordersare the same. Note that TIFFReadTile(), TIFFReadStrip() andTIFFReadScanline() functions already normally perform byteswapping to local host order if needed..PP.I TIFFIsUpSampledreturns a non-zero value if image data returned through theread interface routines is being up-sampled.This can be useful to applications that want to calculateI/O buffer sizes to reflect this usage (though the usualstrip and tile size routines already do this)..PP.I TIFFIsMSB2LSBreturns a non-zero value if the image data is being returned withbit 0 as the most significant bit..PP.IR TIFFGetVersionreturns an.SM ASCIIstring that has a version stamp for the .SM TIFFlibrary software..SH DIAGNOSTICSNone..SH "SEE ALSO".IR libtiff (3T),.IR TIFFOpen (3T),.IR TIFFFdOpen (3T)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -