7 #ifndef PACKAGER_MEDIA_FORMATS_TTML_TTML_GENERATOR_H_
8 #define PACKAGER_MEDIA_FORMATS_TTML_TTML_GENERATOR_H_
14 #include "packager/media/base/text_sample.h"
15 #include "packager/media/base/text_stream_info.h"
16 #include "packager/mpd/base/xml/xml_node.h"
27 static const char* kTtNamespace;
29 void Initialize(
const std::map<std::string, TextRegion>& regions,
30 const std::string& language,
35 bool Dump(std::string* result)
const;
41 size_t* image_count)
const;
45 size_t* image_count)
const;
47 std::list<TextSample> samples_;
48 std::map<std::string, TextRegion> regions_;
49 std::string language_;
52 mutable uint32_t region_id_ = 0;
All the methods that are virtual are virtual for mocking.