shaka-packager/packager/mpd/base/segment_info.h

32 lines
999 B
C
Raw Normal View History

// Copyright 2014 Google LLC. 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_
#include <cstdint>
namespace shaka {
/// 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 {
int64_t start_time;
int64_t 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.
int repeat;
int64_t start_segment_number;
};
} // namespace shaka
#endif // MPD_BASE_SEGMENT_INFO_H_