summaryrefslogtreecommitdiff
path: root/src/colour_conversion.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-05-29 10:36:56 +0100
committerCarl Hetherington <cth@carlh.net>2015-05-29 10:36:56 +0100
commit804d2471943581ac3711cd99d9ded75ef650d038 (patch)
tree74a934e557a33d43e8118328ee568faf3dee17af /src/colour_conversion.h
parent73f9031ec4a6f37f98ce72fbf8abd48105b85cde (diff)
Some comments.1.0-new-asdcplib
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;
};