8 #ifndef PPAPI_C_SAMSUNG_PPB_MEDIA_DATA_SOURCE_SAMSUNG_H_
9 #define PPAPI_C_SAMSUNG_PPB_MEDIA_DATA_SOURCE_SAMSUNG_H_
25 #define PPB_MEDIADATASOURCE_SAMSUNG_INTERFACE_1_0 \
26 "PPB_MediaDataSource_Samsung;1.0"
27 #define PPB_MEDIADATASOURCE_SAMSUNG_INTERFACE \
28 PPB_MEDIADATASOURCE_SAMSUNG_INTERFACE_1_0
30 #define PPB_URLDATASOURCE_SAMSUNG_INTERFACE_1_0 "PPB_URLDataSource_Samsung;1.0"
31 #define PPB_URLDATASOURCE_SAMSUNG_INTERFACE \
32 PPB_URLDATASOURCE_SAMSUNG_INTERFACE_1_0
34 #define PPB_ESDATASOURCE_SAMSUNG_INTERFACE_1_0 "PPB_ESDataSource_Samsung;1.0"
35 #define PPB_ESDATASOURCE_SAMSUNG_INTERFACE \
36 PPB_ESDATASOURCE_SAMSUNG_INTERFACE_1_0
38 #define PPB_ELEMENTARYSTREAM_SAMSUNG_INTERFACE_1_0 \
39 "PPB_ElementaryStream_Samsung;1.0"
40 #define PPB_ELEMENTARYSTREAM_SAMSUNG_INTERFACE \
41 PPB_ELEMENTARYSTREAM_SAMSUNG_INTERFACE_1_0
43 #define PPB_AUDIOELEMENTARYSTREAM_SAMSUNG_INTERFACE_1_0 \
44 "PPB_AudioElementaryStream_Samsung;1.0"
45 #define PPB_AUDIOELEMENTARYSTREAM_SAMSUNG_INTERFACE \
46 PPB_AUDIOELEMENTARYSTREAM_SAMSUNG_INTERFACE_1_0
48 #define PPB_VIDEOELEMENTARYSTREAM_SAMSUNG_INTERFACE_1_0 \
49 "PPB_VideoElementaryStream_Samsung;1.0"
50 #define PPB_VIDEOELEMENTARYSTREAM_SAMSUNG_INTERFACE \
51 PPB_VIDEOELEMENTARYSTREAM_SAMSUNG_INTERFACE_1_0
444 uint32_t init_data_size,
445 const void* init_data,
590 uint32_t extra_data_size,
591 const void* extra_data);
701 uint32_t* denominator);
716 uint32_t denominator);
728 uint32_t extra_data_size,
729 const void* extra_data);
int32_t(* GetBitsPerChannel)(PP_Resource stream)
void(* GetVideoFrameSize)(PP_Resource stream, struct PP_Size *size)
PP_VideoFrame_Format_Samsung(* GetVideoFrameFormat)(PP_Resource stream)
int32_t(* SetEndOfStream)(PP_Resource data_source, struct PP_CompletionCallback callback)
void(* SetSamplesPerSecond)(PP_Resource stream, int32_t samples_per_second)
PP_Bool(* IsESDataSource)(PP_Resource resource)
PP_Bool(* IsAudioElementaryStream)(PP_Resource resource)
void(* SetChannelLayout)(PP_Resource stream, PP_ChannelLayout_Samsung channel_layout)
PP_Bool(* IsURLDataSource)(PP_Resource resource)
void(* SetCodecExtraData)(PP_Resource stream, uint32_t extra_data_size, const void *extra_data)
void(* SetVideoCodecProfile)(PP_Resource stream, PP_VideoCodec_Profile_Samsung profile)
int32_t(* SetDuration)(PP_Resource data_source, PP_TimeDelta duration, struct PP_CompletionCallback callback)
void(* SetCodecExtraData)(PP_Resource stream, uint32_t extra_data_size, const void *extra_data)
PP_ChannelLayout_Samsung(* GetChannelLayout)(PP_Resource stream)
PP_AudioCodec_Profile_Samsung
PP_Resource(* Create)(PP_Instance instance, const char *url)
PP_VideoCodec_Profile_Samsung
void(* SetBitsPerChannel)(PP_Resource stream, int32_t bits_per_channel)
PP_AudioCodec_Type_Samsung
void(* SetSampleFormat)(PP_Resource stream, PP_SampleFormat_Samsung sample_format)
PP_Resource(* Create)(PP_Instance instance)
int32_t(* AppendPacket)(PP_Resource stream, const struct PP_ESPacket *packet, struct PP_CompletionCallback callback)
int32_t(* AppendEncryptedPacket)(PP_Resource stream, const struct PP_ESPacket *packet, const struct PP_ESPacketEncryptionInfo *encryption_info, struct PP_CompletionCallback callback)
void(* SetAudioCodecType)(PP_Resource stream, PP_AudioCodec_Type_Samsung audio_codec)
int32_t(* SetStreamingProperty)(PP_Resource resource, PP_StreamingProperty type, struct PP_Var value, struct PP_CompletionCallback callback)
int32_t(* AddStream)(PP_Resource data_source, PP_ElementaryStream_Type_Samsung stream_type, const struct PPP_ElementaryStreamListener_Samsung_1_0 *listener, void *user_data, PP_Resource *stream, struct PP_CompletionCallback callback)
int32_t(* GetSamplesPerSecond)(PP_Resource stream)
PP_SampleFormat_Samsung(* GetSampleFormat)(PP_Resource stream)
void(* SetVideoFrameFormat)(PP_Resource stream, PP_VideoFrame_Format_Samsung frame_format)
void(* SetVideoFrameSize)(PP_Resource stream, const struct PP_Size *size)
int32_t(* Flush)(PP_Resource stream, struct PP_CompletionCallback callback)
PP_VideoFrame_Format_Samsung
void(* GetFrameRate)(PP_Resource stream, uint32_t *numerator, uint32_t *denominator)
PP_AudioCodec_Profile_Samsung(* GetAudioCodecProfile)(PP_Resource stream)
int32_t(* GetStreamingProperty)(PP_Resource resource, PP_StreamingProperty type, struct PP_Var *value, struct PP_CompletionCallback callback)
int32_t(* InitializeDone)(PP_Resource stream, struct PP_CompletionCallback callback)
PP_VideoCodec_Type_Samsung
PP_ElementaryStream_Type_Samsung(* GetStreamType)(PP_Resource resource)
void(* SetAudioCodecProfile)(PP_Resource stream, PP_AudioCodec_Profile_Samsung profile)
PP_Bool(* IsVideoElementaryStream)(PP_Resource resource)
void(* SetVideoCodecType)(PP_Resource stream, PP_VideoCodec_Type_Samsung video_codec)
PP_VideoCodec_Type_Samsung(* GetVideoCodecType)(PP_Resource stream)
PP_ElementaryStream_Type_Samsung
int32_t(* SetDRMInitData)(PP_Resource stream, const char *type, uint32_t init_data_size, const void *init_data, struct PP_CompletionCallback callback)
PP_Bool(* IsElementaryStream)(PP_Resource resource)
PP_VideoCodec_Profile_Samsung(* GetVideoCodecProfile)(PP_Resource stream)
void(* SetFrameRate)(PP_Resource stream, uint32_t numerator, uint32_t denominator)
PP_AudioCodec_Type_Samsung(* GetAudioCodecType)(PP_Resource stream)