diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-07-29 11:44:05 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-07-29 11:44:05 +0200 |
| commit | 09860271bb6d03b3937c08bffb4c672697f6d711 (patch) | |
| tree | f6bb9573b687ec7877a5412bf151af9d13676ee0 /src/lib/dcp_examiner.h | |
| parent | 2d7ba63fdbe2c91a1ca22ffa5b511ec1a2420b29 (diff) | |
Recover information about closed caption tracks when loading DCPsv2.15.93
so that they can be displayed.
Diffstat (limited to 'src/lib/dcp_examiner.h')
| -rw-r--r-- | src/lib/dcp_examiner.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/dcp_examiner.h b/src/lib/dcp_examiner.h index 78d2befd3..cb68aa523 100644 --- a/src/lib/dcp_examiner.h +++ b/src/lib/dcp_examiner.h @@ -25,6 +25,8 @@ #include "video_examiner.h" #include "audio_examiner.h" #include "dcp.h" +#include "dcp_text_track.h" +#include "dcpomatic_assert.h" #include <dcp/dcp_time.h> class DCPContent; @@ -95,6 +97,11 @@ public: return _text_count[type]; } + DCPTextTrack dcp_text_track (int i) const { + DCPOMATIC_ASSERT (i >= 0 && i < static_cast<int>(_dcp_text_tracks.size())); + return _dcp_text_tracks[i]; + } + bool kdm_valid () const { return _kdm_valid; } @@ -157,6 +164,8 @@ private: bool _has_audio; /** number of different assets of each type (OCAP/CCAP) */ int _text_count[TEXT_COUNT]; + /** the DCPTextTracks for each of our CCAPs */ + std::vector<DCPTextTrack> _dcp_text_tracks; bool _encrypted; bool _needs_assets; bool _kdm_valid; |
