summaryrefslogtreecommitdiff
path: root/src/modified_gamma_transfer_function.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-05-24 23:02:38 +0100
committerCarl Hetherington <cth@carlh.net>2016-05-24 23:02:38 +0100
commitcb7c3db37d196b6e9ddad60937bd5314a95eadb2 (patch)
treeb686e05142b39208e4af8ab0a01e3b47c5256378 /src/modified_gamma_transfer_function.h
parent096b175a661234d9e02a852cce9f56c4577b8259 (diff)
parent85c699d29aab7ca7f7218b3f7f859e10c9025e37 (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.h7
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
{