file-pnm: Remove clamping when loading PFM files

This commit is contained in:
Tobias Ellinghaus 2018-10-30 13:37:07 +01:00
parent 0fa2230e86
commit bfcb7fc593
No known key found for this signature in database
GPG Key ID: 98D42E5ACB5448E8
1 changed files with 4 additions and 1 deletions

View File

@ -1020,7 +1020,10 @@ pnm_load_rawpfm (PNMScanner *scan,
* little vague about what the scale factor should be used
* for */
data[x] *= fabsf (info->scale_factor);
data[x] = fmaxf (0.0f, fminf (FLT_MAX, data[x]));
/* Keep values smaller than zero. That is in line with what the
* TIFF loader does. If the user doesn't want the negative numbers
* he has to get rid of them afterwards */
/* data[x] = fmaxf (0.0f, fminf (FLT_MAX, data[x])); */
}
gegl_buffer_set (buffer,