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  EncryptionMode decryption_mode)
16  : key_id_(key_id),
17  iv_(iv),
18  subsamples_(subsamples),
19  decryption_mode_(decryption_mode) {
20  CHECK_GT(key_id.size(), 0u);
21 }
22 
23 DecryptConfig::~DecryptConfig() {}
24 
25 } // namespace media
26 } // namespace edash_packager
DecryptConfig(const std::vector< uint8_t > &key_id, const std::vector< uint8_t > &iv, const std::vector< SubsampleEntry > &subsamples, EncryptionMode decryption_mode)