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.11 16:15 "Re: YCbCr", by Antonio Scuri

  As Joris pointed out, you actually get Y Cb and Cr planes. So the first
component, that looks red, is infact Y, and indeed has the correct size. But
the Cb and Cr planes are downsampled. At least this is what I got here.

  I use libtiff 3.8.2. I have to comment the code at "tiff_jpeg.c" that does
"downsampled_output = TRUE" and add "tif->tif_flags |= TIFF_UPSAMPLED;" so I
got all YCbCr planes at normal resolution.

  When I upgraded to libtiff 3.9.2 my code stop working. Now almost all the
samples I have with YCbCr and JPEG compression fail to read. This includes
the known quad-jpeg, smallliz and zackthecat. 

  It is the same for libjpeg6 or libjpeg7.

  I have to investigate the changes between 3.8 and 3.9 to see if I'm not
missing anything.

  BTW, I do use TIFFReadScanline and TIFFReadTile to read the image data.
I'm not using the high level functions.

Best,
scuri

> -----Original Message-----
> From: tiff-bounces@lists.maptools.org [mailto:tiff-
> bounces@lists.maptools.org] On Behalf Of Steve Mills
> Sent: quinta-feira, 10 de dezembro de 2009 18:31
> To: tiff list
> Subject: Re: [Tiff] YCbCr
> 
> On Dec 10, 2009, at 14:21:08, Antonio Scuri wrote:
> 
> >  When loading YCbCr colorspace from JPEG compressed images I had a
> problem
> > with the size of the returned images. The logic in "tiff_jpeg.c"
> returns a
> > downsampled image. I fixed it changing the code so it returns a
> normal size
> > image. Let me know if you are interested.
> 
> In what way was it downsamples? Can you give an example? The one test
> file I just tried looks like the correct size (it's an all red image).
> We're asking for the tags we're interested in and reading it row by
> row. Is this different from how you're loading tiff's?
> 
> _________________________________________________________
> Steve Mills                              Me: 952-401-6255
> Senior Software Architect                         MultiAd
> smills@multiad.com                       www.multi-ad.com
> 
> 
> _______________________________________________
> Tiff mailing list: Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
> http://www.remotesensing.org/libtiff/