TIFFquery.3tiff.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <!-- Creator : groff version 1.18.1 -->
  2. <!-- CreationDate: Sat Feb 24 18:37:16 2007 -->
  3. <html>
  4. <head>
  5. <meta name="generator" content="groff -Thtml, see www.gnu.org">
  6. <meta name="Content-Style" content="text/css">
  7. <title>QUERY</title>
  8. </head>
  9. <body>
  10. <h1 align=center>QUERY</h1>
  11. <a href="#NAME">NAME</a><br>
  12. <a href="#SYNOPSIS">SYNOPSIS</a><br>
  13. <a href="#DESCRIPTION">DESCRIPTION</a><br>
  14. <a href="#DIAGNOSTICS">DIAGNOSTICS</a><br>
  15. <a href="#SEE ALSO">SEE ALSO</a><br>
  16. <hr>
  17. <a name="NAME"></a>
  18. <h2>NAME</h2>
  19. <!-- INDENTATION -->
  20. <table width="100%" border=0 rules="none" frame="void"
  21. cols="2" cellspacing="0" cellpadding="0">
  22. <tr valign="top" align="left">
  23. <td width="8%"></td>
  24. <td width="91%">
  25. <p>TIFFCurrentRow, TIFFCurrentStrip, TIFFCurrentTile,
  26. TIFFCurrentDirectory, TIFFLastDirectory, TIFFFileno,
  27. TIFFFileName, TIFFGetMode, TIFFIsTiled, TIFFIsByteSwapped,
  28. TIFFIsUpSampled, TIFFIsMSB2LSB, TIFFGetVersion &minus; query
  29. routines</p>
  30. </td>
  31. </table>
  32. <a name="SYNOPSIS"></a>
  33. <h2>SYNOPSIS</h2>
  34. <!-- INDENTATION -->
  35. <table width="100%" border=0 rules="none" frame="void"
  36. cols="2" cellspacing="0" cellpadding="0">
  37. <tr valign="top" align="left">
  38. <td width="8%"></td>
  39. <td width="91%">
  40. <p><b>#include &lt;tiffio.h&gt;</b></p>
  41. <!-- INDENTATION -->
  42. <p><b>uint32_t TIFFCurrentRow(TIFF*</b> <i>tif</i><b>)<br>
  43. tstrip_t TIFFCurrentStrip(TIFF*</b> <i>tif</i><b>)<br>
  44. ttile_t TIFFCurrentTile(TIFF*</b> <i>tif</i><b>)<br>
  45. tdir_t TIFFCurrentDirectory(TIFF*</b> <i>tif</i><b>)<br>
  46. int TIFFLastDirectory(TIFF*</b> <i>tif</i><b>)<br>
  47. int TIFFFileno(TIFF*</b> <i>tif</i><b>)<br>
  48. char* TIFFFileName(TIFF*</b> <i>tif</i><b>)<br>
  49. int TIFFGetMode(TIFF*</b> <i>tif</i><b>)<br>
  50. int TIFFIsTiled(TIFF*</b> <i>tif</i><b>)<br>
  51. int TIFFIsByteSwapped(TIFF*</b> <i>tif</i><b>)<br>
  52. int TIFFIsUpSampled(TIFF*</b> <i>tif</i><b>)<br>
  53. int TIFFIsMSB2LSB(TIFF*</b> <i>tif</i><b>)<br>
  54. const char* TIFFGetVersion(void)</b></p>
  55. </td>
  56. </table>
  57. <a name="DESCRIPTION"></a>
  58. <h2>DESCRIPTION</h2>
  59. <!-- INDENTATION -->
  60. <table width="100%" border=0 rules="none" frame="void"
  61. cols="2" cellspacing="0" cellpadding="0">
  62. <tr valign="top" align="left">
  63. <td width="8%"></td>
  64. <td width="91%">
  65. <p>The following routines return status information about an
  66. open <small>TIFF</small> file.</p>
  67. <!-- INDENTATION -->
  68. <p><i>TIFFCurrentDirectory</i> returns the index of the
  69. current directory (directories are numbered starting at 0).
  70. This number is suitable for use with the
  71. <i>TIFFSetDirectory</i> routine.</p>
  72. <!-- INDENTATION -->
  73. <p><i>TIFFLastDirectory</i> returns a non-zero value if the
  74. current directory is the last directory in the file;
  75. otherwise zero is returned.</p>
  76. <!-- INDENTATION -->
  77. <p><i>TIFFCurrentRow</i>, <i>TIFFCurrentStrip</i>, and
  78. <i>TIFFCurrentTile</i>, return the current row, strip, and
  79. tile, respectively, that is being read or written. These
  80. values are updated each time a read or write is done.</p>
  81. <!-- INDENTATION -->
  82. <p><i>TIFFFileno</i> returns the underlying file descriptor
  83. used to access the <small>TIFF</small> image in the
  84. filesystem.</p>
  85. <!-- INDENTATION -->
  86. <p><i>TIFFFileName</i> returns the pathname argument passed
  87. to <i>TIFFOpen</i> or <i>TIFFFdOpen</i>.</p>
  88. <!-- INDENTATION -->
  89. <p><i>TIFFGetMode</i> returns the mode with which the
  90. underlying file was opened. On <small>UNIX</small> systems,
  91. this is the value passed to the <i>open</i>(2) system
  92. call.</p>
  93. <!-- INDENTATION -->
  94. <p><i>TIFFIsTiled</i> returns a non-zero value if the image
  95. data has a tiled organization. Zero is returned if the image
  96. data is organized in strips.</p>
  97. <!-- INDENTATION -->
  98. <p><i>TIFFIsByteSwapped</i> returns a non-zero value if the
  99. image data was in a different byte-order than the host
  100. machine. Zero is returned if the TIFF file and local host
  101. byte-orders are the same. Note that TIFFReadTile(),
  102. TIFFReadStrip() and TIFFReadScanline() functions already
  103. normally perform byte swapping to local host order if
  104. needed.</p>
  105. <!-- INDENTATION -->
  106. <p><i>TIFFIsUpSampled</i> returns a non-zero value if image
  107. data returned through the read interface routines is being
  108. up-sampled. This can be useful to applications that want to
  109. calculate I/O buffer sizes to reflect this usage (though the
  110. usual strip and tile size routines already do this).</p>
  111. <!-- INDENTATION -->
  112. <p><i>TIFFIsMSB2LSB</i> returns a non-zero value if the
  113. image data is being returned with bit 0 as the most
  114. significant bit.</p>
  115. <!-- INDENTATION -->
  116. <p><i>TIFFGetVersion</i> returns an <small>ASCII</small>
  117. string that has a version stamp for the <small>TIFF</small>
  118. library software.</p>
  119. </td>
  120. </table>
  121. <a name="DIAGNOSTICS"></a>
  122. <h2>DIAGNOSTICS</h2>
  123. <!-- INDENTATION -->
  124. <table width="100%" border=0 rules="none" frame="void"
  125. cols="2" cellspacing="0" cellpadding="0">
  126. <tr valign="top" align="left">
  127. <td width="8%"></td>
  128. <td width="91%">
  129. <p>None.</p>
  130. </td>
  131. </table>
  132. <a name="SEE ALSO"></a>
  133. <h2>SEE ALSO</h2>
  134. <!-- INDENTATION -->
  135. <table width="100%" border=0 rules="none" frame="void"
  136. cols="2" cellspacing="0" cellpadding="0">
  137. <tr valign="top" align="left">
  138. <td width="8%"></td>
  139. <td width="91%">
  140. <p><i>libtiff</i>(3TIFF), <i>TIFFOpen</i>(3TIFF),
  141. <i>TIFFFdOpen</i>(3TIFF)</p>
  142. </td>
  143. </table>
  144. <hr>
  145. </body>
  146. </html>