Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
GNOME
GIMP
Commits
bfcb7fc5
Unverified
Commit
bfcb7fc5
authored
Oct 30, 2018
by
Tobias
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
file-pnm: Remove clamping when loading PFM files
parent
0fa2230e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
plug-ins/common/file-pnm.c
plug-ins/common/file-pnm.c
+4
-1
No files found.
plug-ins/common/file-pnm.c
View file @
bfcb7fc5
...
...
@@ -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
.
0
f
,
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
,
...
...
Tobias
@houz
mentioned in commit
7b4577a0
·
Oct 30, 2018
mentioned in commit
7b4577a0
mentioned in commit 7b4577a0e4883d9b022880791a496e64248c4d46
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment