libtiff.3tiff 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544
  1. .\"
  2. .\" Copyright (c) 1988-1997 Sam Leffler
  3. .\" Copyright (c) 1991-1997 Silicon Graphics, Inc.
  4. .\"
  5. .\" Permission to use, copy, modify, distribute, and sell this software and
  6. .\" its documentation for any purpose is hereby granted without fee, provided
  7. .\" that (i) the above copyright notices and this permission notice appear in
  8. .\" all copies of the software and related documentation, and (ii) the names of
  9. .\" Sam Leffler and Silicon Graphics may not be used in any advertising or
  10. .\" publicity relating to the software without the specific, prior written
  11. .\" permission of Sam Leffler and Silicon Graphics.
  12. .\"
  13. .\" THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
  14. .\" EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
  15. .\" WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  16. .\"
  17. .\" IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. .\" ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. .\" OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. .\" WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF
  21. .\" LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
  22. .\" OF THIS SOFTWARE.
  23. .\"
  24. .if n .po 0
  25. .TH INTRO 3TIFF "November 2, 2005" "libtiff"
  26. .SH NAME
  27. libtiff \- introduction to
  28. .IR libtiff ,
  29. a library for reading and writing
  30. .SM TIFF
  31. files
  32. .SH SYNOPSIS
  33. .B "#include <tiffio.h>"
  34. .sp
  35. cc file.c
  36. .B -ltiff
  37. .SH DESCRIPTION
  38. .I libtiff
  39. is a library for reading and writing data files encoded with the
  40. .I "Tag Image File"
  41. format, Revision 6.0 (or revision 5.0 or revision 4.0). This file format is
  42. suitable for archiving multi-color and monochromatic image data.
  43. .PP
  44. The library supports several compression algorithms, as indicated by the
  45. .I Compression
  46. field, including:
  47. no compression (1),
  48. .SM CCITT
  49. 1D Huffman compression (2),
  50. .SM CCITT
  51. Group 3 Facsimile compression (3),
  52. .SM CCITT
  53. Group 4 Facsimile compression (4),
  54. Lempel-Ziv & Welch compression (5),
  55. baseline JPEG compression (7),
  56. word-aligned 1D Huffman compression (32771),
  57. and
  58. PackBits compression (32773).
  59. In addition, several nonstandard compression algorithms are supported: the
  60. 4-bit compression algorithm used by the
  61. .I ThunderScan
  62. program (32809) (decompression only), NeXT's 2-bit compression algorithm
  63. (32766) (decompression only), an experimental LZ-style algorithm known as
  64. Deflate (32946), and an experimental CIE LogLuv compression scheme designed
  65. for images with high dynamic range (32845 for LogL and 32845 for LogLuv).
  66. Directory information may be in either little- or big-endian byte order\-byte
  67. swapping is automatically done by the library. Data bit ordering may be either
  68. Most Significant Bit (\c
  69. .SM MSB\c
  70. ) to Least Significant Bit (\c
  71. .SM LSB\c
  72. ) or
  73. .SM LSB
  74. to
  75. .SM MSB.
  76. Finally, the library does not support files in which the
  77. .IR BitsPerSample ,
  78. .IR Compression ,
  79. .IR MinSampleValue ,
  80. or
  81. .IR MaxSampleValue
  82. fields are defined differently on a per-sample basis
  83. (in Rev. 6.0 the
  84. .I Compression
  85. tag is not defined on a per-sample basis, so this is immaterial).
  86. .SH "DATA TYPES"
  87. The library makes extensive use of C typedefs to promote portability.
  88. Two sets of typedefs are used, one for communication with clients
  89. of the library and one for internal data structures and parsing of the
  90. .SM TIFF
  91. format.
  92. The following typedefs are exposed to users either through function
  93. definitions or through parameters passed through the varargs interfaces.
  94. .in +.5i
  95. .sp 5p
  96. .ta +\w'typedef unsigned <\fIthing\fP> uint32_t; 'u
  97. .nf
  98. typedef unsigned short uint16_t; 16-bit unsigned integer
  99. typedef unsigned <\fIthing\fP> uint32_t; 32-bit unsigned integer
  100. .sp 5p
  101. typedef unsigned int ttag_t; directory tag
  102. typedef uint16_t tdir_t; directory index
  103. typedef uint16_t tsample_t; sample number
  104. typedef uint32_t tstrip_t; strip number
  105. typedef uint32_t ttile_t; tile number
  106. typedef int32_t tsize_t; i/o size in bytes
  107. typedef void* tdata_t; image data ref
  108. typedef void* thandle_t; client data handle
  109. typedef int32_t toff_t; file offset
  110. .fi
  111. .sp 5p
  112. .in -.5i
  113. Note that
  114. .IR tstrip_t ,
  115. .IR ttile_t ,
  116. and
  117. .I tsize_t
  118. are constrained to be no more than 32-bit quantities by 32-bit fields they are
  119. stored in in the
  120. .SM TIFF
  121. image.
  122. Likewise
  123. .I tsample_t
  124. is limited by the 16-bit field used to store the
  125. .I SamplesPerPixel
  126. tag.
  127. .I tdir_t
  128. constrains the maximum number of
  129. .SM IFDs
  130. that may appear in an image and may be an arbitrary size (w/o penalty).
  131. .I ttag_t
  132. must be either int, unsigned int, pointer, or double because the library uses
  133. a varargs interface and
  134. .SM "ANSI C"
  135. restricts the type of the parameter before an ellipsis to be a promoted type.
  136. .I toff_t
  137. is defined as int32_t because TIFF file offsets are (unsigned) 32-bit
  138. quantities. A signed value is used because some interfaces return \-1 on
  139. error. Finally, note that user-specified data references are passed as opaque
  140. handles and only cast at the lowest layers where their type is presumed.
  141. .SH "LIST OF ROUTINES"
  142. The following routines are part of the library. Consult specific manual pages
  143. for details on their operation; on most systems doing ``man function-name''
  144. will work.
  145. .sp
  146. .nf
  147. .ta \w'TIFFCheckpointDirectory'u+2n
  148. \fIName\fP \fIDescription\fP
  149. .sp 5p
  150. TIFFCheckpointDirectory writes the current state of the directory
  151. TIFFCheckTile very x,y,z,sample is within image
  152. TIFFCIELabToRGBInit initialize CIE L*a*b* 1976 to RGB conversion state
  153. TIFFCIELabToXYZ perform CIE L*a*b* 1976 to CIE XYZ conversion
  154. TIFFClientOpen open a file for reading or writing
  155. TIFFClose close an open file
  156. TIFFComputeStrip return strip containing y,sample
  157. TIFFComputeTile return tile containing x,y,z,sample
  158. TIFFCurrentDirectory return index of current directory
  159. TIFFCurrentRow return index of current scanline
  160. TIFFCurrentStrip return index of current strip
  161. TIFFCurrentTile return index of current tile
  162. TIFFDataWidth return the size of TIFF data types
  163. TIFFError library error handler
  164. TIFFFdOpen open a file for reading or writing
  165. TIFFFieldDataType get data type from field information
  166. TIFFFieldName get field name from field information
  167. TIFFFieldPassCount get whether to pass a value count to Get/SetField
  168. TIFFFieldReadCount get number of values to be read from field
  169. TIFFFieldTag get tag value from field information
  170. TIFFFieldWithName get field information given field name
  171. TIFFFieldWithTag get field information given tag
  172. TIFFFieldWriteCount get number of values to be written to field
  173. TIFFFileName return name of open file
  174. TIFFFileno return open file descriptor
  175. TIFFFindCODEC find standard codec for the specific scheme
  176. TIFFFindField get field information given tag and data type
  177. TIFFFlush flush all pending writes
  178. TIFFFlushData flush pending data writes
  179. TIFFGetBitRevTable return bit reversal table
  180. TIFFGetField return tag value in current directory
  181. TIFFGetFieldDefaulted return tag value in current directory
  182. TIFFGetMode return open file mode
  183. TIFFGetVersion return library version string
  184. TIFFIsCODECConfigured check, whether we have working codec
  185. TIFFIsMSB2LSB return true if image data is being returned
  186. with bit 0 as the most significant bit
  187. TIFFIsTiled return true if image data is tiled
  188. TIFFIsByteSwapped return true if image data is byte-swapped
  189. TIFFNumberOfStrips return number of strips in an image
  190. TIFFNumberOfTiles return number of tiles in an image
  191. TIFFOpen open a file for reading or writing
  192. TIFFPrintDirectory print description of the current directory
  193. TIFFReadBufferSetup specify i/o buffer for reading
  194. TIFFReadDirectory read the next directory
  195. TIFFReadEncodedStrip read and decode a strip of data
  196. TIFFReadEncodedTile read and decode a tile of data
  197. TIFFReadRawStrip read a raw strip of data
  198. TIFFReadRawTile read a raw tile of data
  199. TIFFReadRGBAImage read an image into a fixed format raster
  200. TIFFReadScanline read and decode a row of data
  201. TIFFReadTile read and decode a tile of data
  202. TIFFRegisterCODEC override standard codec for the specific scheme
  203. TIFFReverseBits reverse bits in an array of bytes
  204. TIFFRGBAImageBegin setup decoder state for TIFFRGBAImageGet
  205. TIFFRGBAImageEnd release TIFFRGBAImage decoder state
  206. TIFFRGBAImageGet read and decode an image
  207. TIFFRGBAImageOK is image readable by TIFFRGBAImageGet
  208. TIFFScanlineSize return size of a scanline
  209. TIFFSetDirectory set the current directory
  210. TIFFSetSubDirectory set the current directory
  211. TIFFSetErrorHandler set error handler function
  212. TIFFSetField set a tag's value in the current directory
  213. TIFFSetWarningHandler set warning handler function
  214. TIFFStripSize returns size of a strip
  215. TIFFRawStripSize returns the number of bytes in a raw strip
  216. TIFFSwabShort swap bytes of short
  217. TIFFSwabLong swap bytes of long
  218. TIFFSwabArrayOfShort swap bytes of an array of shorts
  219. TIFFSwabArrayOfLong swap bytes of an array of longs
  220. TIFFTileRowSize return size of a row in a tile
  221. TIFFTileSize return size of a tile
  222. TIFFUnRegisterCODEC unregisters the codec
  223. TIFFVGetField return tag value in current directory
  224. TIFFVGetFieldDefaulted return tag value in current directory
  225. TIFFVSetField set a tag's value in the current directory
  226. TIFFVStripSize returns the number of bytes in a strip
  227. TIFFWarning library warning handler
  228. TIFFWriteDirectory write the current directory
  229. TIFFWriteEncodedStrip compress and write a strip of data
  230. TIFFWriteEncodedTile compress and write a tile of data
  231. TIFFWriteRawStrip write a raw strip of data
  232. TIFFWriteRawTile write a raw tile of data
  233. TIFFWriteScanline write a scanline of data
  234. TIFFWriteTile compress and write a tile of data
  235. TIFFXYZToRGB perform CIE XYZ to RGB conversion
  236. TIFFYCbCrToRGBInit initialize YCbCr to RGB conversion state
  237. TIFFYCbCrtoRGB perform YCbCr to RGB conversion
  238. .sp
  239. Auxiliary functions:
  240. _TIFFfree free memory buffer
  241. _TIFFmalloc dynamically allocate memory buffer
  242. _TIFFmemcmp compare contents of the memory buffers
  243. _TIFFmemcpy copy contents of the one buffer to another
  244. _TIFFmemset fill memory buffer with a constant byte
  245. _TIFFrealloc dynamically reallocate memory buffer
  246. .fi
  247. .SH "TAG USAGE"
  248. The table below lists the
  249. .SM TIFF
  250. tags that are recognized and handled by the library.
  251. If no use is indicated in the table, then the library
  252. reads and writes the tag, but does not use it internally.
  253. Note that some tags are meaningful only when a particular
  254. compression scheme is being used; e.g.
  255. .I Group3Options
  256. is only useful if
  257. .I Compression
  258. is set to
  259. .SM CCITT
  260. Group 3 encoding.
  261. Tags of this sort are considered
  262. .I codec-specific
  263. tags and the library does not recognize them except when the
  264. .I Compression
  265. tag has been previously set to the relevant compression scheme.
  266. .sp
  267. .nf
  268. .ta \w'TIFFTAG_JPEGTABLESMODE'u+2n +\w'Value'u+2n +\w'R/W'u+2n
  269. \fITag Name\fP \fIValue\fP \fIR/W\fP \fILibrary Use/Notes\fP
  270. .sp 5p
  271. .nf
  272. Artist 315 R/W
  273. BadFaxLines 326 R/W
  274. BitsPerSample 258 R/W lots
  275. CellLength 265 parsed but ignored
  276. CellWidth 264 parsed but ignored
  277. CleanFaxData 327 R/W
  278. ColorMap 320 R/W
  279. ColorResponseUnit 300 parsed but ignored
  280. Compression 259 R/W choosing codec
  281. ConsecutiveBadFaxLines 328 R/W
  282. Copyright 33432 R/W
  283. DataType 32996 R obsoleted by SampleFormat tag
  284. DateTime 306 R/W
  285. DocumentName 269 R/W
  286. DotRange 336 R/W
  287. ExtraSamples 338 R/W lots
  288. FaxRecvParams 34908 R/W
  289. FaxSubAddress 34909 R/W
  290. FaxRecvTime 34910 R/W
  291. FillOrder 266 R/W control bit order
  292. FreeByteCounts 289 parsed but ignored
  293. FreeOffsets 288 parsed but ignored
  294. GrayResponseCurve 291 parsed but ignored
  295. GrayResponseUnit 290 parsed but ignored
  296. Group3Options 292 R/W used by Group 3 codec
  297. Group4Options 293 R/W
  298. HostComputer 316 R/W
  299. ImageDepth 32997 R/W tile/strip calculations
  300. ImageDescription 270 R/W
  301. ImageLength 257 R/W lots
  302. ImageWidth 256 R/W lots
  303. InkNames 333 R/W
  304. InkSet 332 R/W
  305. JPEGTables 347 R/W used by JPEG codec
  306. Make 271 R/W
  307. Matteing 32995 R obsoleted by ExtraSamples tag
  308. MaxSampleValue 281 R/W
  309. MinSampleValue 280 R/W
  310. Model 272 R/W
  311. NewSubFileType 254 R/W called SubFileType in spec
  312. NumberOfInks 334 R/W
  313. Orientation 274 R/W
  314. PageName 285 R/W
  315. PageNumber 297 R/W
  316. PhotometricInterpretation 262 R/W used by Group 3 and JPEG codecs
  317. PlanarConfiguration 284 R/W data i/o
  318. Predictor 317 R/W used by LZW and Deflate codecs
  319. PrimaryChromacities 319 R/W
  320. ReferenceBlackWhite 532 R/W
  321. ResolutionUnit 296 R/W used by Group 3 codec
  322. RowsPerStrip 278 R/W data i/o
  323. SampleFormat 339 R/W
  324. SamplesPerPixel 277 R/W lots
  325. SMinSampleValue 340 R/W
  326. SMaxSampleValue 341 R/W
  327. Software 305 R/W
  328. StoNits 37439 R/W
  329. StripByteCounts 279 R/W data i/o
  330. StripOffsets 273 R/W data i/o
  331. SubFileType 255 R/W called OSubFileType in spec
  332. TargetPrinter 337 R/W
  333. Thresholding 263 R/W
  334. TileByteCounts 324 R/W data i/o
  335. TileDepth 32998 R/W tile/strip calculations
  336. TileLength 323 R/W data i/o
  337. TileOffsets 324 R/W data i/o
  338. TileWidth 322 R/W data i/o
  339. TransferFunction 301 R/W
  340. WhitePoint 318 R/W
  341. XPosition 286 R/W
  342. XResolution 282 R/W
  343. YCbCrCoefficients 529 R/W used by TIFFRGBAImage support
  344. YCbCrPositioning 531 R/W tile/strip size calculations
  345. YCbCrSubsampling 530 R/W
  346. YPosition 286 R/W
  347. YResolution 283 R/W used by Group 3 codec
  348. .SH "PSEUDO TAGS"
  349. In addition to the normal
  350. .SM TIFF
  351. tags the library supports a collection of
  352. tags whose values lie in a range outside the valid range of
  353. .SM TIFF
  354. tags.
  355. These tags are termed
  356. .I pseudo-tags
  357. and are used to control various codec-specific functions within the library.
  358. The table below summarizes the defined pseudo-tags.
  359. .sp
  360. .nf
  361. .ta \w'TIFFTAG_JPEGTABLESMODE'u+2n +\w'Codec'u+2n +\w'R/W'u+2n
  362. \fITag Name\fP \fICodec\fP \fIR/W\fP \fILibrary Use/Notes\fP
  363. .sp 5p
  364. .nf
  365. TIFFTAG_FAXMODE G3 R/W general codec operation
  366. TIFFTAG_FAXFILLFUNC G3/G4 R/W bitmap fill function
  367. TIFFTAG_JPEGQUALITY JPEG R/W compression quality control
  368. TIFFTAG_JPEGCOLORMODE JPEG R/W control colorspace conversions
  369. TIFFTAG_JPEGTABLESMODE JPEG R/W control contents of \fIJPEGTables\fP tag
  370. TIFFTAG_ZIPQUALITY Deflate R/W compression quality level
  371. TIFFTAG_PIXARLOGDATAFMT PixarLog R/W user data format
  372. TIFFTAG_PIXARLOGQUALITY PixarLog R/W compression quality level
  373. TIFFTAG_SGILOGDATAFMT SGILog R/W user data format
  374. .fi
  375. .TP
  376. .B TIFFTAG_FAXMODE
  377. Control the operation of the Group 3 codec.
  378. Possible values (independent bits that can be combined by
  379. or'ing them together) are:
  380. FAXMODE_CLASSIC
  381. (enable old-style format in which the
  382. .SM RTC
  383. is written at the end of the last strip),
  384. FAXMODE_NORTC
  385. (opposite of
  386. FAXMODE_CLASSIC;
  387. also called
  388. FAXMODE_CLASSF),
  389. FAXMODE_NOEOL
  390. (do not write
  391. .SM EOL
  392. codes at the start of each row of data),
  393. FAXMODE_BYTEALIGN
  394. (align each encoded row to an 8-bit boundary),
  395. FAXMODE_WORDALIGN
  396. (align each encoded row to an 16-bit boundary),
  397. The default value is dependent on the compression scheme; this
  398. pseudo-tag is used by the various G3 and G4 codecs to share code.
  399. .TP
  400. .B TIFFTAG_FAXFILLFUNC
  401. Control the function used to convert arrays of black and white
  402. runs to packed bit arrays.
  403. This hook can be used to image decoded scanlines in multi-bit
  404. depth rasters (e.g. for display in colormap mode)
  405. or for other purposes.
  406. The default value is a pointer to a builtin function that images
  407. packed bilevel data.
  408. .TP
  409. .B TIFFTAG_IPTCNEWSPHOTO
  410. Tag contains image metadata per the IPTC newsphoto spec: Headline,
  411. captioning, credit, etc... Used by most wire services.
  412. .TP
  413. .B TIFFTAG_PHOTOSHOP
  414. Tag contains Photoshop captioning information and metadata. Photoshop
  415. uses in parallel and redundantly alongside IPTCNEWSPHOTO information.
  416. .TP
  417. .B TIFFTAG_JPEGQUALITY
  418. Control the compression quality level used in the baseline algorithm.
  419. Note that quality levels are in the range 0-100 with a default value of 75.
  420. .TP
  421. .B TIFFTAG_JPEGCOLORMODE
  422. Control whether or not conversion is done between
  423. RGB and YCbCr colorspaces.
  424. Possible values are:
  425. JPEGCOLORMODE_RAW
  426. (do not convert), and
  427. JPEGCOLORMODE_RGB
  428. (convert to/from RGB)
  429. The default value is JPEGCOLORMODE_RAW.
  430. .TP
  431. .B TIFFTAG_JPEGTABLESMODE
  432. Control the information written in the
  433. .I JPEGTables
  434. tag.
  435. Possible values (independent bits that can be combined by
  436. or'ing them together) are:
  437. JPEGTABLESMODE_QUANT
  438. (include quantization tables),
  439. and
  440. JPEGTABLESMODE_HUFF
  441. (include Huffman encoding tables).
  442. The default value is JPEGTABLESMODE_QUANT|JPEGTABLESMODE_HUFF.
  443. .TP
  444. .B TIFFTAG_ZIPQUALITY
  445. Control the compression technique used by the Deflate codec.
  446. Quality levels are in the range 1-9 with larger numbers yielding better
  447. compression at the cost of more computation.
  448. The default quality level is 6 which yields a good time-space tradeoff.
  449. .TP
  450. .B TIFFTAG_PIXARLOGDATAFMT
  451. Control the format of user data passed
  452. .I in
  453. to the PixarLog codec when encoding and passed
  454. .I out
  455. from when decoding.
  456. Possible values are:
  457. PIXARLOGDATAFMT_8BIT
  458. for 8-bit unsigned pixels,
  459. PIXARLOGDATAFMT_8BITABGR
  460. for 8-bit unsigned ABGR-ordered pixels,
  461. PIXARLOGDATAFMT_11BITLOG
  462. for 11-bit log-encoded raw data,
  463. PIXARLOGDATAFMT_12BITPICIO
  464. for 12-bit PICIO-compatible data,
  465. PIXARLOGDATAFMT_16BIT
  466. for 16-bit signed samples,
  467. and
  468. PIXARLOGDATAFMT_FLOAT
  469. for 32-bit IEEE floating point samples.
  470. .TP
  471. .B TIFFTAG_PIXARLOGQUALITY
  472. Control the compression technique used by the PixarLog codec.
  473. This value is treated identically to TIFFTAG_ZIPQUALITY; see the
  474. above description.
  475. .TP
  476. .B TIFFTAG_SGILOGDATAFMT
  477. Control the format of client data passed
  478. .I in
  479. to the SGILog codec when encoding and passed
  480. .I out
  481. from when decoding.
  482. Possible values are:
  483. SGILOGDATAFMT_FLTXYZ
  484. for converting between LogLuv and 32-bit IEEE floating valued XYZ pixels,
  485. SGILOGDATAFMT_16BITLUV
  486. for 16-bit encoded Luv pixels,
  487. SGILOGDATAFMT_32BITRAW and SGILOGDATAFMT_24BITRAW
  488. for no conversion of data,
  489. SGILOGDATAFMT_8BITRGB
  490. for returning 8-bit RGB data (valid only when decoding LogLuv-encoded data),
  491. SGILOGDATAFMT_FLTY
  492. for converting between LogL and 32-bit IEEE floating valued Y pixels,
  493. SGILOGDATAFMT_16BITL
  494. for 16-bit encoded L pixels,
  495. and
  496. SGILOGDATAFMT_8BITGRY
  497. for returning 8-bit greyscale data
  498. (valid only when decoding LogL-encoded data).
  499. .SH DIAGNOSTICS
  500. All error messages are directed through the
  501. .IR TIFFError
  502. routine.
  503. By default messages are directed to
  504. .B stderr
  505. in the form:
  506. .IR "module: message\en."
  507. Warning messages are likewise directed through the
  508. .IR TIFFWarning
  509. routine.
  510. .SH "SEE ALSO"
  511. .BR fax2tiff (1),
  512. .BR gif2tiff (1),
  513. .BR pal2rgb (1),
  514. .BR ppm2tiff (1),
  515. .BR rgb2ycbcr (1),
  516. .BR ras2tiff (1),
  517. .BR raw2tiff (1),
  518. .BR sgi2tiff (1),
  519. .BR tiff2bw (1),
  520. .BR tiffdither (1),
  521. .BR tiffdump (1),
  522. .BR tiffcp (1),
  523. .BR tiffcmp (1),
  524. .BR tiffgt (1),
  525. .BR tiffinfo (1),
  526. .BR tiffmedian (1),
  527. .BR tiffsplit (1),
  528. .BR tiffsv (1).
  529. .PP
  530. .BR "Tag Image File Format Specification \(em Revision 6.0" ,
  531. an Aldus Technical Memorandum.
  532. .PP
  533. .BR "The Spirit of TIFF Class F" ,
  534. an appendix to the TIFF 5.0 specification prepared by Cygnet Technologies.
  535. .PP
  536. Libtiff library home page:
  537. .BR http://www.simplesystems.org/libtiff/
  538. .SH BUGS
  539. The library does not support multi-sample images
  540. where some samples have different bits/sample.
  541. .PP
  542. The library does not support random access to compressed data
  543. that is organized with more than one row per tile or strip.