IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 25, 2006, 5:48:46 PM (20 years ago)
Author:
Paul Price
Message:

Need to handle NaN pixels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/jpeg/psImageJpeg.c

    r8913 r8977  
    193193        outPix = jpegLine;
    194194        for (int i = 0; i < image->numCols; i++, outPix += 3) {
    195             pixel = PS_JPEG_SCALEVALUE(row[i],zero,scale);
     195            if (isfinite(row[i])) {
     196                pixel = PS_JPEG_SCALEVALUE(row[i],zero,scale);
     197            } else {
     198                pixel = 0;
     199            }
    196200            outPix[0] = Rpix[pixel];
    197201            outPix[1] = Gpix[pixel];
Note: See TracChangeset for help on using the changeset viewer.