summaryrefslogtreecommitdiff
path: root/src/smpte_subtitle_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-04 12:25:48 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-05 15:53:48 +0100
commit42a65cba0d8da23c12af52015e66cd9dc0b5a5fa (patch)
treeff0a017c49d0975f21a5314d2f77be20f68bd379 /src/smpte_subtitle_asset.h
parent943e75e0ac5730714f3823771f127fe78e4cf82b (diff)
Initial work on SMPTE subtitles.
Diffstat (limited to 'src/smpte_subtitle_asset.h')
-rw-r--r--src/smpte_subtitle_asset.h33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/smpte_subtitle_asset.h b/src/smpte_subtitle_asset.h
index 639c8eb7..5f4d8833 100644
--- a/src/smpte_subtitle_asset.h
+++ b/src/smpte_subtitle_asset.h
@@ -18,13 +18,15 @@
*/
#include "subtitle_asset.h"
+#include "local_time.h"
+#include "mxf.h"
#include <boost/filesystem.hpp>
namespace dcp {
class SMPTELoadFontNode;
-class SMPTESubtitleAsset : public SubtitleAsset
+class SMPTESubtitleAsset : public SubtitleAsset, public MXF
{
public:
/** @param file File name
@@ -32,11 +34,40 @@ public:
*/
SMPTESubtitleAsset (boost::filesystem::path file, bool mxf = true);
+ bool equals (
+ boost::shared_ptr<const Asset>,
+ EqualityOptions,
+ NoteHandler note
+ ) const;
+
std::list<boost::shared_ptr<LoadFontNode> > load_font_nodes () const;
+ Glib::ustring xml_as_string () const;
+ void write (boost::filesystem::path path) const;
+
+ /** @return language, if one was specified */
+ boost::optional<std::string> language () const {
+ return _language;
+ }
+
static bool valid_mxf (boost::filesystem::path);
+
+protected:
+
+ std::string pkl_type (Standard) const {
+ return "application/mxf";
+ }
private:
+ std::string _content_title_text;
+ boost::optional<std::string> _annotation_text;
+ LocalTime _issue_date;
+ boost::optional<int> _reel_number;
+ boost::optional<std::string> _language;
+ Fraction _edit_rate;
+ int _time_code_rate;
+ boost::optional<Time> _start_time;
+
std::list<boost::shared_ptr<SMPTELoadFontNode> > _load_font_nodes;
};