Back-end for very basic and hacky VF support for a DCP imported as content.
[dcpomatic.git] / src / lib / writer.h
index cec6ba527b07a49f98ddcf4765e450c1a6ab4ae5..09e4f47983cf7dd0dc08ecda422b2ee3f457e557 100644 (file)
@@ -48,6 +48,7 @@ namespace dcp {
        class SoundAsset;
        class SoundAssetWriter;
        class SubtitleAsset;
+       class ReelAsset;
 }
 
 struct QueueItem
@@ -107,6 +108,7 @@ public:
        void write (boost::shared_ptr<const AudioBuffers>);
        void write (PlayerSubtitles subs);
        void write (std::list<boost::shared_ptr<Font> > fonts);
+       void write (boost::shared_ptr<dcp::ReelAsset> reel_asset);
        void finish ();
 
        void set_encoder_threads (int threads);
@@ -116,7 +118,6 @@ private:
        void thread ();
        void terminate_thread (bool);
        void check_existing_picture_asset ();
-       bool check_existing_picture_asset_frame (FILE *, int, Eyes);
        bool have_sequenced_image_at_queue_head ();
        void write_frame_info (int frame, Eyes eyes, dcp::FrameInfo info) const;
        long frame_info_position (int frame, Eyes eyes) const;
@@ -167,6 +168,9 @@ private:
        boost::shared_ptr<dcp::SoundAsset> _sound_asset;
        boost::shared_ptr<dcp::SoundAssetWriter> _sound_asset_writer;
        boost::shared_ptr<dcp::SubtitleAsset> _subtitle_asset;
+       std::list<boost::shared_ptr<dcp::ReelAsset> > _reel_assets;
 
        std::list<boost::shared_ptr<Font> > _fonts;
+
+       static int const _info_size;
 };