diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-01-11 21:20:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-01-17 20:13:23 +0100 |
| commit | e668388d1a552c845dbe9ae3cdcdfd979f2da582 (patch) | |
| tree | 4ab2077764723436dc4e3f1264963e107d55de83 /src/subtitle_asset.h | |
| parent | d95eacd3851a20e52202465ec22b4f72a4983dc8 (diff) | |
Change subtitle SubtitleAsset API to return const Subtitle pointers; add subtitles_in_reel().
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index 60ddc357..02976f7d 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -62,6 +62,7 @@ class FontNode; class TextNode; class SubtitleNode; class LoadFontNode; +class ReelAsset; namespace order { class Part; @@ -88,10 +89,9 @@ public: NoteHandler note ) const; - std::vector<std::shared_ptr<Subtitle>> subtitles_during (Time from, Time to, bool starting) const; - std::vector<std::shared_ptr<Subtitle>> const & subtitles () const { - return _subtitles; - } + std::vector<std::shared_ptr<const Subtitle>> subtitles_during (Time from, Time to, bool starting) const; + std::vector<std::shared_ptr<const Subtitle>> subtitles_in_reel(std::shared_ptr<const dcp::ReelAsset> asset) const; + std::vector<std::shared_ptr<const Subtitle>> subtitles () const; virtual void add (std::shared_ptr<Subtitle>); virtual void add_font (std::string id, dcp::ArrayData data) = 0; @@ -107,6 +107,8 @@ public: virtual std::vector<std::shared_ptr<LoadFontNode>> load_font_nodes () const = 0; + virtual int time_code_rate () const = 0; + std::string raw_xml () const { return _raw_xml; } |
