diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-08-13 23:35:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-08-13 23:35:39 +0100 |
| commit | 563dbf02e9c7ab0066bcebbcde6c662df845695a (patch) | |
| tree | c34ecf8b2fd76b1cbd8531b2a35d0bfa5fb3aa0e /src/asset_writer.h | |
| parent | 11777d1eacac733dbfc5a7eef9337458a922f63e (diff) | |
Enable encryption of SMPTE subtitles.
Separate out EncryptionContext class to use in SMPTESubtitleAsset::write().
Diffstat (limited to 'src/asset_writer.h')
| -rw-r--r-- | src/asset_writer.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/asset_writer.h b/src/asset_writer.h index 80ce82b8..814405d4 100644 --- a/src/asset_writer.h +++ b/src/asset_writer.h @@ -41,14 +41,10 @@ #include "types.h" #include <boost/filesystem.hpp> -namespace ASDCP { - class AESEncContext; - class HMACContext; -} - namespace dcp { class MXF; +class EncryptionContext; /** @class AssetWriter * @brief Parent class for classes which can write MXF-based assets. @@ -59,7 +55,7 @@ class MXF; class AssetWriter : public boost::noncopyable { public: - virtual ~AssetWriter (); + virtual ~AssetWriter () {} virtual bool finalize (); int64_t frames_written () const { @@ -81,8 +77,7 @@ protected: bool _finalized; /** true if something has been written to this asset */ bool _started; - ASDCP::AESEncContext* _encryption_context; - ASDCP::HMACContext* _hmac_context; + boost::shared_ptr<EncryptionContext> _encryption_context; }; } |
