diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-06 19:55:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-06 19:55:07 +0100 |
| commit | 504e234f92de578a8d1214d6a73c790a896f0a90 (patch) | |
| tree | 01ce885560776c7918e0acd75a85b95a981d9792 /src/lib/hints.h | |
| parent | a842e3bb5c9900ee14c02d8fcf0f614f32783b4b (diff) | |
Add some hints for violations of SMPTE Bv2.1 with subtitles and closed
captions.
Diffstat (limited to 'src/lib/hints.h')
| -rw-r--r-- | src/lib/hints.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/lib/hints.h b/src/lib/hints.h index b5a26998d..e10037763 100644 --- a/src/lib/hints.h +++ b/src/lib/hints.h @@ -44,10 +44,17 @@ public: boost::signals2::signal<void (void)> Pulse; boost::signals2::signal<void (void)> Finished; + /* For tests only */ + void join (); + private: + friend struct hint_subtitle_too_early; + void thread (); void hint (std::string h); void text (PlayerText text, TextType type, dcpomatic::DCPTimePeriod period); + void closed_caption (PlayerText text, dcpomatic::DCPTimePeriod period); + void open_subtitle (PlayerText text, dcpomatic::DCPTimePeriod period); boost::shared_ptr<const Film> film () const; void check_big_font_files (); @@ -69,7 +76,14 @@ private: bool _long_ccap; bool _overlap_ccap; bool _too_many_ccap_lines; - boost::optional<dcpomatic::DCPTimePeriod> _last; + boost::optional<dcpomatic::DCPTimePeriod> _last_ccap; + + bool _early_subtitle; + bool _short_subtitle; + bool _subtitles_too_close; + bool _too_many_subtitle_lines; + bool _long_subtitle; + boost::optional<dcpomatic::DCPTimePeriod> _last_subtitle; boost::atomic<bool> _stop; }; |
