X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Freel_writer.h;h=8649ea37f2be08e9fb432f7626ad346a274cd8fe;hb=96f7dd41a2c8627bc1ea0d24d84142eb04b4ffef;hp=fff2e0b9ea7568d646b4ef0b18b86e5104757799;hpb=f41818f14369f170475b7f2bde1a2dd856517b14;p=dcpomatic.git diff --git a/src/lib/reel_writer.h b/src/lib/reel_writer.h index fff2e0b9e..8649ea37f 100644 --- a/src/lib/reel_writer.h +++ b/src/lib/reel_writer.h @@ -33,6 +33,8 @@ namespace dcpomatic { class Film; class Job; class AudioBuffers; +class InfoFileHandle; +struct write_frame_info_test; namespace dcp { class MonoPictureAsset; @@ -88,14 +90,16 @@ 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: + friend struct ::write_frame_info_test; + 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; + bool existing_picture_frame_ok (FILE* asset_file, boost::shared_ptr info_file, Frame frame) const; boost::shared_ptr _film;