DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs
muxer_util.h
1 // Copyright 2014 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 //
7 // Muxer utility functions.
8 
9 #ifndef MEDIA_BASE_MUXER_UTIL_H_
10 #define MEDIA_BASE_MUXER_UTIL_H_
11 
12 #include <stdint.h>
13 
14 #include <string>
15 
16 namespace edash_packager {
17 namespace media {
18 
23 // ISO/IEC 23009-1:2012 5.3.9.4.4, false otherwise.
24 bool ValidateSegmentTemplate(const std::string& segment_template);
25 
33 std::string GetSegmentName(const std::string& segment_template,
34  uint64_t segment_start_time,
35  uint32_t segment_index,
36  uint32_t bandwidth);
37 
38 } // namespace media
39 } // namespace edash_packager
40 
41 #endif // MEDIA_BASE_MUXER_UTIL_H_