swaroop: take ownership of config file if we're run as root.
[dcpomatic.git] / src / lib / ffmpeg_content.h
index 666322669c071015bc5d9d864727adeeb72c5a07..64f6f9ff8632a275cf05f2233b2faf344a2aadf6 100644 (file)
@@ -55,9 +55,10 @@ 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 *) const;
+       void as_xml (xmlpp::Node *, bool with_paths) const;
        DCPTime full_length () const;
 
        std::string identifier () const;
@@ -90,9 +91,6 @@ 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 ();
 
 private:
@@ -107,10 +105,10 @@ 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;
 };