X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcolour_conversion.cc;h=b0c81e91cc832d297b310098985eb0ea47bd6106;hb=dba3b79e848c70e405e41744c40b416014e86eb8;hp=57e73a5b5c02133b65d30b5d544cc48a7b03a130;hpb=444809fb888ed99803f2d19c94d3faef067cf348;p=dcpomatic.git diff --git a/src/lib/colour_conversion.cc b/src/lib/colour_conversion.cc index 57e73a5b5..b0c81e91c 100644 --- a/src/lib/colour_conversion.cc +++ b/src/lib/colour_conversion.cc @@ -18,37 +18,41 @@ */ -#include "config.h" + #include "colour_conversion.h" -#include "util.h" +#include "config.h" #include "digester.h" -#include "warnings.h" -#include +#include "util.h" #include #include -#include #include +#include +#include #include +#include #include -DCPOMATIC_DISABLE_WARNINGS +LIBDCP_DISABLE_WARNINGS #include -DCPOMATIC_ENABLE_WARNINGS +LIBDCP_ENABLE_WARNINGS #include #include "i18n.h" -using std::list; -using std::string; + using std::cout; -using std::vector; +using std::dynamic_pointer_cast; +using std::list; using std::make_shared; using std::shared_ptr; +using std::string; +using std::vector; using boost::optional; -using std::dynamic_pointer_cast; using dcp::raw_convert; + vector PresetColourConversion::_presets; + ColourConversion::ColourConversion () : dcp::ColourConversion (dcp::ColourConversion::srgb_to_xyz ()) { @@ -95,7 +99,7 @@ ColourConversion::ColourConversion (cxml::NodePtr node, int version) } } - _yuv_to_rgb = static_cast (node->optional_number_child("YUVToRGB").get_value_or (dcp::YUV_TO_RGB_REC601)); + _yuv_to_rgb = static_cast(node->optional_number_child("YUVToRGB").get_value_or(static_cast(dcp::YUVToRGB::REC601))); auto m = node->node_children ("Matrix"); if (!m.empty ()) {