libdcp
|
Parent class for classes which can write MXF-based assets. More...
#include <asset_writer.h>
Public Member Functions | |
AssetWriter (AssetWriter const &)=delete | |
AssetWriter & | operator= (AssetWriter const &)=delete |
virtual bool | finalize () |
int64_t | frames_written () const |
Protected Member Functions | |
AssetWriter (MXF *mxf, boost::filesystem::path file) | |
Protected Attributes | |
MXF * | _mxf = nullptr |
boost::filesystem::path | _file |
int64_t | _frames_written = 0 |
bool | _finalized = false |
bool | _started = false |
std::shared_ptr< EncryptionContext > | _crypto_context |
Parent class for classes which can write MXF-based assets.
The AssetWriter lasts for the duration of the write and is then discarded. They can only be created by calling start_write() on an appropriate Asset object.
Definition at line 61 of file asset_writer.h.
|
protected |
Create an AssetWriter.
mxf | MXF that we are writing. |
file | File to write to. |
Definition at line 55 of file asset_writer.cc.
|
virtual |
Reimplemented in dcp::StereoPictureAssetWriter, dcp::SoundAssetWriter, dcp::MonoPictureAssetWriter, and dcp::AtmosAssetWriter.
Definition at line 65 of file asset_writer.cc.
|
protected |
File that we are writing to
Definition at line 82 of file asset_writer.h.
|
protected |
true if finalize() has been called on this object
Definition at line 88 of file asset_writer.h.
|
protected |
Number of ‘frames’ written so far; the definition of a frame varies depending on the subclass.
Definition at line 86 of file asset_writer.h.
|
protected |
MXF that we are writing
Definition at line 80 of file asset_writer.h.
|
protected |
true if something has been written to this asset
Definition at line 90 of file asset_writer.h.