2023-12-01 17:32:19 +00:00
|
|
|
// Copyright 2014 Google LLC. All rights reserved.
|
2014-05-22 02:16:17 +00:00
|
|
|
//
|
|
|
|
// 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_
|
|
|
|
|
2023-12-01 17:32:19 +00:00
|
|
|
#include <cstdint>
|
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2023-12-01 17:32:19 +00:00
|
|
|
|
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 {
|
2018-06-22 01:14:34 +00:00
|
|
|
int64_t start_time;
|
|
|
|
int64_t duration;
|
2014-05-22 02:16:17 +00:00
|
|
|
// 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.
|
2019-03-22 00:12:30 +00:00
|
|
|
int repeat;
|
2014-05-22 02:16:17 +00:00
|
|
|
};
|
2023-12-01 17:32:19 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|
2014-05-22 02:16:17 +00:00
|
|
|
|
|
|
|
#endif // MPD_BASE_SEGMENT_INFO_H_
|