DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
decrypt_config.cc
1 // Copyright (c) 2012 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 #include "packager/media/base/decrypt_config.h"
6 
7 #include "packager/base/logging.h"
8 
9 namespace edash_packager {
10 namespace media {
11 
12 DecryptConfig::DecryptConfig(const std::vector<uint8_t>& key_id,
13  const std::vector<uint8_t>& iv,
14  const std::vector<SubsampleEntry>& subsamples)
15  : DecryptConfig(key_id, iv, subsamples, FOURCC_cenc) {}
16 
17 DecryptConfig::DecryptConfig(const std::vector<uint8_t>& key_id,
18  const std::vector<uint8_t>& iv,
19  const std::vector<SubsampleEntry>& subsamples,
20  FourCC protection_scheme)
21  : key_id_(key_id),
22  iv_(iv),
23  subsamples_(subsamples),
24  protection_scheme_(protection_scheme) {
25  CHECK_GT(key_id.size(), 0u);
26 }
27 
28 DecryptConfig::~DecryptConfig() {}
29 
30 } // namespace media
31 } // namespace edash_packager
DecryptConfig(const std::vector< uint8_t > &key_id, const std::vector< uint8_t > &iv, const std::vector< SubsampleEntry > &subsamples)