#define LIBDCP_ASSET_WRITER_H
#include "types.h"
+#include "crypto_context.h"
#include <boost/filesystem.hpp>
-namespace ASDCP {
- class AESEncContext;
- class HMACContext;
-}
-
namespace dcp {
class MXF;
class AssetWriter : public boost::noncopyable
{
public:
- virtual ~AssetWriter ();
+ virtual ~AssetWriter () {}
virtual bool finalize ();
int64_t frames_written () const {
}
protected:
- AssetWriter (MXF* mxf, boost::filesystem::path file, Standard standard);
+ AssetWriter (MXF* mxf, boost::filesystem::path file);
/** MXF that we are writing */
MXF* _mxf;
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> _crypto_context;
};
}