Add workaround for 3D DCPs whose picture MXFs are labelled (within the MXF) as mono.
[dcpomatic.git] / src / lib / dcp_content.h
index be12ba5346eb7f81fa85dd75eec0df625818f8d3..26c1802bacb748557aa18ad60b827ce4686e541e 100644 (file)
@@ -104,6 +104,8 @@ public:
                return _reference_video;
        }
 
+       bool can_reference_video (std::list<std::string> &) const;
+
        void set_reference_audio (bool r);
 
        bool reference_audio () const {
@@ -111,6 +113,8 @@ public:
                return _reference_audio;
        }
 
+       bool can_reference_audio (std::list<std::string> &) const;
+
        void set_reference_subtitle (bool r);
 
        bool reference_subtitle () const {
@@ -118,11 +122,15 @@ public:
                return _reference_subtitle;
        }
 
+       bool can_reference_subtitle (std::list<std::string> &) const;
+
 protected:
-       void add_properties (std::list<std::pair<std::string, std::string> >& p) const;
+       void add_properties (std::list<UserProperty>& p) const;
 
 private:
        void read_directory (boost::filesystem::path);
+       std::list<DCPTimePeriod> reels () const;
+       template <class T> bool can_reference (std::string overlapping, std::list<std::string>& why_not) const;
 
        std::string _name;
        bool _has_subtitles;