home *** CD-ROM | disk | FTP | other *** search
/ Internet File Formats / InternetFileFormatsCD.bin / graphics / tiff / unix / archive.z / archive / text0093.txt < prev    next >
Encoding:
Text File  |  1995-09-20  |  1.6 KB  |  39 lines

  1.     To:  tiff@sgi.sgi.com
  2.     Subject:  Integrating TIFF extension
  3.     Date: Mon, 23 Jan 1995 17:18:47 PST
  4.     From:  Adam Rybicki <arybicki@netcom.com>
  5.  
  6.     I have been trying to integrate YCbCr TIFF support into my project by 
  7.     using libtiff and I ran into some inconsistencies between the spec and 
  8.     libtiff (this may be the fault of my erroneous interpretation of the 
  9.     spec, in which case I need to be corrected.)
  10.     
  11.     1. According to the spec, BitsPerSample (quoting from memory) is supposed
  12.        to be an array sized by the sample count to allow different number
  13.        of bits per sample (e.g. R,G,B = 5,6,5 bits respectively.)  Libtiff
  14.        always treats BitsPerSample as a single quantity.  Is libtiff somehow
  15.        "normalizing" the BitsPerSample to the greatest element of that array?
  16.  
  17. The library does not support multi-sampled images where
  18. the bits/sample vary.  This is documented several places
  19. such as intro(3T).
  20.     
  21.     2. YCbCr files cannot be read by scanlines, but reading by strips works
  22.        as expected.  However, in libtiff there is no way to specify which
  23.        particular sample to load if PlanarConfiguration is 2.  Or is there?
  24.        Tile-based YCbCr files should work, but I have no files in that format.
  25.  
  26. If PlanarConfig is 2 (separate planes) then individual samples
  27. are in different strips/tiles; to get a particular sample you
  28. read the appropriate strip/tile.
  29.     
  30.     3. Has anyone integrated JPEG support by using jpeglib?
  31.     
  32. It's coming, but is not yet ready for distribution.  When it's
  33. ready there will be a posting to this mailing list.
  34.  
  35.     Sam
  36.  
  37.  
  38.  
  39.