summaryrefslogtreecommitdiff
path: root/src/mxf.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-07-10 16:16:51 +0100
committerCarl Hetherington <cth@carlh.net>2014-07-10 16:16:51 +0100
commita75132724be4962225e5cb0f5ef5297e2e78aeee (patch)
tree8bd6860f89de21e2ec14226a4eb8d1d6ba87aff4 /src/mxf.h
parent1045480655c09c6fdf0d81f5d9714cb218933c19 (diff)
Move _intrinsic_duration and _edit_rate up to the MXF class as XML subtitle files do not contain this information (whereas MXF files do).
Diffstat (limited to 'src/mxf.h')
-rw-r--r--src/mxf.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/mxf.h b/src/mxf.h
index c5ecd1b7..4fbc1495 100644
--- a/src/mxf.h
+++ b/src/mxf.h
@@ -105,10 +105,29 @@ public:
return _metadata;
}
+ Fraction edit_rate () const {
+ return _edit_rate;
+ }
+
+ /** @return The total length of this content in video frames.
+ * The amount of content presented may be less than this.
+ */
+ int64_t intrinsic_duration () const {
+ return _intrinsic_duration;
+ }
+
protected:
+ friend class MXFWriter;
+
std::string pkl_type (Standard standard) const;
void read_writer_info (ASDCP::WriterInfo const &);
+ Fraction _edit_rate;
+ /** The total length of this content in video frames. The amount of
+ * content presented may be less than this.
+ */
+ int64_t _intrinsic_duration;
+
ASDCP::AESEncContext* _encryption_context;
ASDCP::AESDecContext* _decryption_context;
/** ID of the key used for encryption/decryption, or an empty string */