Changeset 8977
- Timestamp:
- Sep 25, 2006, 5:48:46 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/jpeg/psImageJpeg.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/jpeg/psImageJpeg.c
r8913 r8977 193 193 outPix = jpegLine; 194 194 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 } 196 200 outPix[0] = Rpix[pixel]; 197 201 outPix[1] = Gpix[pixel];
Note:
See TracChangeset
for help on using the changeset viewer.
