5 #ifndef PACKAGER_MEDIA_FORMATS_WEBM_WEBM_CONTENT_ENCODINGS_H_
6 #define PACKAGER_MEDIA_FORMATS_WEBM_WEBM_CONTENT_ENCODINGS_H_
24 kScopeAllFrameContents = 1,
25 kScopeTrackPrivateData = 2,
26 kScopeNextContentEncodingData = 4,
38 kEncAlgoNotEncrypted = 0,
47 kCipherModeInvalid = 0,
54 int64_t order()
const {
return order_; }
55 void set_order(int64_t order) { order_ = order; }
57 Scope scope()
const {
return scope_; }
58 void set_scope(Scope scope) { scope_ = scope; }
60 Type type()
const {
return type_; }
61 void set_type(Type type) { type_ = type; }
63 EncryptionAlgo encryption_algo()
const {
return encryption_algo_; }
64 void set_encryption_algo(EncryptionAlgo encryption_algo) {
65 encryption_algo_ = encryption_algo;
68 const std::string& encryption_key_id()
const {
return encryption_key_id_; }
69 void SetEncryptionKeyId(
const uint8_t* encryption_key_id,
int size);
71 CipherMode cipher_mode()
const {
return cipher_mode_; }
72 void set_cipher_mode(CipherMode mode) { cipher_mode_ = mode; }
75 ContentEncoding(
const ContentEncoding&) =
delete;
76 ContentEncoding& operator=(
const ContentEncoding&) =
delete;
81 EncryptionAlgo encryption_algo_;
82 std::string encryption_key_id_;
83 CipherMode cipher_mode_;
89 #endif // PACKAGER_MEDIA_FORMATS_WEBM_WEBM_CONTENT_ENCODINGS_H_