5 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_TS_SECTION_PES_H_
6 #define PACKAGER_MEDIA_FORMATS_MP2T_TS_SECTION_PES_H_
11 #include <packager/macros/classes.h>
12 #include <packager/media/base/byte_queue.h>
13 #include <packager/media/formats/mp2t/ts_section.h>
23 explicit TsSectionPes(std::unique_ptr<EsParser> es_parser);
27 bool Parse(
bool payload_unit_start_indicator,
30 bool Flush()
override;
31 void Reset()
override;
38 bool Emit(
bool emit_for_unknown_size);
41 bool ParseInternal(
const uint8_t* raw_pes,
int raw_pes_size);
49 std::unique_ptr<EsParser> es_parser_;
55 bool previous_pts_valid_;
56 int64_t previous_pts_;
57 bool previous_dts_valid_;
58 int64_t previous_dts_;
All the methods that are virtual are virtual for mocking.