Shaka Packager SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
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 <memory>
13 #include <vector>
14 
15 #include "packager/media/base/fourccs.h"
16 
17 namespace shaka {
18 
19 class Status;
20 struct DecryptionParams;
21 struct EncryptionParams;
22 struct MpdOptions;
23 struct MpdParams;
24 
25 namespace media {
26 
27 class MediaHandler;
28 class KeySource;
29 
36 std::unique_ptr<KeySource> CreateEncryptionKeySource(
37  FourCC protection_scheme,
38  const EncryptionParams& encryption_params);
39 
44 std::unique_ptr<KeySource> CreateDecryptionKeySource(
45  const DecryptionParams& decryption_params);
46 
48 MpdOptions GetMpdOptions(bool on_demand_profile, const MpdParams& mpd_params);
49 
50 } // namespace media
51 } // namespace shaka
52 
53 #endif // PACKAGER_APP_PACKAGER_UTIL_H_