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 #include "packager/media/base/fourccs.h"
17 
18 DECLARE_bool(dump_stream_info);
19 
20 namespace shaka {
21 
22 struct MpdOptions;
23 
24 namespace media {
25 
26 class MediaHandler;
27 class KeySource;
28 class Status;
29 struct ChunkingOptions;
30 struct EncryptionOptions;
31 struct MuxerOptions;
32 
39 std::unique_ptr<KeySource> CreateEncryptionKeySource(FourCC protection_scheme);
40 
45 std::unique_ptr<KeySource> CreateDecryptionKeySource();
46 
48 ChunkingOptions GetChunkingOptions();
49 
51 EncryptionOptions GetEncryptionOptions();
52 
54 MuxerOptions GetMuxerOptions();
55 
57 MpdOptions GetMpdOptions(bool on_demand_profile);
58 
63 Status ConnectHandlers(std::vector<std::shared_ptr<MediaHandler>>& handlers);
64 
65 } // namespace media
66 } // namespace shaka
67 
68 #endif // PACKAGER_APP_PACKAGER_UTIL_H_