diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-24 23:02:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-24 23:02:38 +0100 |
| commit | cb7c3db37d196b6e9ddad60937bd5314a95eadb2 (patch) | |
| tree | b686e05142b39208e4af8ab0a01e3b47c5256378 /src/modified_gamma_transfer_function.h | |
| parent | 096b175a661234d9e02a852cce9f56c4577b8259 (diff) | |
| parent | 85c699d29aab7ca7f7218b3f7f859e10c9025e37 (diff) | |
Merge branch '1.0' of ssh://main.carlh.net/home/carl/git/libdcp into 1.0
Diffstat (limited to 'src/modified_gamma_transfer_function.h')
| -rw-r--r-- | src/modified_gamma_transfer_function.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modified_gamma_transfer_function.h b/src/modified_gamma_transfer_function.h index e8875d4b..c200743a 100644 --- a/src/modified_gamma_transfer_function.h +++ b/src/modified_gamma_transfer_function.h @@ -25,10 +25,15 @@ namespace dcp { -/** A transfer function which for an input x gives an output y where +/** A transfer function which for an input x gives a linear output y where * * y = x / B for x <= threshold * y = ((x + A) / (1 + A))^power for x > threshold + * + * The reverse transform is + * + * x = y * B for y <= threshold / B + * x = (1 + A) * y ^ (1 / power) - A for y > threshold / B */ class ModifiedGammaTransferFunction : public TransferFunction { |
