Shaka Packager SDK
Loading...
Searching...
No Matches
webm_crypto_helpers.h
1// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef PACKAGER_MEDIA_FORMATS_WEBM_WEBM_CRYPTO_HELPERS_H_
6#define PACKAGER_MEDIA_FORMATS_WEBM_WEBM_CRYPTO_HELPERS_H_
7
8#include <cstddef>
9#include <cstdint>
10#include <memory>
11
12#include <packager/media/base/decrypt_config.h>
13
14namespace shaka {
15namespace media {
16
25bool WebMCreateDecryptConfig(const uint8_t* data,
26 int data_size,
27 const uint8_t* key_id,
28 size_t key_id_size,
29 std::unique_ptr<DecryptConfig>* decrypt_config,
30 int* data_offset);
31
32} // namespace media
33} // namespace shaka
34
35#endif // PACKAGER_MEDIA_FORMATS_WEBM_WEBM_CRYPT_HELPERS_H_
All the methods that are virtual are virtual for mocking.