5 #ifndef PACKAGER_MEDIA_BASE_DECRYPT_CONFIG_H_
6 #define PACKAGER_MEDIA_BASE_DECRYPT_CONFIG_H_
12 #include <packager/macros/classes.h>
13 #include <packager/media/base/fourccs.h>
29 : clear_bytes(0), cipher_bytes(0) {}
31 : clear_bytes(clear_bytes), cipher_bytes(cipher_bytes) {}
34 uint32_t cipher_bytes;
51 const std::vector<uint8_t>& iv,
52 const std::vector<SubsampleEntry>& subsamples);
67 const std::vector<uint8_t>& iv,
68 const std::vector<SubsampleEntry>& subsamples,
69 FourCC protection_scheme,
70 uint8_t crypt_byte_block,
71 uint8_t skip_byte_block);
80 subsamples_.emplace_back(clear_bytes, cipher_bytes);
86 const std::vector<uint8_t>& key_id()
const {
return key_id_; }
87 const std::vector<uint8_t>& iv()
const {
return iv_; }
88 const std::vector<SubsampleEntry>& subsamples()
const {
return subsamples_; }
89 FourCC protection_scheme()
const {
return protection_scheme_; }
90 uint8_t crypt_byte_block()
const {
return crypt_byte_block_; }
91 uint8_t skip_byte_block()
const {
return skip_byte_block_; }
94 const std::vector<uint8_t> key_id_;
97 const std::vector<uint8_t> iv_;
101 std::vector<SubsampleEntry> subsamples_;
103 const FourCC protection_scheme_;
105 const uint8_t crypt_byte_block_;
106 const uint8_t skip_byte_block_;
All the methods that are virtual are virtual for mocking.