X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fhints.h;h=985fa1910d9b10733b88a4f827687bf11de9455a;hp=2a5e8d4a024f4ba28148c7a42a80b2bcd61d3c2e;hb=HEAD;hpb=4d5d4d96ef3314d3242807c4e610565b769414ee diff --git a/src/lib/hints.h b/src/lib/hints.h index 2a5e8d4a0..0d65edc21 100644 --- a/src/lib/hints.h +++ b/src/lib/hints.h @@ -22,7 +22,6 @@ #include "audio_analyser.h" #include "signaller.h" #include "player_text.h" -#include "types.h" #include "dcp_text_track.h" #include "dcpomatic_time.h" #include "weak_film.h" @@ -51,17 +50,23 @@ public: /* For tests only */ void join (); + void disable_audio_analysis () { + _disable_audio_analysis = true; + } private: friend struct hint_subtitle_too_early; void thread (); + void scan_content(std::shared_ptr film); void hint (std::string h); void audio (std::shared_ptr audio, dcpomatic::DCPTime time); 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); + + void check_certificates (); void check_interop (); void check_big_font_files (); void check_few_audio_channels (); @@ -77,8 +82,9 @@ private: bool check_loudness (); void check_ffec_and_ffmc_in_smpte_feature (); void check_out_of_range_markers (); - void check_text_languages (); + void check_subtitle_languages(); void check_audio_language (); + void check_8_or_16_audio_channels(); boost::thread _thread; /** This is used to make a partial DCP containing only the subtitles and closed captions that @@ -103,4 +109,6 @@ private: boost::optional _last_subtitle; boost::atomic _stop; + + bool _disable_audio_analysis = false; };