Shaka Packager SDK
Loading...
Searching...
No Matches
packager_util.h
1// Copyright 2014 Google LLC. 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
14#include <packager/media/base/fourccs.h>
15
16namespace shaka {
17
18class Status;
19struct DecryptionParams;
20struct EncryptionParams;
21struct MpdOptions;
22struct MpdParams;
23
24namespace media {
25
26class MediaHandler;
27class KeySource;
28
35std::unique_ptr<KeySource> CreateEncryptionKeySource(
36 FourCC protection_scheme,
37 const EncryptionParams& encryption_params);
38
43std::unique_ptr<KeySource> CreateDecryptionKeySource(
44 const DecryptionParams& decryption_params);
45
47MpdOptions GetMpdOptions(bool on_demand_profile, const MpdParams& mpd_params);
48
49} // namespace media
50} // namespace shaka
51
52#endif // PACKAGER_APP_PACKAGER_UTIL_H_
All the methods that are virtual are virtual for mocking.