7 #ifndef MEDIA_FORMATS_MP4_FRAGMENTER_H_
8 #define MEDIA_FORMATS_MP4_FRAGMENTER_H_
12 #include "packager/base/memory/ref_counted.h"
13 #include "packager/base/memory/scoped_ptr.h"
14 #include "packager/media/base/status.h"
16 namespace edash_packager {
24 struct SegmentReference;
53 uint64_t fragment_duration()
const {
return fragment_duration_; }
54 uint64_t first_sap_time()
const {
return first_sap_time_; }
55 uint64_t earliest_presentation_time()
const {
56 return earliest_presentation_time_;
58 bool fragment_initialized()
const {
return fragment_initialized_; }
59 bool fragment_finalized()
const {
return fragment_finalized_; }
77 bool fragment_initialized_;
78 bool fragment_finalized_;
79 uint64_t fragment_duration_;
80 int64_t presentation_start_time_;
81 int64_t earliest_presentation_time_;
82 int64_t first_sap_time_;
83 scoped_ptr<BufferWriter> data_;
84 scoped_ptr<BufferWriter> aux_data_;
93 DCHECK(default_value);
94 DCHECK(!entries->empty());
96 typename std::vector<T>::const_iterator it = entries->begin();
98 for (; it < entries->end(); ++it)
104 *default_value = value;
112 #endif // MEDIA_FORMATS_MP4_FRAGMENTER_H_