diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-05-24 12:25:22 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-05-24 12:25:22 +0100 |
| commit | 85c699d29aab7ca7f7218b3f7f859e10c9025e37 (patch) | |
| tree | 0789324c390795f6628f2008d645b54000e4e088 /src/modified_gamma_transfer_function.h | |
| parent | 043d382cb7360f35e97b9057045c6a255b905443 (diff) | |
Add somewhat speculative Rec 1886 and Rec 2020 colour conversions.
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 { |
