7 #ifndef MEDIA_BASE_MEDIA_PARSER_H_
8 #define MEDIA_BASE_MEDIA_PARSER_H_
13 #include "packager/base/callback.h"
14 #include "packager/base/compiler_specific.h"
15 #include "packager/base/memory/ref_counted.h"
16 #include "packager/base/memory/scoped_ptr.h"
17 #include "packager/media/base/container_names.h"
34 typedef base::Callback<
35 void(
const std::vector<scoped_refptr<StreamInfo> >& stream_info)>
InitCB;
42 typedef base::Callback<bool(uint32_t track_id,
43 const scoped_refptr<MediaSample>& media_sample)>
60 virtual bool Flush() WARN_UNUSED_RESULT = 0;
64 virtual
bool Parse(const uint8_t* buf,
int size) WARN_UNUSED_RESULT = 0;
73 #endif // MEDIA_BASE_MEDIA_PARSER_H_