TIFFbuffer.3tiff.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!-- Creator : groff version 1.18.1 -->
  2. <!-- CreationDate: Sat Feb 24 18:37:15 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>TIFFBUFFER</title>
  8. </head>
  9. <body>
  10. <h1 align=center>TIFFBUFFER</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>TIFFReadBufferSetup, TIFFWriteBufferSetup &minus; I/O
  26. buffering control routines</p>
  27. </td>
  28. </table>
  29. <a name="SYNOPSIS"></a>
  30. <h2>SYNOPSIS</h2>
  31. <!-- INDENTATION -->
  32. <table width="100%" border=0 rules="none" frame="void"
  33. cols="2" cellspacing="0" cellpadding="0">
  34. <tr valign="top" align="left">
  35. <td width="8%"></td>
  36. <td width="91%">
  37. <pre><b>#include &lt;tiffio.h&gt;
  38. int TIFFReadBufferSetup(TIFF *</b><i>tif</i><b>, tdata_t</b> <i>buffer</i><b>, tsize_t</b> <i>size</i><b>);
  39. int TIFFWriteBufferSetup(TIFF *</b><i>tif</i><b>, tdata_t</b> <i>buffer</i><b>, tsize_t</b> <i>size</i><b>);
  40. </b></pre>
  41. </td>
  42. </table>
  43. <a name="DESCRIPTION"></a>
  44. <h2>DESCRIPTION</h2>
  45. <!-- INDENTATION -->
  46. <table width="100%" border=0 rules="none" frame="void"
  47. cols="2" cellspacing="0" cellpadding="0">
  48. <tr valign="top" align="left">
  49. <td width="8%"></td>
  50. <td width="91%">
  51. <p>The following routines are provided for client-control of
  52. the I/O buffers used by the library. Applications need never
  53. use these routines; they are provided only for
  54. &lsquo;&lsquo;intelligent clients&rsquo;&rsquo; that wish to
  55. optimize memory usage and/or eliminate potential copy
  56. operations that can occur when working with images that have
  57. data stored without compression.</p>
  58. <!-- INDENTATION -->
  59. <p><i>TIFFReadBufferSetup</i> sets up the data buffer used
  60. to read raw (encoded) data from a file. If the specified
  61. pointer is <small>NULL</small> (zero), then a buffer of the
  62. appropriate size is allocated. Otherwise the caller must
  63. guarantee that the buffer is large enough to hold any
  64. individual strip of raw data. <i>TIFFReadBufferSetup</i>
  65. returns a non-zero value if the setup was successful and
  66. zero otherwise.</p>
  67. <!-- INDENTATION -->
  68. <p><i>TIFFWriteBufferSetup</i> sets up the data buffer used
  69. to write raw (encoded) data to a file. If the specified
  70. <i>size</i> is &minus;1 then the buffer size is selected to
  71. hold a complete tile or strip, or at least 8 kilobytes,
  72. whichever is greater. If the specified <i>buffer</i> is
  73. <small>NULL</small> (zero), then a buffer of the appropriate
  74. size is dynamically allocated. <i>TIFFWriteBufferSetup</i>
  75. returns a non-zero value if the setup was successful and
  76. zero otherwise.</p>
  77. </td>
  78. </table>
  79. <a name="DIAGNOSTICS"></a>
  80. <h2>DIAGNOSTICS</h2>
  81. <!-- INDENTATION -->
  82. <table width="100%" border=0 rules="none" frame="void"
  83. cols="2" cellspacing="0" cellpadding="0">
  84. <tr valign="top" align="left">
  85. <td width="8%"></td>
  86. <td width="91%">
  87. <p><b>%s: No space for data buffer at scanline %ld</b>.
  88. <i>TIFFReadBufferSetup</i> was unable to dynamically
  89. allocate space for a data buffer.</p>
  90. <!-- INDENTATION -->
  91. <p><b>%s: No space for output buffer</b>.
  92. <i>TIFFWriteBufferSetup</i> was unable to dynamically
  93. allocate space for a data buffer.</p>
  94. </td>
  95. </table>
  96. <a name="SEE ALSO"></a>
  97. <h2>SEE ALSO</h2>
  98. <!-- INDENTATION -->
  99. <table width="100%" border=0 rules="none" frame="void"
  100. cols="2" cellspacing="0" cellpadding="0">
  101. <tr valign="top" align="left">
  102. <td width="8%"></td>
  103. <td width="91%">
  104. <p><b>libtiff</b>(3TIFF)</p>
  105. <!-- INDENTATION -->
  106. <p>Libtiff library home page:
  107. <b>http://www.simplesystems.org/libtiff/</b></p>
  108. </td>
  109. </table>
  110. <hr>
  111. </body>
  112. </html>