7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_ES_PARSER_DVB_H_
8 #define PACKAGER_MEDIA_FORMATS_MP2T_ES_PARSER_DVB_H_
11 #include <unordered_map>
13 #include <packager/media/base/byte_queue.h>
14 #include <packager/media/formats/dvb/dvb_sub_parser.h>
15 #include <packager/media/formats/mp2t/es_parser.h>
25 const NewStreamInfoCB& new_stream_info_cb,
26 const EmitTextSampleCB& emit_sample_cb,
27 const uint8_t* descriptor,
28 size_t descriptor_length);
32 bool Parse(
const uint8_t* buf,
int size, int64_t pts, int64_t dts)
override;
33 bool Flush()
override;
34 void Reset()
override;
40 bool ParseInternal(
const uint8_t* data,
size_t size, int64_t pts);
45 NewStreamInfoCB new_stream_info_cb_;
46 EmitTextSampleCB emit_sample_cb_;
49 std::unordered_map<uint16_t, DvbSubParser> parsers_;
51 std::unordered_map<uint16_t, std::string> languages_;
52 bool sent_info_ =
false;
All the methods that are virtual are virtual for mocking.