Hi!

I'm trying to use LCMS 2 in 32-bit (float) mode to estimate conversion 
performance and accuracy, but I'm unable to use  tificc application for 
32-bit conversion.

I've tried both MacOS X and FreeBSD8 boxes, in both cases the library 
has compiled from sources (./configure && make && make install).

There is no problems with 8-bit and 16-bit images.

Test1 (try to convert 16-bit integer AdobeRGB tiff into 32-bit 
floating-point sRGB one):

$ tificc -o*sRGB -w32 P16-Adobe.tif P32-srgb.tif
[tifficc]: Unsupported raster format
Segmentation fault: 11 (core dumped)

(P16-Adobe.tif is the 16-bit TIFF image produces by Adobe Photoshop).

Test2:
$  tificc -o*sRGB P32-Adobe.tif P32-srgb.tif
[tifficc]: Unsupported raster format
Segmentation fault: 11 (core dumped)

P32-Adobe - 32-bit TIFF from Adobe Photoshop saved as 32-bit (Float) and 
without compression.

Tiffinfo utility from libtiff 3.9.4 identifies this file as:
  Subfile Type: (0 = 0x0)
   Image Width: 1003 Image Length: 1372
   Resolution: 56.6667, 56.6667 pixels/cm
   Bits/Sample: 32
   Sample Format: IEEE floating point
   Compression Scheme: None
   Photometric Interpretation: RGB color
   Orientation: row 0 top, col 0 lhs
   Samples/Pixel: 3
   Rows/Strip: 1372
   Planar Configuration: single image plane
   Software: Adobe Photoshop CS5 Windows


I've looked into tificc.c source code. It looks like the 
GetInputPixelType() function does not packs FLOAT bit into format 
bitfield. It returns

     return 
(COLORSPACE_SH(pt)|PLANAR_SH(IsPlanar)|EXTRA_SH(extra)|CHANNELS_SH(ColorChannels)|BYTES_SH(bps)|FLAVOR_SH(reverse));

I guess, this function should examine TIFFTAG_SAMPLEFORMAT field and 
should return FLOAT_SH(...) in resulting bitfield.


But I'm not big LCMS specialist, I've only read documentation and try to 
play with sample utilities, so it is possible I'm wrong.

Anyway, it will be good to support 32-bit float tiffs in tificc, at 
least for testing purposes.....

-- 
Alex Tutubalin
Web: http://blog.lexa.ru
mailto:l...@lexa.ru


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to