X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_examiner.h;h=ef780dc3e9876d124493109315f5e1b3a9214bfd;hb=c008066160d85b9ec9e5485375d7baaa5d27bda2;hp=24a59dd342ebcbdd9bd4b142f7a9e6eddc8946fc;hpb=8d58a7c5f4320ad5c111e336c45e44d6b51ab509;p=dcpomatic.git diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h index 24a59dd34..ef780dc3e 100644 --- a/src/lib/dcp_examiner.h +++ b/src/lib/dcp_examiner.h @@ -27,8 +27,8 @@ class DCPExaminer : public VideoExaminer, public AudioExaminer public: DCPExaminer (boost::shared_ptr); - float video_frame_rate () const { - return _video_frame_rate.get_value_or (24); + boost::optional video_frame_rate () const { + return _video_frame_rate; } dcp::Size video_size () const { @@ -43,6 +43,14 @@ public: return _name; } + bool has_subtitles () const { + return _has_subtitles; + } + + bool encrypted () const { + return _encrypted; + } + int audio_channels () const { return _audio_channels.get_value_or (0); } @@ -55,6 +63,10 @@ public: return _audio_frame_rate.get_value_or (48000); } + bool kdm_valid () const { + return _kdm_valid; + } + private: boost::optional _video_frame_rate; boost::optional _video_size; @@ -63,4 +75,7 @@ private: boost::optional _audio_frame_rate; ContentTime _audio_length; std::string _name; + bool _has_subtitles; + bool _encrypted; + bool _kdm_valid; };