summaryrefslogtreecommitdiff
path: root/src/lib/dcp_content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-23 00:27:12 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-24 10:01:52 +0100
commitdf28b0e939bd0f12ae31e6f7ba94fa954496b3b8 (patch)
tree9dcdf8708fe678fc1419e90dc6fdc3f8da8fafb2 /src/lib/dcp_content.h
parent2f1d460898f40844d47d6a3b858449ac09d8b342 (diff)
Allow import of OV/VF DCPs (#906).
Diffstat (limited to 'src/lib/dcp_content.h')
-rw-r--r--src/lib/dcp_content.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/dcp_content.h b/src/lib/dcp_content.h
index cb9279706..f3a8236a2 100644
--- a/src/lib/dcp_content.h
+++ b/src/lib/dcp_content.h
@@ -68,7 +68,7 @@ public:
void set_default_colour_conversion ();
std::list<DCPTime> reel_split_points () const;
- boost::filesystem::path directory () const;
+ std::vector<boost::filesystem::path> directories () const;
bool encrypted () const {
boost::mutex::scoped_lock lm (_mutex);
@@ -76,12 +76,15 @@ public:
}
void add_kdm (dcp::EncryptedKDM);
+ void add_ov (boost::filesystem::path ov);
boost::optional<dcp::EncryptedKDM> kdm () const {
return _kdm;
}
bool can_be_played () const;
+ bool needs_kdm () const;
+ bool needs_assets () const;
void set_reference_video (bool r);
@@ -110,6 +113,11 @@ public:
bool can_reference_subtitle (std::list<std::string> &) const;
+ boost::optional<std::string> cpl () const {
+ boost::mutex::scoped_lock lm (_mutex);
+ return _cpl;
+ }
+
private:
void add_properties (std::list<UserProperty>& p) const;
@@ -124,6 +132,8 @@ private:
std::string _name;
/** true if our DCP is encrypted */
bool _encrypted;
+ /** true if this DCP needs more assets before it can be played */
+ bool _needs_assets;
boost::optional<dcp::EncryptedKDM> _kdm;
/** true if _kdm successfully decrypts the first frame of our DCP */
bool _kdm_valid;
@@ -142,6 +152,10 @@ private:
boost::optional<dcp::Standard> _standard;
bool _three_d;
+ /** ID of the CPL to use; older metadata might not specify this: in that case
+ * just use the only CPL.
+ */
+ boost::optional<std::string> _cpl;
};
#endif