X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_content.h;h=8f01bbc4e43e3331b1d9ea550425291676ba434f;hb=b31bf6be17a014eaa9603af4563388070ce3ed73;hp=54527422e117db5eb15a1025d6cfc2af2fc60411;hpb=e60bb3e51bd1508b149e6b8f6608f09b5196ae26;p=dcpomatic.git diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h index 54527422e..8f01bbc4e 100644 --- a/src/lib/dcp_content.h +++ b/src/lib/dcp_content.h @@ -29,12 +29,14 @@ #include "subtitle_content.h" #include #include -#include class DCPContentProperty { public: static int const CAN_BE_PLAYED; + static int const REFERENCE_VIDEO; + static int const REFERENCE_AUDIO; + static int const REFERENCE_SUBTITLE; }; /** @class DCPContent @@ -58,12 +60,19 @@ public: void as_xml (xmlpp::Node *) const; std::string identifier () const; + void set_default_colour_conversion (); + /* SubtitleContent */ - bool has_subtitles () const { + + bool has_text_subtitles () const { boost::mutex::scoped_lock lm (_mutex); return _has_subtitles; } + bool has_image_subtitles () const { + return false; + } + boost::filesystem::path directory () const; bool encrypted () const { @@ -79,6 +88,30 @@ public: bool can_be_played () const; + void set_reference_video (bool r); + + bool reference_video () const { + boost::mutex::scoped_lock lm (_mutex); + return _reference_video; + } + + void set_reference_audio (bool r); + + bool reference_audio () const { + boost::mutex::scoped_lock lm (_mutex); + return _reference_audio; + } + + void set_reference_subtitle (bool r); + + bool reference_subtitle () const { + boost::mutex::scoped_lock lm (_mutex); + return _reference_subtitle; + } + +protected: + void add_properties (std::list >& p) const; + private: void read_directory (boost::filesystem::path); @@ -89,6 +122,18 @@ private: boost::optional _kdm; /** true if _kdm successfully decrypts the first frame of our DCP */ bool _kdm_valid; + /** true if the video in this DCP should be included in the output by reference + * rather than by rewrapping. + */ + bool _reference_video; + /** true if the audio in this DCP should be included in the output by reference + * rather than by rewrapping. + */ + bool _reference_audio; + /** true if the subtitle in this DCP should be included in the output by reference + * rather than by rewrapping. + */ + bool _reference_subtitle; }; #endif