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 PACKAGER_APP_PACKAGER_UTIL_H_
10 #define PACKAGER_APP_PACKAGER_UTIL_H_
11 
12 #include <gflags/gflags.h>
13 
14 #include <memory>
15 
16 DECLARE_bool(dump_stream_info);
17 
18 namespace shaka {
19 
20 struct MpdOptions;
21 
22 namespace media {
23 
24 class MediaHandler;
25 class KeySource;
26 class Status;
27 struct ChunkingOptions;
28 struct EncryptionOptions;
29 struct MuxerOptions;
30 
35 std::unique_ptr<KeySource> CreateEncryptionKeySource();
36 
41 std::unique_ptr<KeySource> CreateDecryptionKeySource();
42 
44 ChunkingOptions GetChunkingOptions();
45 
47 EncryptionOptions GetEncryptionOptions();
48 
50 MuxerOptions GetMuxerOptions();
51 
53 MpdOptions GetMpdOptions(bool on_demand_profile);
54 
59 Status ConnectHandlers(std::vector<std::shared_ptr<MediaHandler>>& handlers);
60 
61 } // namespace media
62 } // namespace shaka
63 
64 #endif // PACKAGER_APP_PACKAGER_UTIL_H_