7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_PES_PACKET_H_ 8 #define PACKAGER_MEDIA_FORMATS_MP2T_PES_PACKET_H_ 13 #include "packager/base/macros.h" 31 bool has_dts()
const {
return dts_ >= 0; }
33 bool has_pts()
const {
return pts_ >= 0; }
36 int64_t
dts()
const {
return dts_; }
43 int64_t
pts()
const {
return pts_; }
54 const std::vector<uint8_t>& data()
const {
return data_; }
59 uint8_t stream_id_ = 0;
64 bool is_key_frame_ =
false;
66 std::vector<uint8_t> data_;
75 #endif // PACKAGER_MEDIA_FORMATS_MP2T_PES_PACKET_H_
All the methods that are virtual are virtual for mocking.