X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fcpl.h;h=03e35a4e3220b3a08257572dac1642a9da047067;hb=498806d76160a6b1fa0af58e7734c0f553abf12b;hp=84dbd9ff52d7e784cc2e09a5d845c243c57f28a8;hpb=7d66bda50ade8ea618f331b885f1bfa4fa0a2af9;p=libdcp.git diff --git a/src/cpl.h b/src/cpl.h index 84dbd9ff..03e35a4e 100644 --- a/src/cpl.h +++ b/src/cpl.h @@ -73,7 +73,7 @@ class DecryptedKDM; class CPL : public Asset { public: - CPL (std::string annotation_text, ContentKind content_kind); + CPL (std::string annotation_text, ContentKind content_kind, Standard standard); /** Construct a CPL object from a XML file */ explicit CPL (boost::filesystem::path file); @@ -117,12 +117,10 @@ public: /** Write an CompositonPlaylist XML file * * @param file Filename to write - * @param standard INTEROP or SMPTE * @param signer Signer to sign the CPL, or 0 to add no signature */ void write_xml ( boost::filesystem::path file, - Standard standard, std::shared_ptr ) const; @@ -306,7 +304,7 @@ public: void set_additional_subtitle_languages (std::vector const& lang); - boost::optional standard () const { + Standard standard () const { return _standard; } @@ -354,7 +352,7 @@ private: std::vector> _reels; /** Standard of CPL that was read in */ - boost::optional _standard; + Standard _standard; };