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 GetMuxerOptions(MuxerOptions* muxer_options);
47 
49 bool GetMpdOptions(bool on_demand_profile, MpdOptions* mpd_options);
50 
60 bool AddStreamToMuxer(const std::vector<std::unique_ptr<MediaStream>>& streams,
61  const std::string& stream_selector,
62  const std::string& language_override,
63  Muxer* muxer);
64 
65 } // namespace media
66 } // namespace shaka
67 
68 #endif // APP_PACKAGER_UTIL_H_