summaryrefslogtreecommitdiff
path: root/src/colour_conversion.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-21 10:56:07 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-21 19:19:49 +0100
commit9691fc54fa6a3409520a1a42e6eeb8e6a235f5f6 (patch)
tree283fbd5aab1b8b5e15ee388a18a32d1d7145b283 /src/colour_conversion.h
parent76e3325a16cdf6d7220a61e2b5cfdb9c804cc32c (diff)
Some more use of enum class.
Diffstat (limited to 'src/colour_conversion.h')
-rw-r--r--src/colour_conversion.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/colour_conversion.h b/src/colour_conversion.h
index 17051bcd..d613c143 100644
--- a/src/colour_conversion.h
+++ b/src/colour_conversion.h
@@ -50,10 +50,10 @@ 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
@@ -64,7 +64,7 @@ class ColourConversion
{
public:
ColourConversion ()
- : _yuv_to_rgb (YUV_TO_RGB_REC601)
+ : _yuv_to_rgb (YUVToRGB::REC601)
{}
ColourConversion (