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
October 2000

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

2000.10.14 22:15 "tif_getimage.c and YCbCr", by Frank Warmerdam
2000.10.14 23:31 "Re: tif_getimage.c and YCbCr", by Tom Lane
2000.10.16 09:17 "Re: tif_getimage.c and YCbCr", by Rick Lamont

2000.10.14 22:15 "tif_getimage.c and YCbCr", by Frank Warmerdam

Folks, 

There seem to be some serious bugs in the YCbCr support in tif_getimage.c
(the ReadRGBAImage code) for odd sized images.  For instance it doesn't
work properly for 4,4 sampled code unless the image width and height is
a multiple of four (and strip or tiles sizes are also a multiple of four). 

Before I spend alot of time trying to fix this I would ask:

 o Is there anything in the specification that requires factorable sizes when
   using YCbCr images?

 o Is there anyone else interested in fixing this problem?  Ideally someone
   who cares more about YCbCr images than I, and who can do more testing than
   I might?  

 o Any other advice?

The bugs can be reproduced by converting an odd sized image to YCbCr form
with "rgb2ycbcr -h 4 -v 4 -c none", and then trying to convert back to 
RGBA with tiff2rgba. 

Best regards,

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerda@home.com
light and sound - activate the windows | http://members.home.com/warmerda
and watch the world go round - Rush    | Geospatial Programmer for Rent