DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs
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 MediaInfo;
28 class MediaStream;
29 class Muxer;
30 struct MuxerOptions;
31 
33 void DumpStreamInfo(const std::vector<MediaStream*>& streams);
34 
39 scoped_ptr<KeySource> CreateEncryptionKeySource();
40 
45 scoped_ptr<KeySource> CreateDecryptionKeySource();
46 
48 bool AssignFlagsFromProfile();
49 
51 bool GetMuxerOptions(MuxerOptions* muxer_options);
52 
54 bool GetMpdOptions(edash_packager::MpdOptions* mpd_options);
55 
65 bool AddStreamToMuxer(const std::vector<MediaStream*>& streams,
66  const std::string& stream_selector,
67  const std::string& language_override,
68  Muxer* muxer);
69 
70 } // namespace media
71 } // namespace edash_packager
72 
73 #endif // APP_PACKAGER_UTIL_H_
Defines Mpd Options.
Definition: mpd_options.h:13