DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs
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 int data_offset,
15  const std::vector<SubsampleEntry>& subsamples)
16  : key_id_(key_id),
17  iv_(iv),
18  data_offset_(data_offset),
19  subsamples_(subsamples) {
20  CHECK_GT(key_id.size(), 0u);
21  CHECK_GE(data_offset, 0);
22 }
23 
24 DecryptConfig::~DecryptConfig() {}
25 
26 } // namespace media
27 } // namespace edash_packager
DecryptConfig(const std::vector< uint8_t > &key_id, const std::vector< uint8_t > &iv, const int data_offset, const std::vector< SubsampleEntry > &subsamples)