diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-07 00:39:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-07 00:39:15 +0100 |
| commit | 932b942a51bef4e2dd2de9f83aa5b68ad07f60f9 (patch) | |
| tree | 40f81e0b4b2e04f46bab243e9c94ff24b8bcb2ef /src/cpl.h | |
| parent | 4313456938d34d93239194e914b82e7a5ae14c1c (diff) | |
Working decryption via KDM.
Diffstat (limited to 'src/cpl.h')
| -rw-r--r-- | src/cpl.h | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -36,6 +36,7 @@ class Reel; class XMLMetadata; class MXFMetadata; class Encryption; +class KDM; /** @brief A CPL within a DCP */ class CPL @@ -44,7 +45,7 @@ public: CPL (std::string directory, std::string name, ContentKind content_kind, int length, int frames_per_second); CPL (std::string directory, std::string file, boost::shared_ptr<const parse::AssetMap> asset_map, bool require_mxfs = true); - void add_reel (boost::shared_ptr<const Reel> reel); + void add_reel (boost::shared_ptr<Reel> reel); /** @return the length in frames */ int length () const { @@ -58,7 +59,7 @@ public: return _content_kind; } - std::list<boost::shared_ptr<const Reel> > reels () const { + std::list<boost::shared_ptr<Reel> > reels () const { return _reels; } @@ -77,6 +78,10 @@ public: std::list<boost::shared_ptr<const Asset> > assets () const; bool encrypted () const; + + std::string id () const { + return _id; + } bool equals (CPL const & other, EqualityOptions options, boost::function<void (NoteType, std::string)> note) const; @@ -93,6 +98,8 @@ public: MXFMetadata const &, XMLMetadata const & ) const; + + void add_kdm (KDM const &); private: std::string _directory; @@ -105,10 +112,10 @@ private: /** frames per second */ int _fps; /** reels */ - std::list<boost::shared_ptr<const Reel> > _reels; + std::list<boost::shared_ptr<Reel> > _reels; /** our UUID */ - std::string _uuid; + std::string _id; /** a SHA1 digest of our XML */ mutable std::string _digest; }; |
