summaryrefslogtreecommitdiff
path: root/src/mxf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/mxf.cc')
-rw-r--r--src/mxf.cc19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/mxf.cc b/src/mxf.cc
index 20cfbaed..1154b80d 100644
--- a/src/mxf.cc
+++ b/src/mxf.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
@@ -31,10 +31,12 @@
files in the program, then also delete it here.
*/
-/** @file src/asset.cc
- * @brief Parent class for assets of DCPs made up of MXF files.
+
+/** @file src/mxf.cc
+ * @brief MXF class
*/
+
#include "raw_convert.h"
#include "mxf.h"
#include "util.h"
@@ -49,6 +51,7 @@
#include <boost/filesystem.hpp>
#include <iostream>
+
using std::string;
using std::cout;
using std::list;
@@ -57,6 +60,7 @@ using std::shared_ptr;
using std::dynamic_pointer_cast;
using namespace dcp;
+
MXF::MXF ()
: _context_id (make_uuid ())
{
@@ -65,6 +69,7 @@ MXF::MXF ()
*/
}
+
MXF::MXF (Standard standard)
: _context_id (make_uuid ())
, _standard (standard)
@@ -72,6 +77,7 @@ MXF::MXF (Standard standard)
}
+
void
MXF::fill_writer_info (ASDCP::WriterInfo* writer_info, string id) const
{
@@ -101,11 +107,7 @@ MXF::fill_writer_info (ASDCP::WriterInfo* writer_info, string id) const
}
}
-/** Set the (private) key that will be used to encrypt or decrypt this MXF's content.
- * This is the top-secret key that is distributed (itself encrypted) to cinemas
- * via Key Delivery Messages (KDMs).
- * @param key Key to use.
- */
+
void
MXF::set_key (Key key)
{
@@ -117,6 +119,7 @@ MXF::set_key (Key key)
}
}
+
string
MXF::read_writer_info (ASDCP::WriterInfo const & info)
{