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