X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fdcp_examiner.h;h=66f694f729c70aac2a92f66ed77c6dac2c3c0209;hp=3fedaca06aded36f75f4beacd85de8ef2fd954ee;hb=da44da6f31f97d39ca91c35955e573e76371f2c2;hpb=8fedaaa75c4586a4cc7ffb393bd71d1fdb091dc8 diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h index 3fedaca06..66f694f72 100644 --- a/src/lib/dcp_examiner.h +++ b/src/lib/dcp_examiner.h @@ -90,6 +90,10 @@ public: return _audio_frame_rate.get_value_or (48000); } + boost::optional audio_language () const { + return _audio_language; + } + /** @param type TEXT_OPEN_SUBTITLE or TEXT_CLOSED_CAPTION. * @return Number of assets of this type in this DCP. */ @@ -97,6 +101,10 @@ public: return _text_count[static_cast(type)]; } + boost::optional open_subtitle_language () const { + return _open_subtitle_language; + } + DCPTextTrack dcp_text_track (int i) const { DCPOMATIC_ASSERT (i >= 0 && i < static_cast(_dcp_text_tracks.size())); return _dcp_text_tracks[i]; @@ -162,8 +170,10 @@ private: bool _has_video = false; /** true if this DCP has audio content (but false if it has unresolved references to audio content) */ bool _has_audio = false; + boost::optional _audio_language; /** number of different assets of each type (OCAP/CCAP) */ int _text_count[static_cast(TextType::COUNT)]; + boost::optional _open_subtitle_language; /** the DCPTextTracks for each of our CCAPs */ std::vector _dcp_text_tracks; bool _encrypted = false;