Rename write_to_cpl_base -> write_to_cpl_asset.
[libdcp.git] / src / stereo_picture_frame.h
index fd0e70fd79da410131e3e93d1137cb360d81ba3c..a173b1c14cc7e36c50657b2900358c6f7318c48c 100644 (file)
     files in the program, then also delete it here.
 */
 
+#ifndef LIBDCP_STEREO_PICTURE_FRAME_H
+#define LIBDCP_STEREO_PICTURE_FRAME_H
+
 #include "types.h"
+#include "asset_reader.h"
 #include <boost/shared_ptr.hpp>
 #include <boost/noncopyable.hpp>
 #include <boost/filesystem.hpp>
@@ -68,11 +72,16 @@ public:
        int right_j2k_size () const;
 
 private:
-       friend class StereoPictureAssetReader;
+       /* XXX: this is a bit of a shame, but I tried friend StereoPictureAssetReader and it's
+          rejected by some (seemingly older) GCCs.
+       */
+       friend class AssetReader<ASDCP::JP2K::MXFSReader, StereoPictureFrame>;
 
-       StereoPictureFrame (ASDCP::JP2K::MXFSReader* reader, int n, ASDCP::AESDecContext *);
+       StereoPictureFrame (ASDCP::JP2K::MXFSReader* reader, int n, boost::shared_ptr<DecryptionContext>);
 
        ASDCP::JP2K::SFrameBuffer* _buffer;
 };
 
 }
+
+#endif