Fix to allow re-writing of SMPTE subtitles.
[libdcp.git] / src / atmos_asset_writer.h
index e494b779a9a135e6cde5fae32b49392dac59ce7b..c031103a66f860c466a1b1f8c30ee1def4ed76d6 100644 (file)
@@ -31,6 +31,9 @@
     files in the program, then also delete it here.
 */
 
+#ifndef LIBDCP_ATMOS_ASSET_WRITER_H
+#define LIBDCP_ATMOS_ASSET_WRITER_H
+
 /** @file  src/atmos_asset_writer.h
  *  @brief AtmosAssetWriter class.
  */
@@ -38,7 +41,7 @@
 #include "asset_writer.h"
 #include "types.h"
 #include "atmos_frame.h"
-#include <boost/shared_ptr.hpp>
+#include <memory>
 #include <boost/filesystem.hpp>
 
 namespace dcp {
@@ -53,6 +56,7 @@ class AtmosAsset;
 class AtmosAssetWriter : public AssetWriter
 {
 public:
+       void write (std::shared_ptr<const AtmosFrame> frame);
        void write (uint8_t const * data, int size);
        bool finalize ();
 
@@ -65,9 +69,11 @@ private:
           ASDCP headers
        */
        struct ASDCPState;
-       boost::shared_ptr<ASDCPState> _state;
+       std::shared_ptr<ASDCPState> _state;
 
        AtmosAsset* _asset;
 };
 
 }
+
+#endif