ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/normtiff.c
(Generate patch)

Comparing ray/src/px/normtiff.c (file contents):
Revision 3.4 by greg, Sat Feb 22 02:07:27 2003 UTC vs.
Revision 3.5 by greg, Mon Jul 14 04:56:54 2003 UTC

# Line 222 | Line 222 | TIFF   *tp;
222          BYTE    *pix;
223                                          /* check to make sure it's SGILOG */
224          TIFFGetFieldDefaulted(tp, TIFFTAG_PHOTOMETRIC, &phot);
225 <        if (phot != PHOTOMETRIC_LOGLUV && phot != PHOTOMETRIC_LOGL) {
226 <                if (!(flags & TM_F_NOSTDERR)) {
227 <                        fputs(fname, stderr);
228 <                        fputs(": TIFF must be in SGILOG format\n", stderr);
229 <                }
230 <                return(-1);
231 <        }
232 <        if (phot == PHOTOMETRIC_LOGL)
225 >        if (phot == PHOTOMETRIC_LOGL | phot == PHOTOMETRIC_MINISBLACK)
226                  flags |= TM_F_BW;
227                                          /* read and tone map TIFF */
228          if (tmMapTIFF(&pix, &xsiz, &ysiz, flags,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines