DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
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 #include "packager/media/base/key_source.h"
17 
18 namespace shaka {
19 namespace media {
20 
21 class StreamInfo;
22 
27 // ISO/IEC 23009-1:2012 5.3.9.4.4, false otherwise.
28 bool ValidateSegmentTemplate(const std::string& segment_template);
29 
37 std::string GetSegmentName(const std::string& segment_template,
38  uint64_t segment_start_time,
39  uint32_t segment_index,
40  uint32_t bandwidth);
41 
49 KeySource::TrackType GetTrackTypeForEncryption(const StreamInfo& stream_info,
50  uint32_t max_sd_pixels,
51  uint32_t max_hd_pixels,
52  uint32_t max_uhd1_pixels);
53 
54 } // namespace media
55 } // namespace shaka
56 
57 #endif // MEDIA_BASE_MUXER_UTIL_H_