7 #ifndef PACKAGER_MEDIA_FORMATS_TTML_TTML_GENERATOR_H_
8 #define PACKAGER_MEDIA_FORMATS_TTML_TTML_GENERATOR_H_
13 #include <unordered_set>
15 #include <packager/media/base/text_sample.h>
16 #include <packager/media/base/text_stream_info.h>
17 #include <packager/mpd/base/xml/xml_node.h>
28 static const char* kTtNamespace;
30 void Initialize(
const std::map<std::string, TextRegion>& regions,
31 const std::string& language,
36 bool Dump(std::string* result)
const;
42 std::unordered_set<std::string>& fragmentStyles,
43 size_t* image_count)
const;
47 std::unordered_set<std::string>& fragmentStyles,
48 size_t* image_count)
const;
51 const std::unordered_set<std::string>& fragmentStyles)
const;
53 std::vector<std::string> usedRegions()
const;
54 bool isEbuTTTD()
const;
56 std::list<TextSample> samples_;
57 std::map<std::string, TextRegion> regions_;
58 std::string language_;
61 mutable uint32_t region_id_ = 0;
All the methods that are virtual are virtual for mocking.