projects
/
libdcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rationalise #undef-ing of ERROR.
[libdcp.git]
/
src
/
colour_conversion.h
diff --git
a/src/colour_conversion.h
b/src/colour_conversion.h
index d613c143aecd950c9350cd670818a9f884c7446e..8501699a4af67ff5ffb1f91d148a13ddaa99de85 100644
(file)
--- a/
src/colour_conversion.h
+++ b/
src/colour_conversion.h
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2014-20
15
Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-20
21
Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
This file is part of libdcp.
@@
-31,13
+31,16
@@
files in the program, then also delete it here.
*/
files in the program, then also delete it here.
*/
+
/** @file src/colour_conversion.h
* @brief ColourConversion class.
*/
/** @file src/colour_conversion.h
* @brief ColourConversion class.
*/
+
#ifndef DCP_COLOUR_CONVERSION_H
#define DCP_COLOUR_CONVERSION_H
#ifndef DCP_COLOUR_CONVERSION_H
#define DCP_COLOUR_CONVERSION_H
+
#include "chromaticity.h"
#include <memory>
#if BOOST_VERSION >= 106400
#include "chromaticity.h"
#include <memory>
#if BOOST_VERSION >= 106400
@@
-46,19
+49,24
@@
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/optional.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/optional.hpp>
+
namespace dcp {
namespace dcp {
+
class TransferFunction;
class TransferFunction;
+
enum class YUVToRGB {
REC601,
REC709,
enum class YUVToRGB {
REC601,
REC709,
+ REC2020,
COUNT
};
COUNT
};
+
/** @class ColourConversion
* @brief A representation of all the parameters involved the colourspace conversion
/** @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
{
*/
class ColourConversion
{
@@
-175,6
+183,8
@@
protected:
std::shared_ptr<const TransferFunction> _out;
};
std::shared_ptr<const TransferFunction> _out;
};
+
}
}
+
#endif
#endif