Parent for classes which represent MXF files.
More...
#include <mxf.h>
|
boost::optional< std::string > | _key_id |
|
boost::optional< Key > | _key |
|
std::string | _context_id |
|
MXFMetadata | _metadata |
|
boost::optional< Standard > | _standard |
|
|
template<class P , class Q > |
void | start (PictureAssetWriter *writer, std::shared_ptr< P > state, Q *mxf, uint8_t const *data, int size) |
|
Parent for classes which represent MXF files.
Definition at line 73 of file mxf.h.
◆ context_id()
std::string dcp::MXF::context_id |
( |
| ) |
const |
|
inline |
- Returns
- context ID used when encrypting; this starts off as a random value
Definition at line 116 of file mxf.h.
◆ encrypted()
bool dcp::MXF::encrypted |
( |
| ) |
const |
|
inline |
- Returns
- true if the data is encrypted
Definition at line 80 of file mxf.h.
◆ fill_writer_info()
void MXF::fill_writer_info |
( |
ASDCP::WriterInfo * |
w, |
|
|
std::string |
id |
|
) |
| const |
|
protected |
Fill in a ASDCP::WriteInfo struct.
- Parameters
-
Definition at line 82 of file mxf.cc.
◆ key()
boost::optional<Key> dcp::MXF::key |
( |
| ) |
const |
|
inline |
- Returns
- encryption/decryption key, if one has been set
Definition at line 104 of file mxf.h.
◆ key_id()
boost::optional<std::string> dcp::MXF::key_id |
( |
| ) |
const |
|
inline |
- Returns
- the ID of the key used for encryption/decryption, if there is one
Definition at line 92 of file mxf.h.
◆ metadata()
- Returns
- metadata from the MXF file
Definition at line 128 of file mxf.h.
◆ read_writer_info()
string MXF::read_writer_info |
( |
ASDCP::WriterInfo const & |
info | ) |
|
|
protected |
Read an ASDCP::WriterInfo struct, extracting things for our member variables.
- Returns
- AssetUUID of the MXF
Definition at line 124 of file mxf.cc.
◆ set_context_id()
void dcp::MXF::set_context_id |
( |
std::string |
id | ) |
|
|
inline |
Set the context ID to be used when encrypting.
- Parameters
-
Definition at line 111 of file mxf.h.
◆ set_key()
void MXF::set_key |
( |
Key |
key | ) |
|
|
virtual |
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)
- Parameters
-
Reimplemented in dcp::SMPTESubtitleAsset.
Definition at line 112 of file mxf.cc.
◆ set_key_id()
void dcp::MXF::set_key_id |
( |
std::string |
i | ) |
|
|
inline |
Set the ID of the key that is used for encryption/decryption.
- Parameters
-
Definition at line 87 of file mxf.h.
◆ set_metadata()
Set the metadata that is written to the MXF file.
- Parameters
-
Definition at line 123 of file mxf.h.
◆ _key
boost::optional<Key> dcp::MXF::_key |
|
protected |
Key used for encryption/decryption, if there is one
Definition at line 157 of file mxf.h.
◆ _key_id
boost::optional<std::string> dcp::MXF::_key_id |
|
protected |
ID of the key used for encryption/decryption, if there is one
Definition at line 155 of file mxf.h.
The documentation for this class was generated from the following files: