DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
packager_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 // Packager utility functions.
8 
9 #ifndef APP_PACKAGER_UTIL_H_
10 #define APP_PACKAGER_UTIL_H_
11 
12 #include <gflags/gflags.h>
13 #include <memory>
14 #include <string>
15 #include <vector>
16 
17 DECLARE_bool(dump_stream_info);
18 
19 namespace shaka {
20 
21 struct MpdOptions;
22 
23 namespace media {
24 
25 class KeySource;
26 class MediaStream;
27 class Muxer;
28 struct MuxerOptions;
29 
31 void DumpStreamInfo(const std::vector<std::unique_ptr<MediaStream>>& streams);
32 
37 std::unique_ptr<KeySource> CreateEncryptionKeySource();
38 
43 std::unique_ptr<KeySource> CreateDecryptionKeySource();
44 
46 bool AssignFlagsFromProfile();
47 
49 bool GetMuxerOptions(MuxerOptions* muxer_options);
50 
52 bool GetMpdOptions(MpdOptions* mpd_options);
53 
63 bool AddStreamToMuxer(const std::vector<std::unique_ptr<MediaStream>>& streams,
64  const std::string& stream_selector,
65  const std::string& language_override,
66  Muxer* muxer);
67 
68 } // namespace media
69 } // namespace shaka
70 
71 #endif // APP_PACKAGER_UTIL_H_