diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-09-20 23:55:47 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-10-07 00:02:47 +0100 |
| commit | c4d06c36ffc25273d3f35449a415b2b813d47a27 (patch) | |
| tree | 9651a111db048c01d1e85f7ed063fcc8ab79208d /src/subtitle_asset.h | |
| parent | 4e1c04f5448364f0931a2d2d5fe8dcc8619463fc (diff) | |
Rework subtitle writing to fix incorrect output with
in-line font changes (#952).
Diffstat (limited to 'src/subtitle_asset.h')
| -rw-r--r-- | src/subtitle_asset.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h index 62314263..e40118c4 100644 --- a/src/subtitle_asset.h +++ b/src/subtitle_asset.h @@ -48,6 +48,9 @@ namespace xmlpp { struct interop_dcp_font_test; struct smpte_dcp_font_test; +struct pull_fonts_test1; +struct pull_fonts_test2; +struct pull_fonts_test3; namespace dcp { @@ -58,6 +61,11 @@ class TextNode; class SubtitleNode; class LoadFontNode; +namespace order { + class Part; + class Context; +} + /** @class SubtitleAsset * @brief A parent for classes representing a file containing subtitles. * @@ -156,7 +164,13 @@ protected: std::list<Font> _fonts; private: + friend struct ::pull_fonts_test1; + friend struct ::pull_fonts_test2; + friend struct ::pull_fonts_test3; + void maybe_add_subtitle (std::string text, std::list<ParseState> const & parse_state); + + static void pull_fonts (boost::shared_ptr<order::Part> part); }; } |
