7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_PES_PACKET_GENERATOR_H_
8 #define PACKAGER_MEDIA_FORMATS_MP2T_PES_PACKET_GENERATOR_H_
13 #include <packager/macros/classes.h>
14 #include <packager/media/base/media_sample.h>
15 #include <packager/media/base/stream_info.h>
20 class AACAudioSpecificConfig;
21 class NalUnitToByteStreamConverter;
65 friend class PesPacketGeneratorTest;
67 StreamType stream_type_;
69 const int32_t transport_stream_timestamp_offset_ = 0;
72 double timescale_scale_ = 0.0;
74 std::unique_ptr<NalUnitToByteStreamConverter> converter_;
75 std::unique_ptr<AACAudioSpecificConfig> adts_converter_;
79 std::unique_ptr<PesPacket> current_processing_pes_;
82 uint8_t audio_stream_id_ = 0;
83 std::list<std::unique_ptr<PesPacket>> pes_packets_;
All the methods that are virtual are virtual for mocking.