class AESDecContext;
}
+/* Undefine some stuff that the OS X 10.5 SDK defines */
+#undef Key
+#undef set_key
+
namespace dcp
{
MXF (boost::filesystem::path file);
~MXF ();
- /** @return the 4-character key type for this MXF (MDIK, MDAK, etc.) */
- virtual std::string key_type () const = 0;
-
bool equals (
- boost::shared_ptr<const Content> other,
+ boost::shared_ptr<const Asset> other,
EqualityOptions opt,
- boost::function<void (NoteType, std::string)> note
+ NoteHandler note
) const;
/** Fill in a ADSCP::WriteInfo struct.
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 */