summaryrefslogtreecommitdiff
path: root/src/lib/writer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-03 16:26:52 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-14 10:21:12 +0100
commit265a02fceb9309338f8ce028ba93bb62cda53746 (patch)
tree4d5bf42a91e5e769b7295aa701c546c32b99fda3 /src/lib/writer.h
parent4624e5b01145d332e2923bbf2c7f6f0103700a27 (diff)
Optimise checking of existing image data.
When checking existing image data go from the end backwards until a good hash is found rather than from the start forwards until a bad hash is found. This is a lot quicker for long files but may miss a corrupted frame somewhere (however unlikely this is).
Diffstat (limited to 'src/lib/writer.h')
-rw-r--r--src/lib/writer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/writer.h b/src/lib/writer.h
index cec6ba527..120e1f338 100644
--- a/src/lib/writer.h
+++ b/src/lib/writer.h
@@ -116,7 +116,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;
@@ -169,4 +168,6 @@ private:
boost::shared_ptr<dcp::SubtitleAsset> _subtitle_asset;
std::list<boost::shared_ptr<Font> > _fonts;
+
+ static int const _info_size;
};