X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Freel_writer.h;h=d241c0fac16c067336179170050b99a427d66d4b;hp=b96bcfc68de2b19d8f352a123c841354056c71e3;hb=1befa3d286a5016e897f1a23cc60cd3d3b96e63a;hpb=ab0e8cdcafdcb83096012380f674b8280474e851 diff --git a/src/lib/reel_writer.h b/src/lib/reel_writer.h index b96bcfc68..d241c0fac 100644 --- a/src/lib/reel_writer.h +++ b/src/lib/reel_writer.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012-2018 Carl Hetherington + Copyright (C) 2012-2019 Carl Hetherington This file is part of DCP-o-matic. @@ -25,6 +25,7 @@ #include "dcp_text_track.h" #include #include +#include namespace dcpomatic { class Font; @@ -33,6 +34,7 @@ namespace dcpomatic { class Film; class Job; class AudioBuffers; +class InfoFileHandle; struct write_frame_info_test; namespace dcp { @@ -89,7 +91,7 @@ public: return _first_nonexistant_frame; } - dcp::FrameInfo read_frame_info (FILE* file, Frame frame, Eyes eyes) const; + dcp::FrameInfo read_frame_info (boost::shared_ptr info, Frame frame, Eyes eyes) const; private: @@ -97,8 +99,8 @@ private: void write_frame_info (Frame frame, Eyes eyes, dcp::FrameInfo info) const; long frame_info_position (Frame frame, Eyes eyes) const; - Frame check_existing_picture_asset (); - bool existing_picture_frame_ok (FILE* asset_file, FILE* info_file, Frame frame) const; + Frame check_existing_picture_asset (boost::filesystem::path asset); + bool existing_picture_frame_ok (FILE* asset_file, boost::shared_ptr info_file, Frame frame) const; boost::shared_ptr _film; @@ -115,8 +117,10 @@ private: /** number of reels in the DCP */ int _reel_count; boost::optional _content_summary; + boost::weak_ptr _job; boost::shared_ptr _picture_asset; + /** picture asset writer, or 0 if we are not writing any picture because we already have one */ boost::shared_ptr _picture_asset_writer; boost::shared_ptr _sound_asset; boost::shared_ptr _sound_asset_writer;