7 #ifndef PACKAGER_MEDIA_BASE_MEDIA_PARSER_H_
8 #define PACKAGER_MEDIA_BASE_MEDIA_PARSER_H_
13 #include "packager/base/callback.h"
14 #include "packager/base/compiler_specific.h"
15 #include "packager/media/base/container_names.h"
33 typedef base::Callback<void(
34 const std::vector<std::shared_ptr<StreamInfo> >& stream_info)>
42 typedef base::Callback<bool(uint32_t track_id,
43 std::shared_ptr<MediaSample> media_sample)>
51 typedef base::Callback<bool(uint32_t track_id,
52 std::shared_ptr<TextSample> text_sample)>
73 virtual bool Flush() WARN_UNUSED_RESULT = 0;
77 virtual
bool Parse(const uint8_t* buf,
int size) WARN_UNUSED_RESULT = 0;
86 #endif // PACKAGER_MEDIA_BASE_MEDIA_PARSER_H_