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 <string>
14 #include <vector>
15 
16 #include "packager/base/memory/scoped_ptr.h"
17 
18 DECLARE_bool(dump_stream_info);
19 
20 namespace edash_packager {
21 
22 struct MpdOptions;
23 
24 namespace media {
25 
26 class KeySource;
27 class MediaStream;
28 class Muxer;
29 struct MuxerOptions;
30 
32 void DumpStreamInfo(const std::vector<MediaStream*>& streams);
33 
38 scoped_ptr<KeySource> CreateEncryptionKeySource();
39 
44 scoped_ptr<KeySource> CreateDecryptionKeySource();
45 
47 bool AssignFlagsFromProfile();
48 
50 bool GetMuxerOptions(MuxerOptions* muxer_options);
51 
53 bool GetMpdOptions(edash_packager::MpdOptions* mpd_options);
54 
64 bool AddStreamToMuxer(const std::vector<MediaStream*>& streams,
65  const std::string& stream_selector,
66  const std::string& language_override,
67  Muxer* muxer);
68 
69 } // namespace media
70 } // namespace edash_packager
71 
72 #endif // APP_PACKAGER_UTIL_H_
Defines Mpd Options.
Definition: mpd_options.h:17