summaryrefslogtreecommitdiff
path: root/src/lib/writer.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-16 14:24:48 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-16 14:37:42 +0100
commit3b78e9223c9be784531475acacb88b59b2459f48 (patch)
tree7c97e11d3e4fd364f015c186594b41d13bcca495 /src/lib/writer.h
parent7a1563c37d6e4e8ab016e8d3b2bcf5e29a327053 (diff)
Split subtitles at reel boundaries (#1918).
Diffstat (limited to 'src/lib/writer.h')
-rw-r--r--src/lib/writer.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/lib/writer.h b/src/lib/writer.h
index 14d4b7faa..aab7d5fc7 100644
--- a/src/lib/writer.h
+++ b/src/lib/writer.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2021 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -129,6 +129,7 @@ private:
void set_digest_progress (Job* job, float progress);
void write_cover_sheet (boost::filesystem::path output_dcp);
void calculate_referenced_digests (boost::function<void (float)> set_progress);
+ void write_hanging_text (ReelWriter& reel);
std::weak_ptr<Job> _job;
std::vector<ReelWriter> _reels;
@@ -204,4 +205,13 @@ private:
bool _have_subtitles = false;
/** all closed caption tracks that we have on any reel */
std::set<DCPTextTrack> _have_closed_captions;
+
+ struct HangingText {
+ PlayerText text;
+ TextType type;
+ boost::optional<DCPTextTrack> track;
+ dcpomatic::DCPTimePeriod period;
+ };
+
+ std::vector<HangingText> _hanging_texts;
};