7 #ifndef MEDIA_FORMATS_MP4_FRAGMENTER_H_
8 #define MEDIA_FORMATS_MP4_FRAGMENTER_H_
12 #include "packager/base/logging.h"
13 #include "packager/base/memory/ref_counted.h"
14 #include "packager/base/memory/scoped_ptr.h"
15 #include "packager/media/base/status.h"
26 struct SegmentReference;
56 uint64_t fragment_duration()
const {
return fragment_duration_; }
57 uint64_t first_sap_time()
const {
return first_sap_time_; }
58 uint64_t earliest_presentation_time()
const {
59 return earliest_presentation_time_;
61 bool fragment_initialized()
const {
return fragment_initialized_; }
62 bool fragment_finalized()
const {
return fragment_finalized_; }
79 uint64_t seek_preroll_;
80 bool fragment_initialized_;
81 bool fragment_finalized_;
82 uint64_t fragment_duration_;
83 int64_t presentation_start_time_;
84 int64_t earliest_presentation_time_;
85 int64_t first_sap_time_;
86 scoped_ptr<BufferWriter> data_;
95 DCHECK(default_value);
96 DCHECK(!entries->empty());
98 typename std::vector<T>::const_iterator it = entries->begin();
100 for (; it < entries->end(); ++it)
106 *default_value = value;
114 #endif // MEDIA_FORMATS_MP4_FRAGMENTER_H_