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
May 2005

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

2005.05.25 09:52 "Jpeg and YCbCr", by Kelvin Zhong
2005.05.25 10:41 "Re: Jpeg and YCbCr", by Jean-yves Le Ridant
2005.05.26 01:50 "Re: Jpeg and YCbCr", by Kelvin Zhong
2005.05.26 08:37 "Re: Jpeg and YCbCr", by Jean-yves Le Ridant
2005.05.26 10:02 "Re: Jpeg and YCbCr", by Kelvin Zhong
2005.05.26 12:24 "Re: Jpeg and YCbCr", by Jean-yves Le Ridant
2005.05.26 13:03 "Re: Jpeg and YCbCr", by Joris Van Damme
2005.05.26 14:10 "Re: Jpeg and YCbCr", by Jean-yves Le Ridant
2005.05.26 16:23 "Re: Jpeg and YCbCr", by Joris Van Damme
2005.05.26 16:50 "Re: Jpeg and YCbCr", by Bob Friesenhahn
2005.05.26 17:00 "Re: Jpeg and YCbCr", by Joris Van Damme
2005.05.26 19:30 "Re: Jpeg and YCbCr", by Chris Cox
2005.05.26 19:34 "Re: Jpeg and YCbCr", by Bob Friesenhahn
2005.05.26 19:41 "Re: Jpeg and YCbCr", by Chris Cox
2005.05.26 19:38 "Re: Jpeg and YCbCr", by Chris Losinger
2005.05.26 19:43 "Re: Jpeg and YCbCr", by Chris Cox
2005.05.26 19:48 "Re: Jpeg and YCbCr", by Bob Friesenhahn
2005.05.28 18:01 "Re: Jpeg and YCbCr", by Joris Van Damme
2005.05.30 09:42 "Re: Jpeg and YCbCr", by Jean-yves Le Ridant
2005.05.30 10:31 "Re: Jpeg and YCbCr", by Marti Maria
2005.05.30 13:04 "Re: Jpeg and YCbCr", by Jean-yves Le Ridant
2005.05.30 14:39 "Re: Jpeg and YCbCr", by Marti Maria
2005.05.31 18:36 "Re: Jpeg and YCbCr", by Chris Cox
2005.05.31 18:35 "Re: Jpeg and YCbCr", by Chris Cox
2005.05.31 18:54 "Re: Jpeg and YCbCr", by Bob Friesenhahn
2005.05.31 19:00 "Re: Jpeg and YCbCr", by Chris Cox
2005.05.26 08:58 "Re: Jpeg and YCbCr", by Kelvin Zhong
2005.05.26 10:10 "Re: Jpeg and YCbCr", by Jean-yves Le Ridant

2005.05.26 10:10 "Re: Jpeg and YCbCr", by Jean-yves Le Ridant

> This time i scrathed some codes from rgb2ycbcr.c which is
> distributed with libtiff/tools.It works, and i successfully created
> the tif image file with compression = COMPRESSION_JPEG &
> photometric = PHOTOMETRIC_YCBCR , and can be opened by ACDSEE.

Produce a one strip, YCBCR, whatever downsampled image,
and tiffcp, tiffdump, or tiffinfo it ...
;-)))))
With libtiff 3.7.2 ...


> But i still have some thoughts about this things:
> Jean Yves:
> you said that libtiff already can do this thing(save the tif
> image file with compression = COMPRESSION_JPEG & photometric =
> PHOTOMETRIC_YCBCR ), 
> I tried,but failed. Do you have done such things before ? if
> so,tell me what's wrong in my codes,or tell me how to do ? thanks .

Concerning *pseudo-tag* JPEGCOLORMODE_RGB, I used and use it,
and it worked and work fine.
What I can imagine, from what I see in code, may be problems relying
to order in which you set fields as PLANARCONFIG, PHOTOMETRIC,
JPEGCOLORMODE, COMPRESSION ...

> [ and i looked at manual page of TIFFWriteScanLine()...,it is 
> said,there is a bug related to this:
> "Writing subsampled YCbCR data does not work correctly because,
> for PlanarConfiguration=2 the size of a scanline is not calculated
> on a per-sample basis, and for PlanarConfiguration=1 the library
> does not pack the block-interleaved samples."

Seen this after asked some stupid questions there or/and at bugzilla.
Notion of scanline for vertically subsampled data is somewhat hazardous.
And that tif_jpeg use it for subsampled data ... ;-(

> so i shift to use TIFFWriteEncodedStrip....,(there is no bug
> reports in manual page about this function),but it still can't
> work.). 

Strip and tile fonctions, in turn call TIFFVxxxSize fonctions,
which give correct result regarding downsampling.
So defining scanlinesize as Stripsize(v_sampling) may have some consistance.

Best is processing subsampling by stripe and tile.

--
Jean-Yves