AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
December 2009

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2009.12.10 18:28 "YCbCr", by Steve Mills
2009.12.10 19:19 "Re: YCbCr", by Joris Van Damme
2009.12.10 19:37 "Re: YCbCr", by Steve Mills
2009.12.10 20:21 "Re: YCbCr", by Antonio Scuri
2009.12.10 20:31 "Re: YCbCr", by Steve Mills
2009.12.11 16:15 "Re: YCbCr", by Antonio Scuri
2009.12.11 16:58 "Re: YCbCr", by Steve Mills
2009.12.11 18:37 "Re: YCbCr", by Antonio Scuri
2009.12.11 19:11 "Re: YCbCr", by Gene Amtower
2009.12.11 19:22 "Re: YCbCr", by Steve Mills
2009.12.11 20:04 "Re: YCbCr", by Gene Amtower
2009.12.12 02:37 "Re: YCbCr", by Antonio Scuri
2009.12.12 16:37 "Re: YCbCr", by Gene Amtower
2009.12.12 17:34 "Re: YCbCr", by Toby Thain
2009.12.12 18:19 "Re: YCbCr", by Bob Friesenhahn
2009.12.12 18:27 "Re: YCbCr", by Antonio Scuri
2009.12.10 20:32 "Re: YCbCr", by Joris Van Damme
2009.12.10 20:55 "Re: YCbCr", by Steve Mills
2009.12.10 22:31 "Re: YCbCr", by Steve Mills

2009.12.10 19:19 "Re: YCbCr", by Joris Van Damme

Steve,

> What should I expect to be get from a call to TIFFReadScanline when the 
> TIFFTAG_PHOTOMETRIC tag is PHOTOMETRIC_YCBCR? It appears that we're 
> getting rgb, but in the wrong channel order (should be rgb, but is bgr or 
> vise versa). I only have one test document that is supposed to be solid 
> red. It's coming out blue. I don't know how the file was made or how to 
> make another one, otherwise I'd use a file with more colors so I knew for 
> sure what was going on.

Are you using the JPEG_COLORMODE pseudo-tag?

It may also be related to a define in LibJpeg, that specifies the channel 
order of RGB. It may be that in your own copy of LibJpeg, that define is 
tuned, whilst LibTiff does not expect that. I don't remember from the top of 
my head the name of the define, but it should be straightforward to find it 
in a LibJpeg config file.


Best regards,

Joris