Shaka Packager SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
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 MEDIA_FORMATS_WEBM_WEBM_CRYPTO_HELPERS_H_
6 #define MEDIA_FORMATS_WEBM_WEBM_CRYPTO_HELPERS_H_
7 
8 #include <stdint.h>
9 #include <memory>
10 #include "packager/media/base/decrypt_config.h"
11 
12 namespace shaka {
13 namespace media {
14 
23 bool WebMCreateDecryptConfig(const uint8_t* data,
24  int data_size,
25  const uint8_t* key_id,
26  size_t key_id_size,
27  std::unique_ptr<DecryptConfig>* decrypt_config,
28  int* data_offset);
29 
30 } // namespace media
31 } // namespace shaka
32 
33 #endif // MEDIA_FORMATS_WEBM_WEBM_CRYPT_HELPERS_H_