Rename player DCP directory to player content; ignore failures to load directories...
[dcpomatic.git] / src / lib / ffmpeg_content.h
index b341aa01293df06946de6ecfe6f542697c6fc7b0..87a892e68a81fa4ce5f4d3a67af145afc4e1e480 100644 (file)
@@ -55,6 +55,7 @@ public:
        }
 
        void examine (boost::shared_ptr<Job>);
+       void take_settings_from (boost::shared_ptr<const Content> c);
        std::string summary () const;
        std::string technical_summary () const;
        void as_xml (xmlpp::Node *, bool with_paths) const;
@@ -90,11 +91,13 @@ public:
                return _first_video;
        }
 
-       std::list<ContentTimePeriod> image_subtitles_during (ContentTimePeriod, bool starting) const;
-       std::list<ContentTimePeriod> text_subtitles_during (ContentTimePeriod, bool starting) const;
-
        void signal_subtitle_stream_changed ();
 
+       boost::optional<std::string> decryption_key () const {
+               boost::mutex::scoped_lock lm (_mutex);
+               return _decryption_key;
+       }
+
 private:
        void add_properties (std::list<UserProperty> &) const;
 
@@ -107,11 +110,12 @@ private:
        /** Video filters that should be used when generating DCPs */
        std::vector<Filter const *> _filters;
 
-       AVColorRange _color_range;
-       AVColorPrimaries _color_primaries;
-       AVColorTransferCharacteristic _color_trc;
-       AVColorSpace _colorspace;
+       boost::optional<AVColorRange> _color_range;
+       boost::optional<AVColorPrimaries> _color_primaries;
+       boost::optional<AVColorTransferCharacteristic> _color_trc;
+       boost::optional<AVColorSpace> _colorspace;
        boost::optional<int> _bits_per_pixel;
+       boost::optional<std::string> _decryption_key;
 };
 
 #endif