Tidying.
[libdcp.git] / src / colour_conversion.h
index 17051bcdd9792ab406e729fb63584368f1ebd82d..83ba3ad32ce9f750a7314318b1eb10f8df2cb020 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
     files in the program, then also delete it here.
 */
 
+
 /** @file  src/colour_conversion.h
  *  @brief ColourConversion class.
  */
 
+
 #ifndef DCP_COLOUR_CONVERSION_H
 #define DCP_COLOUR_CONVERSION_H
 
+
 #include "chromaticity.h"
 #include <memory>
 #if BOOST_VERSION >= 106400
 #include <boost/numeric/ublas/matrix.hpp>
 #include <boost/optional.hpp>
 
+
 namespace dcp {
 
+
 class TransferFunction;
 
-enum YUVToRGB {
-       YUV_TO_RGB_REC601,
-       YUV_TO_RGB_REC709,
-       YUV_TO_RGB_COUNT
+
+enum class YUVToRGB {
+       REC601,
+       REC709,
+       COUNT
 };
 
+
 /** @class ColourConversion
  *  @brief A representation of all the parameters involved the colourspace conversion
- *  of a YUV image to XYZ (via RGB).
+ *  of a YUV image to XYZ (via RGB)
  */
 class ColourConversion
 {
 public:
        ColourConversion ()
-               : _yuv_to_rgb (YUV_TO_RGB_REC601)
+               : _yuv_to_rgb (YUVToRGB::REC601)
        {}
 
        ColourConversion (
@@ -175,6 +182,8 @@ protected:
        std::shared_ptr<const TransferFunction> _out;
 };
 
+
 }
 
+
 #endif