X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fffmpeg_content.h;h=8bd5ef4fa9b05ab1ddd80dfc433fa94d793ddef7;hp=91caac27cd8ab4fa785c5fb3b0c1f19fba6fb2a3;hb=254b3044d72de6b033d7c584f5abd2b9aa70aad5;hpb=1a693725f9a8cc6ba58f65b2f1ef03255d295f23 diff --git a/src/lib/ffmpeg_content.h b/src/lib/ffmpeg_content.h index 91caac27c..8bd5ef4fa 100644 --- a/src/lib/ffmpeg_content.h +++ b/src/lib/ffmpeg_content.h @@ -46,20 +46,20 @@ public: class FFmpegContent : public Content { public: - FFmpegContent (boost::shared_ptr, boost::filesystem::path); - FFmpegContent (boost::shared_ptr, cxml::ConstNodePtr, int version, std::list &); - FFmpegContent (boost::shared_ptr, std::vector >); + FFmpegContent (boost::filesystem::path); + FFmpegContent (cxml::ConstNodePtr, int version, std::list &); + FFmpegContent (std::vector >); boost::shared_ptr shared_from_this () { return boost::dynamic_pointer_cast (Content::shared_from_this ()); } - void examine (boost::shared_ptr); - void use_template (boost::shared_ptr c); + void examine (boost::shared_ptr film, boost::shared_ptr); + void take_settings_from (boost::shared_ptr c); std::string summary () const; std::string technical_summary () const; void as_xml (xmlpp::Node *, bool with_paths) const; - DCPTime full_length () const; + DCPTime full_length (boost::shared_ptr film) const; std::string identifier () const; @@ -91,13 +91,20 @@ public: return _first_video; } - std::list image_subtitles_during (ContentTimePeriod, bool starting) const; - std::list text_subtitles_during (ContentTimePeriod, bool starting) const; - void signal_subtitle_stream_changed (); + boost::optional decryption_key () const { + boost::mutex::scoped_lock lm (_mutex); + return _decryption_key; + } + + bool encrypted () const { + boost::mutex::scoped_lock lm (_mutex); + return _encrypted; + } + private: - void add_properties (std::list &) const; + void add_properties (boost::shared_ptr film, std::list &) const; friend struct ffmpeg_pts_offset_test; friend struct audio_sampling_rate_test; @@ -108,11 +115,13 @@ private: /** Video filters that should be used when generating DCPs */ std::vector _filters; - AVColorRange _color_range; - AVColorPrimaries _color_primaries; - AVColorTransferCharacteristic _color_trc; - AVColorSpace _colorspace; + boost::optional _color_range; + boost::optional _color_primaries; + boost::optional _color_trc; + boost::optional _colorspace; boost::optional _bits_per_pixel; + boost::optional _decryption_key; + bool _encrypted; }; #endif