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
January 1994

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

1994.01.17 14:25 "Re: ExtraSamples Bug in TIFF 3.30beta 002", by Yecheng Wu
1994.01.17 15:51 "ExtraSamples Bug in TIFF 3.30beta 002", by Olli Raisa
1994.01.17 17:07 "Re: ExtraSamples Bug in TIFF 3.30beta 002", by Olli Raisa
1994.01.17 17:11 "Re: ExtraSamples Bug in TIFF 3.30beta 002", by Dan Mccoy

1994.01.17 17:07 "Re: ExtraSamples Bug in TIFF 3.30beta 002", by Olli Raisa

> Not sure if this is a bug. It seems that only if you have the
> td_extrasamples set up you need to output. Otherwise just don't
> bother to output it. If you add ! to it, it will output when it's
> not set up and won't do it when it's needed.

Here is the original code:

        /*
         * Write out ExtraSamples tag only if
         * extra samples are present in the data.
         */
	if (FieldSet(fields, FIELD_EXTRASAMPLES) && td->td_extrasamples) {
                ResetFieldBit(fields, FIELD_EXTRASAMPLES);
                nfields--;
                dirsize -= sizeof (TIFFDirEntry);
        }      

Isn't td_extrasamples the number of extra samples? If so, whenever 
td_extrasamples is non-zero, output is prevented. The intention 
apparently is to prevent output when the number of extra_samples
is zero.

Olli