5 #ifndef PPAPI_CPP_SAMSUNG_STREAM_PARSER_SAMSUNG_H_
6 #define PPAPI_CPP_SAMSUNG_STREAM_PARSER_SAMSUNG_H_
8 #include "ppapi/cpp/instance.h"
9 #include "ppapi/cpp/var.h"
10 #include "ppapi/cpp/dev/buffer_dev.h"
11 #include "ppapi/c/samsung/pp_media_common_samsung.h"
12 #include "ppapi/c/samsung/pp_stream_parser_samsung.h"
40 bool Init(
int32_t stream_id,
bool result, PP_MicrosecondsDelta duration);
55 const struct PP_Frames frames[]);
67 uint32_t init_data_size, uint8_t* init_data);
96 #endif // PPAPI_CPP_SAMSUNG_STREAM_PARSER_SAMSUNG_H_
bool NeedKey(int32_t stream_id, const Var &type, uint32_t init_data_size, uint8_t *init_data)
bool Init(int32_t stream_id, bool result, PP_MicrosecondsDelta duration)
bool NewAudioConfig(int32_t stream_id, const PP_SP_AudioDecoderConfig &)
virtual ~StreamParser_Samsung()
Destructor.
Interface allowing NaCl applicaton to implement its own stream demuxer.
bool RegisterParser(const char *type)
bool NewBuffers(int32_t stream_id, PP_StreamType type, int32_t track_id, PP_Resource buffer, uint32_t frames_count, const struct PP_Frames frames[])
void EndOfSegment(int32_t stream_id)
Signals end of segment for given |stream_id|.
virtual void Flush(int32_t stream_id)=0
StreamParser_Samsung(Instance *instance)
Creates StreamParser_Samsung associated with given |instance|.
void NewMediaSegment(int32_t stream_id, PP_MicrosecondsDelta timestamp)
bool NewVideoConfig(int32_t stream_id, const PP_SP_VideoDecoderConfig &)
A generic type used for passing data types between the module and the page.
virtual void Close(int32_t stream_id)=0
Called when a parser must be "closed". Used for flushes the current parser.
virtual bool Parse(int32_t stream_id, Buffer_Dev data)=0