7 #ifndef MEDIA_FORMATS_MP4_FRAGMENTER_H_
8 #define MEDIA_FORMATS_MP4_FRAGMENTER_H_
13 #include "packager/base/logging.h"
14 #include "packager/media/base/status.h"
25 struct SegmentReference;
55 uint64_t fragment_duration()
const {
return fragment_duration_; }
56 uint64_t first_sap_time()
const {
return first_sap_time_; }
57 uint64_t earliest_presentation_time()
const {
58 return earliest_presentation_time_;
60 bool fragment_initialized()
const {
return fragment_initialized_; }
61 bool fragment_finalized()
const {
return fragment_finalized_; }
69 bool use_decoding_timestamp_in_timeline) {
70 use_decoding_timestamp_in_timeline_ = use_decoding_timestamp_in_timeline;
86 bool use_decoding_timestamp_in_timeline_;
88 uint64_t seek_preroll_;
89 bool fragment_initialized_;
90 bool fragment_finalized_;
91 uint64_t fragment_duration_;
92 int64_t earliest_presentation_time_;
93 int64_t first_sap_time_;
94 std::unique_ptr<BufferWriter> data_;
103 DCHECK(default_value);
104 DCHECK(!entries->empty());
106 typename std::vector<T>::const_iterator it = entries->begin();
108 for (; it < entries->end(); ++it)
114 *default_value = value;
122 #endif // MEDIA_FORMATS_MP4_FRAGMENTER_H_