summaryrefslogtreecommitdiff
path: root/src/colour_conversion.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-29 19:17:24 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-29 19:17:24 +0100
commit91563c058a8d2207437a482d4cc63c5a166a26f4 (patch)
tree599a0bc2d337dc7d06912163571fd0abdcc29cd6 /src/colour_conversion.h
parentd8cf96d56de7b5a72471762ab5f1e35e816f6252 (diff)
parent5e4c87ae58f1ed73b9ef19cd75210963599fa546 (diff)
Merge branch '1.0' of ssh://main.carlh.net/home/carl/git/libdcp into 1.0
Diffstat (limited to 'src/colour_conversion.h')
-rw-r--r--src/colour_conversion.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/colour_conversion.h b/src/colour_conversion.h
index 939b0d2b..1f824c81 100644
--- a/src/colour_conversion.h
+++ b/src/colour_conversion.h
@@ -17,6 +17,10 @@
*/
+/** @file src/colour_conversion.h
+ * @brief ColourConversion class.
+ */
+
#ifndef DCP_COLOUR_CONVERSION_H
#define DCP_COLOUR_CONVERSION_H
@@ -35,6 +39,10 @@ enum YUVToRGB {
YUV_TO_RGB_COUNT
};
+/** @class ColourConversion
+ * @brief A representation of all the parameters involved the colourspace conversion
+ * of a YUV image to XYZ (via RGB).
+ */
class ColourConversion
{
public:
@@ -132,7 +140,9 @@ public:
static ColourConversion const & p3_to_xyz ();
protected:
+ /** Input transfer function (probably a gamma function, or something similar) */
boost::shared_ptr<const TransferFunction> _in;
+ /** Conversion to use from YUV to RGB */
YUVToRGB _yuv_to_rgb;
Chromaticity _red;
Chromaticity _green;
@@ -140,6 +150,7 @@ protected:
Chromaticity _white;
/** White point that we are adjusting to using a Bradford matrix */
boost::optional<Chromaticity> _adjusted_white;
+ /** Output transfer function (probably an inverse gamma function, or something similar) */
boost::shared_ptr<const TransferFunction> _out;
};