summaryrefslogtreecommitdiff
path: root/src/lib/writer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-11-12 22:09:48 +0100
committerCarl Hetherington <cth@carlh.net>2023-11-20 01:04:56 +0100
commit89a798dbc5f48fef0b53a5ec9bb21f669dc594dd (patch)
treed19f2cbd88fa4bb23a3a18213f24cf06964e1b75 /src/lib/writer.h
parent796ac1e76ff47b2e4dad2b3ef10458d8befac5d8 (diff)
FIXME: Improve progress reporting of digest calculations (might help with #2643).2643-progress
Diffstat (limited to 'src/lib/writer.h')
-rw-r--r--src/lib/writer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/writer.h b/src/lib/writer.h
index 1fbf7bbd5..efb6a17d8 100644
--- a/src/lib/writer.h
+++ b/src/lib/writer.h
@@ -134,9 +134,9 @@ private:
void terminate_thread (bool);
bool have_sequenced_image_at_queue_head ();
size_t video_reel (int frame) const;
- void set_digest_progress (Job* job, float progress);
+ void set_digest_progress(Job* job, int id, int64_t done, int64_t size);
void write_cover_sheet (boost::filesystem::path output_dcp);
- void calculate_referenced_digests (std::function<void (float)> set_progress);
+ void calculate_referenced_digests(std::function<void (int64_t, int64_t)> set_progress);
void write_hanging_text (ReelWriter& reel);
void calculate_digests ();
@@ -204,7 +204,7 @@ private:
bool _text_only;
boost::mutex _digest_progresses_mutex;
- std::map<boost::thread::id, float> _digest_progresses;
+ std::map<int, std::pair<int64_t, int64_t>> _digest_progresses;
std::list<ReferencedReelAsset> _reel_assets;