summaryrefslogtreecommitdiff
path: root/src/smpte_subtitle_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-14 23:59:16 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-14 23:59:16 +0100
commit9486066c29b91a8d9ac25be1c596cad62387208f (patch)
tree181a41967df7a2ccd41ab8ed14d6c99171850bdc /src/smpte_subtitle_asset.h
parent563dbf02e9c7ab0066bcebbcde6c662df845695a (diff)
Support reading of encrypted subtitles.
Diffstat (limited to 'src/smpte_subtitle_asset.h')
-rw-r--r--src/smpte_subtitle_asset.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/smpte_subtitle_asset.h b/src/smpte_subtitle_asset.h
index ffe5b6d9..004531a2 100644
--- a/src/smpte_subtitle_asset.h
+++ b/src/smpte_subtitle_asset.h
@@ -49,6 +49,7 @@ namespace ASDCP {
namespace dcp {
class SMPTELoadFontNode;
+class DecryptionContext;
/** @class SMPTESubtitleAsset
* @brief A set of subtitles to be read and/or written in the SMPTE format.
@@ -74,6 +75,7 @@ public:
void write (boost::filesystem::path path) const;
void add (SubtitleString);
void add_font (std::string id, boost::filesystem::path file);
+ void set_key (Key key);
void set_content_title_text (std::string t) {
_content_title_text = t;
@@ -159,6 +161,8 @@ protected:
private:
void read_fonts (boost::shared_ptr<ASDCP::TimedText::MXFReader>);
+ void parse_xml (boost::shared_ptr<cxml::Document> xml);
+ void read_mxf_descriptor (boost::shared_ptr<ASDCP::TimedText::MXFReader> reader, boost::shared_ptr<DecryptionContext> dec);
/** The total length of this content in video frames. The amount of
* content presented may be less than this.