5 #ifndef MEDIA_FORMATS_WEBM_WEBM_MEDIA_PARSER_H_
6 #define MEDIA_FORMATS_WEBM_WEBM_MEDIA_PARSER_H_
8 #include "packager/base/callback_forward.h"
9 #include "packager/base/memory/ref_counted.h"
10 #include "packager/media/base/byte_queue.h"
11 #include "packager/media/base/media_parser.h"
13 namespace edash_packager {
16 class WebMClusterParser;
26 KeySource* decryption_key_source)
override;
27 void Flush()
override;
28 bool Parse(
const uint8_t* buf,
int size)
override;
38 void ChangeState(State new_state);
48 int ParseInfoAndTracks(
const uint8_t* data,
int size);
57 int ParseCluster(
const uint8_t* data,
int size);
60 void OnEncryptedMediaInitData(
const std::string& key_id);
66 bool ignore_text_tracks_;
68 bool unknown_segment_size_;
70 scoped_ptr<WebMClusterParser> cluster_parser_;
79 #endif // MEDIA_FORMATS_WEBM_WEBM_MEDIA_PARSER_H_