summaryrefslogtreecommitdiff
path: root/src/mxf.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-26 18:41:41 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-26 18:41:41 +0000
commit2e93ca3670e5581b5523f60130b38594de10d6c3 (patch)
tree6ed18ed07bccf77b2d172ef7681fce981956815f /src/mxf.cc
parent9ed550de7b98ca2f8467dd134a9c0ad7f1868f23 (diff)
parent447cc7ddec5ace7bb47df35192ef02e7c19bf9b3 (diff)
Merge master; MXF subtitle stuff not included.
Diffstat (limited to 'src/mxf.cc')
-rw-r--r--src/mxf.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mxf.cc b/src/mxf.cc
index 3c75997b..e1ed9650 100644
--- a/src/mxf.cc
+++ b/src/mxf.cc
@@ -29,6 +29,7 @@
#include "metadata.h"
#include "exceptions.h"
#include "kdm.h"
+#include "compose.hpp"
#include <libxml++/nodes/element.h>
#include <boost/filesystem.hpp>
#include <iostream>
@@ -152,3 +153,16 @@ MXF::read_writer_info (ASDCP::WriterInfo const & info)
Kumu::bin2UUIDhex (info.AssetUUID, 16, buffer, 64);
_id = buffer;
}
+
+string
+MXF::pkl_type (Standard standard) const
+{
+ switch (standard) {
+ case INTEROP:
+ return String::compose ("application/x-smpte-mxf;asdcpKind=%1", asdcp_kind ());
+ case SMPTE:
+ return "application/x-smpte-mxf";
+ default:
+ assert (false);
+ }
+}