X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Freel_writer.h;h=dd98f0c49a81abe0f4e012cde246392f66506157;hb=396cddb7c112aedc80a106a785083aea05b8b741;hp=3adaaf477c956be5850b019c18b45afefd720704;hpb=7a65b08f1b09beacc0e0a8060641f677683d400c;p=dcpomatic.git diff --git a/src/lib/reel_writer.h b/src/lib/reel_writer.h index 3adaaf477..dd98f0c49 100644 --- a/src/lib/reel_writer.h +++ b/src/lib/reel_writer.h @@ -18,7 +18,6 @@ */ #include "types.h" -#include "data.h" #include "dcpomatic_time.h" #include "referenced_reel_asset.h" #include "player_subtitles.h" @@ -49,7 +48,7 @@ class ReelWriter public: ReelWriter (boost::shared_ptr film, DCPTimePeriod period, boost::shared_ptr job); - void write (boost::optional encoded, Frame frame, Eyes eyes); + void write (boost::optional encoded, Frame frame, Eyes eyes); void fake_write (Frame frame, Eyes eyes, int size); void repeat_write (Frame frame, Eyes eyes); void write (boost::shared_ptr audio); @@ -88,6 +87,7 @@ private: void write_frame_info (Frame frame, Eyes eyes, dcp::FrameInfo info) const; long frame_info_position (Frame frame, Eyes eyes) const; void check_existing_picture_asset (); + bool existing_picture_frame_ok (FILE* asset_file, FILE* info_file) const; boost::shared_ptr _film; @@ -95,7 +95,7 @@ private: /** the first frame index that does not already exist in our MXF */ int _first_nonexistant_frame; /** the data of the last written frame, if there is one */ - boost::optional _last_written[EYES_COUNT]; + boost::optional _last_written[EYES_COUNT]; /** the index of the last written video frame within the reel */ int _last_written_video_frame; Eyes _last_written_eyes;