2014-05-22 02:16:17 +00:00
|
|
|
// Copyright 2014 Google Inc. All rights reserved.
|
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
|
|
|
#ifndef MPD_BASE_SEGMENT_INFO_H_
|
|
|
|
#define MPD_BASE_SEGMENT_INFO_H_
|
|
|
|
|
2014-09-19 20:41:13 +00:00
|
|
|
namespace edash_packager {
|
2014-05-22 02:16:17 +00:00
|
|
|
/// Container for keeping track of information about a segment.
|
|
|
|
/// Used for keeping track of all the segments used for generating MPD with
|
|
|
|
/// dynamic profile.
|
|
|
|
struct SegmentInfo {
|
|
|
|
uint64 start_time;
|
|
|
|
uint64 duration;
|
|
|
|
// This is the number of times same duration segments are repeated not
|
|
|
|
// inclusive. In other words if this is the only one segment that starts at
|
|
|
|
// |start_time| and has |duration| but none others have |start_time| * N and
|
|
|
|
// |duration|, then this should be set to 0. The semantics is the same as S@r
|
|
|
|
// in the DASH MPD spec.
|
|
|
|
uint64 repeat;
|
|
|
|
};
|
2014-09-19 20:41:13 +00:00
|
|
|
} // namespace edash_packager
|
2014-05-22 02:16:17 +00:00
|
|
|
|
|
|
|
#endif // MPD_BASE_SEGMENT_INFO_H_
|