8 #ifndef PPAPI_C_SAMSUNG_PPB_MEDIA_DATA_SOURCE_SAMSUNG_H_
9 #define PPAPI_C_SAMSUNG_PPB_MEDIA_DATA_SOURCE_SAMSUNG_H_
11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_size.h"
17 #include "ppapi/c/pp_stdint.h"
18 #include "ppapi/c/pp_time.h"
19 #include "ppapi/c/pp_var.h"
20 #include "ppapi/c/samsung/pp_media_codecs_samsung.h"
21 #include "ppapi/c/samsung/pp_media_common_samsung.h"
22 #include "ppapi/c/samsung/pp_media_player_samsung.h"
24 #define PPB_MEDIADATASOURCE_SAMSUNG_INTERFACE_0_1 \
25 "PPB_MediaDataSource_Samsung;0.1"
26 #define PPB_MEDIADATASOURCE_SAMSUNG_INTERFACE \
27 PPB_MEDIADATASOURCE_SAMSUNG_INTERFACE_0_1
29 #define PPB_URLDATASOURCE_SAMSUNG_INTERFACE_0_1 "PPB_URLDataSource_Samsung;0.1"
30 #define PPB_URLDATASOURCE_SAMSUNG_INTERFACE \
31 PPB_URLDATASOURCE_SAMSUNG_INTERFACE_0_1
33 #define PPB_ESDATASOURCE_SAMSUNG_INTERFACE_0_1 "PPB_ESDataSource_Samsung;0.1"
34 #define PPB_ESDATASOURCE_SAMSUNG_INTERFACE \
35 PPB_ESDATASOURCE_SAMSUNG_INTERFACE_0_1
37 #define PPB_ELEMENTARYSTREAM_SAMSUNG_INTERFACE_0_1 \
38 "PPB_ElementaryStream_Samsung;0.1"
39 #define PPB_ELEMENTARYSTREAM_SAMSUNG_INTERFACE \
40 PPB_ELEMENTARYSTREAM_SAMSUNG_INTERFACE_0_1
42 #define PPB_AUDIOELEMENTARYSTREAM_SAMSUNG_INTERFACE_0_1 \
43 "PPB_AudioElementaryStream_Samsung;0.1"
44 #define PPB_AUDIOELEMENTARYSTREAM_SAMSUNG_INTERFACE \
45 PPB_AUDIOELEMENTARYSTREAM_SAMSUNG_INTERFACE_0_1
47 #define PPB_VIDEOELEMENTARYSTREAM_SAMSUNG_INTERFACE_0_1 \
48 "PPB_VideoElementaryStream_Samsung;0.1"
49 #define PPB_VIDEOELEMENTARYSTREAM_SAMSUNG_INTERFACE \
50 PPB_VIDEOELEMENTARYSTREAM_SAMSUNG_INTERFACE_0_1
52 #define PPB_TEXTELEMENTARYSTREAM_SAMSUNG_INTERFACE_0_1 \
53 "PPB_TextElementaryStream_Samsung;0.1"
54 #define PPB_TEXTELEMENTARYSTREAM_SAMSUNG_INTERFACE \
55 PPB_TEXTELEMENTARYSTREAM_SAMSUNG_INTERFACE_0_1
435 uint32_t init_data_size,
436 const void* init_data,
581 uint32_t extra_data_size,
582 const void* extra_data);
692 uint32_t* denominator);
707 uint32_t denominator);
719 uint32_t extra_data_size,
720 const void* extra_data);
void(* SetSubtitleType)(PP_Resource stream, PP_SubtitleType_Samsung type)
int32_t(* GetBitsPerChannel)(PP_Resource stream)
void(* SetVideoCodecType)(PP_Resource stream, PP_VideoCodec_Type_Samsung video_codec)
void(* GetVideoFrameSize)(PP_Resource stream, struct PP_Size *size)
int32_t(* SetDuration)(PP_Resource data_source, PP_TimeDelta duration, struct PP_CompletionCallback callback)
void(* SetSamplesPerSecond)(PP_Resource stream, int32_t samples_per_second)
PP_Bool(* IsURLDataSource)(PP_Resource resource)
PP_VideoCodec_Type_Samsung(* GetVideoCodecType)(PP_Resource stream)
PP_AudioCodec_Type_Samsung(* GetAudioCodecType)(PP_Resource stream)
int32_t(* AppendEncryptedPacket)(PP_Resource stream, const struct PP_ESPacket *packet, const struct PP_ESPacketEncryptionInfo *encryption_info, struct PP_CompletionCallback callback)
PP_VideoCodec_Profile_Samsung(* GetVideoCodecProfile)(PP_Resource stream)
int32_t(* SetEndOfStream)(PP_Resource data_source, struct PP_CompletionCallback callback)
int32_t(* SetDRMInitData)(PP_Resource stream, uint32_t type_size, const void *type, uint32_t init_data_size, const void *init_data, struct PP_CompletionCallback callback)
int32_t(* AddStream)(PP_Resource data_source, PP_ElementaryStream_Type_Samsung stream_type, PP_Resource *stream, struct PP_CompletionCallback callback)
PP_ElementaryStream_Type_Samsung(* GetStreamType)(PP_Resource resource)
void(* SetSampleFormat)(PP_Resource stream, PP_SampleFormat_Samsung sample_format)
void(* SetCodecExtraData)(PP_Resource stream, uint32_t extra_data_size, const void *extra_data)
int32_t(* InitializeDone)(PP_Resource stream, struct PP_CompletionCallback callback)
PP_Bool(* IsESDataSource)(PP_Resource resource)
void(* SetChannelLayout)(PP_Resource stream, PP_ChannelLayout_Samsung channel_layout)
PP_SubtitleType_Samsung(* GetSubtitleType)(PP_Resource stream)
PP_AudioCodec_Profile_Samsung
void(* SetVideoFrameSize)(PP_Resource stream, const struct PP_Size *size)
void(* SetVideoFrameFormat)(PP_Resource stream, PP_VideoFrame_Format_Samsung frame_format)
void(* SetCodecExtraData)(PP_Resource stream, uint32_t extra_data_size, const void *extra_data)
int32_t(* GetStreamingProperty)(PP_Resource resource, PP_StreamingProperty type, struct PP_Var *value, struct PP_CompletionCallback callback)
void(* SetVideoCodecProfile)(PP_Resource stream, PP_VideoCodec_Profile_Samsung profile)
PP_ChannelLayout_Samsung(* GetChannelLayout)(PP_Resource stream)
PP_VideoCodec_Profile_Samsung
PP_Bool(* IsTextElementaryStream)(PP_Resource resource)
PP_AudioCodec_Type_Samsung
PP_Resource(* Create)(PP_Instance instance, const char *url)
PP_VideoFrame_Format_Samsung(* GetVideoFrameFormat)(PP_Resource stream)
int32_t(* SetStreamingProperty)(PP_Resource resource, PP_StreamingProperty type, struct PP_Var value, struct PP_CompletionCallback callback)
int32_t(* GetSamplesPerSecond)(PP_Resource stream)
void(* SetFrameRate)(PP_Resource stream, uint32_t numerator, uint32_t denominator)
PP_SampleFormat_Samsung(* GetSampleFormat)(PP_Resource stream)
PP_Bool(* IsElementaryStream)(PP_Resource resource)
void(* SetAudioCodecType)(PP_Resource stream, PP_AudioCodec_Type_Samsung audio_codec)
int32_t(* Flush)(PP_Resource stream, struct PP_CompletionCallback callback)
void(* SetBitsPerChannel)(PP_Resource stream, int32_t bits_per_channel)
PP_Resource(* Create)(PP_Instance instance)
PP_VideoFrame_Format_Samsung
PP_Bool(* IsVideoElementaryStream)(PP_Resource resource)
PP_VideoCodec_Type_Samsung
void(* GetFrameRate)(PP_Resource stream, uint32_t *numerator, uint32_t *denominator)
PP_ElementaryStream_Type_Samsung
int32_t(* AppendPacket)(PP_Resource stream, const struct PP_ESPacket *packet, struct PP_CompletionCallback callback)
PP_AudioCodec_Profile_Samsung(* GetAudioCodecProfile)(PP_Resource stream)
PP_Bool(* IsAudioElementaryStream)(PP_Resource resource)
void(* SetAudioCodecProfile)(PP_Resource stream, PP_AudioCodec_Profile_Samsung profile)