Move convert_to_xyz out of DCPVideo.
[dcpomatic.git] / src / lib / colour_conversion.h
index 73b6ad23ccf558f469b2e29a5369d562301ba505..66726f492dcd4f93c737d592a5581b239b611848 100644 (file)
 
 */
 
+
 #ifndef DCPOMATIC_COLOUR_CONVERSION_H
 #define DCPOMATIC_COLOUR_CONVERSION_H
 
+
 /* Hack for OS X compile failure; see https://bugs.launchpad.net/hugin/+bug/910160 */
 #ifdef check
 #undef check
 #endif
 
+
 #include <dcp/colour_conversion.h>
+#include <dcp/types.h>
 #include <libcxml/cxml.h>
 
+
 namespace xmlpp {
        class Node;
 }
 
+namespace dcp {
+       class OpenJPEGImage;
+}
+
+
+class PlayerVideo;
+
+
 class ColourConversion : public dcp::ColourConversion
 {
 public:
@@ -77,4 +90,8 @@ bool operator== (ColourConversion const &, ColourConversion const &);
 bool operator!= (ColourConversion const &, ColourConversion const &);
 bool operator== (PresetColourConversion const &, PresetColourConversion const &);
 
+
+extern std::shared_ptr<dcp::OpenJPEGImage> convert_to_xyz (std::shared_ptr<const PlayerVideo> frame, dcp::NoteHandler note);
+
+
 #endif