DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
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 
10 #include "packager/base/memory/scoped_ptr.h"
11 #include "packager/media/base/decrypt_config.h"
12 
13 namespace edash_packager {
14 namespace media {
15 
24 bool WebMCreateDecryptConfig(const uint8_t* data,
25  int data_size,
26  const uint8_t* key_id,
27  int key_id_size,
28  scoped_ptr<DecryptConfig>* decrypt_config,
29  int* data_offset);
30 
31 } // namespace media
32 } // namespace edash_packager
33 
34 #endif // MEDIA_FORMATS_WEBM_WEBM_CRYPT_HELPERS_H_