diff options
Diffstat (limited to 'editor/pnmgamma.c')
-rw-r--r-- | editor/pnmgamma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/pnmgamma.c b/editor/pnmgamma.c index e13075ff..efdfe039 100644 --- a/editor/pnmgamma.c +++ b/editor/pnmgamma.c @@ -509,7 +509,7 @@ buildBt709ToSrgbGamma(xelval table[], else radiance = pow((normalized + 0.099) / 1.099, gamma709); - if (radiance < linearCutoffSrgb) + if (radiance < linearCutoffSrgb * normalizer) srgb = radiance * linearExpansionSrgb; else srgb = 1.055 * pow(normalized, oneOverGammaSrgb) - 0.055; @@ -563,7 +563,7 @@ buildSrgbToBt709Gamma(xelval table[], else radiance = pow((normalized + 0.099) / 1.099, gammaSrgb); - if (radiance < linearCutoff709) + if (radiance < linearCutoff709 * normalizer) bt709 = radiance * linearExpansion709; else bt709 = 1.055 * pow(normalized, oneOverGamma709) - 0.055; |