7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_
8 #define PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_
14 #include "packager/base/memory/scoped_ptr.h"
15 #include "packager/media/base/media_stream.h"
16 #include "packager/media/file/file.h"
17 #include "packager/media/file/file_closer.h"
18 #include "packager/media/formats/mp2t/pes_packet.h"
20 namespace edash_packager {
53 virtual bool NewSegment(
const std::string& file_name);
64 virtual bool AddPesPacket(scoped_ptr<PesPacket> pes_packet);
67 std::vector<uint8_t> psi_ts_packets_;
69 uint32_t time_scale_ = 0u;
75 scoped_ptr<File, FileCloser> current_file_;
84 #endif // PACKAGER_MEDIA_FORMATS_MP2T_TS_WRITER_H_