X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_examiner.h;h=6b88a3c0d412d13d2cf636b7ac49854a28dca682;hb=ff639b3cf30afcc097bfd21d39c8d15f466cadd6;hp=a5bf2434e8d23ca28a510bc762a4409cb65c105f;hpb=86eb90b563efb7ef093d5b17a5d6db0fc330e301;p=dcpomatic.git diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h index a5bf2434e..6b88a3c0d 100644 --- a/src/lib/dcp_examiner.h +++ b/src/lib/dcp_examiner.h @@ -131,7 +131,8 @@ public: } dcp::ContentKind content_kind () const { - return _content_kind; + DCPOMATIC_ASSERT(_content_kind); + return *_content_kind; } std::string cpl () const { @@ -166,6 +167,11 @@ public: return _atmos_edit_rate; } + /** @return fonts in each reel */ + std::vector>> fonts() const { + return _fonts; + } + private: boost::optional _video_frame_rate; boost::optional _video_size; @@ -189,7 +195,7 @@ private: bool _kdm_valid = false; boost::optional _standard; bool _three_d = false; - dcp::ContentKind _content_kind; + boost::optional _content_kind; std::string _cpl; std::list _reel_lengths; std::map _markers; @@ -198,4 +204,5 @@ private: bool _has_atmos = false; Frame _atmos_length = 0; dcp::Fraction _atmos_edit_rate; + std::vector>> _fonts; };