diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-07 01:18:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-08 14:09:02 +0100 |
| commit | cadca6e4f8c1d844f1b5fb9375023e627c674fa9 (patch) | |
| tree | b10c0ce91c95a2fd5d9bdb2326fe367905990b15 /src/lib/hints.h | |
| parent | 46b4349fb5a19523e5105812bf79fd0e7df9c51f (diff) | |
Write subtitles and closed captions to a test DCP in the hints thread,
then check the result for Bv2.1 violations (part of #1800).
Diffstat (limited to 'src/lib/hints.h')
| -rw-r--r-- | src/lib/hints.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/lib/hints.h b/src/lib/hints.h index b8a831301..9164e2106 100644 --- a/src/lib/hints.h +++ b/src/lib/hints.h @@ -30,7 +30,10 @@ #include <vector> #include <string> + class Film; +class Writer; + class Hints : public Signaller, public ExceptionStore, public WeakConstFilm { @@ -53,7 +56,7 @@ private: void thread (); void hint (std::string h); - void text (PlayerText text, TextType type, dcpomatic::DCPTimePeriod period); + void text (PlayerText text, TextType type, boost::optional<DCPTextTrack> track, dcpomatic::DCPTimePeriod period); void closed_caption (PlayerText text, dcpomatic::DCPTimePeriod period); void open_subtitle (PlayerText text, dcpomatic::DCPTimePeriod period); @@ -71,6 +74,11 @@ private: void check_ffec_and_ffmc_in_smpte_feature (); boost::thread _thread; + /** This is used to make a partial DCP containing only the subtitles and closed captions that + * our final DCP will have. This means we can see how big the files will be and warn if they + * will be too big. + */ + boost::shared_ptr<Writer> _writer; bool _long_ccap; bool _overlap_ccap; |
