diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-01-22 16:38:17 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2015-01-22 16:38:17 +0000 |
commit | 2661fd6ecb2ec042e56905ea1a78d11267b30d5b (patch) | |
tree | 4f0329c9e8a695023d87f4e4dd7a9bc405764549 /editor/pnmgamma.c | |
parent | ea0846b5215870caf455e33c8d8bfe0a5aba01ed (diff) | |
download | netpbm-mirror-2661fd6ecb2ec042e56905ea1a78d11267b30d5b.tar.gz netpbm-mirror-2661fd6ecb2ec042e56905ea1a78d11267b30d5b.tar.xz netpbm-mirror-2661fd6ecb2ec042e56905ea1a78d11267b30d5b.zip |
Release 10.69.03
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2394 9d0c8265-081b-0410-96cb-a4ca84ce46f8
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 9c939eab..96068bfe 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; |