5 #ifndef PACKAGER_MEDIA_FORMATS_WEBM_WEBM_CONTENT_ENCODINGS_CLIENT_H_
6 #define PACKAGER_MEDIA_FORMATS_WEBM_WEBM_CONTENT_ENCODINGS_CLIENT_H_
11 #include <packager/macros/classes.h>
12 #include <packager/media/formats/webm/webm_content_encodings.h>
13 #include <packager/media/formats/webm/webm_parser.h>
18 typedef std::vector<std::unique_ptr<ContentEncoding>> ContentEncodings;
26 const ContentEncodings& content_encodings()
const;
30 bool OnListEnd(
int id)
override;
31 bool OnUInt(
int id, int64_t val)
override;
32 bool OnBinary(
int id,
const uint8_t* data,
int size)
override;
35 std::unique_ptr<ContentEncoding> cur_content_encoding_;
36 bool content_encryption_encountered_;
37 ContentEncodings content_encodings_;
40 bool content_encodings_ready_;
Parser for WebM ContentEncodings element.
WebMParserClient * OnListStart(int id) override
WebMParserClient methods.
All the methods that are virtual are virtual for mocking.