5 #ifndef MEDIA_BASE_DECRYPT_CONFIG_H_
6 #define MEDIA_BASE_DECRYPT_CONFIG_H_
13 #include "packager/base/macros.h"
14 #include "packager/media/base/fourccs.h"
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);
68 const std::vector<uint8_t>& iv,
69 const std::vector<SubsampleEntry>& subsamples,
70 FourCC protection_scheme,
71 uint8_t crypt_byte_block,
72 uint8_t skip_byte_block);
76 const std::vector<uint8_t>& key_id()
const {
return key_id_; }
77 const std::vector<uint8_t>& iv()
const {
return iv_; }
78 const std::vector<SubsampleEntry>& subsamples()
const {
return subsamples_; }
79 FourCC protection_scheme()
const {
return protection_scheme_; }
80 uint8_t crypt_byte_block()
const {
return crypt_byte_block_; }
81 uint8_t skip_byte_block()
const {
return skip_byte_block_; }
84 const std::vector<uint8_t> key_id_;
87 const std::vector<uint8_t> iv_;
91 const std::vector<SubsampleEntry> subsamples_;
93 const FourCC protection_scheme_;
95 const uint8_t crypt_byte_block_;
96 const uint8_t skip_byte_block_;
104 #endif // MEDIA_BASE_DECRYPT_CONFIG_H_