X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fhints.h;h=9164e210659b4b278cab8b200fcad0bc767968a6;hp=b8a8313014c34ebd18855ef0cbf89f87d36b48ff;hb=cadca6e4f8c1d844f1b5fb9375023e627c674fa9;hpb=46b4349fb5a19523e5105812bf79fd0e7df9c51f 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 #include + 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 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; bool _long_ccap; bool _overlap_ccap;