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
August 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.08.03 08:00 "Padding", by Anil Kumar
2005.08.03 13:55 "Re: Padding", by Frank Warmerdam
2005.08.03 14:32 "Re: Padding", by Andrey Kiselev

2005.08.03 13:55 "Re: Padding", by Frank Warmerdam

Anil, 

> 1. I need to get the count/information of  "DIB padding" bytes from a
> tiff file, which tag should I use to extract this information

Are you asking what sort of padding is used in TIFF scanlines on disk?  
There is no explicit tag addressing this, but there are rules. 

My understanding based on a quick review of my own code, and a
vague recollection is that each scanline of data is passed out to the
nearest byte but that there is never a whole byte of passing space. 
The intent I gather is to ensure that each scanline starts on a byte 
boundary.  Of course, for 8bit imagery this is already the case so 
there is no padding. 
 
> 2. I read the TIFF file and create the "RAW" file, but when i view it,
> it seems that part of image is appeneded to the bottom of image? What
> could be the reason??

This is not enough information for me to formulate any useful guesses
from.  There is an art to asking questions well that greatly improves your
chances of getting a useful answer.  I try not to guess to much at peoples
intentions as I end up spending alot of effort answering the wrong 
question.

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