app: remove clamps from addition, subtract and grain blend modes

This commit is contained in:
Øyvind Kolås 2017-01-14 21:06:03 +01:00
parent 39adf3627d
commit f01374798e
4 changed files with 0 additions and 4 deletions

View File

@ -109,7 +109,6 @@ gimp_operation_addition_process_pixels (gfloat *in,
gfloat comp = in[b] + layer[b];
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
out[b] = CLAMP (out[b], 0.0, 1.0);
}
}
else

View File

@ -110,7 +110,6 @@ gimp_operation_grain_extract_process_pixels (gfloat *in,
gfloat comp = in[b] - layer[b] + 0.5;
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
out[b] = CLAMP (out[b], 0.0, 1.0);
}
}
else

View File

@ -109,7 +109,6 @@ gimp_operation_grain_merge_process_pixels (gfloat *in,
gfloat comp = in[b] + layer[b] - 0.5;
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
out[b] = CLAMP (out[b], 0.0, 1.0);
}
}
else

View File

@ -108,7 +108,6 @@ gimp_operation_subtract_process_pixels (gfloat *in,
{
gfloat comp = in[b] - layer[b];
out[b] = comp * comp_alpha + in[b] * (1.0 - comp_alpha);
out[b] = CLAMP(out[b], 0.0, 1.0);
}
}
else