5 #ifndef MEDIA_BASE_DECRYPT_CONFIG_H_
6 #define MEDIA_BASE_DECRYPT_CONFIG_H_
13 #include "packager/base/memory/scoped_ptr.h"
14 #include "packager/media/base/fourccs.h"
16 namespace edash_packager {
30 : clear_bytes(0), cipher_bytes(0) {}
32 : clear_bytes(clear_bytes), cipher_bytes(cipher_bytes) {}
35 uint32_t cipher_bytes;
52 const std::vector<uint8_t>& iv,
53 const std::vector<SubsampleEntry>& subsamples);
64 const std::vector<uint8_t>& iv,
65 const std::vector<SubsampleEntry>& subsamples,
66 FourCC protection_scheme);
70 const std::vector<uint8_t>& key_id()
const {
return key_id_; }
71 const std::vector<uint8_t>& iv()
const {
return iv_; }
72 const std::vector<SubsampleEntry>& subsamples()
const {
return subsamples_; }
73 FourCC protection_scheme()
const {
return protection_scheme_; }
76 const std::vector<uint8_t> key_id_;
79 const std::vector<uint8_t> iv_;
83 const std::vector<SubsampleEntry> subsamples_;
85 const FourCC protection_scheme_;
93 #endif // MEDIA_BASE_DECRYPT_CONFIG_H_