|
Pepper_42_C_interfaces
|
#include <ppb_media_data_source_samsung.h>

Public Attributes | |
| PP_Bool(* | IsElementaryStream )(PP_Resource resource) |
| PP_ElementaryStream_Type_Samsung(* | GetStreamType )(PP_Resource resource) |
| int32_t(* | InitializeDone )(PP_Resource stream, struct PP_CompletionCallback callback) |
| 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) |
| int32_t(* | Flush )(PP_Resource stream, struct PP_CompletionCallback callback) |
| int32_t(* | SetDRMInitData )(PP_Resource stream, const char *type, uint32_t init_data_size, const void *init_data, struct PP_CompletionCallback callback) |
Interface representing common functionalities of elementary streams.
Basic usage:
PPB_ESDataSource_Samsung.AddStreamInitializeDoneAppendPacketPPB_ESDataSource_Samsung.SetEndOfStream Definition at line 324 of file ppb_media_data_source_samsung.h.
| int32_t(* PPB_ElementaryStream_Samsung_1_0::AppendEncryptedPacket)(PP_Resource stream, const struct PP_ESPacket *packet, const struct PP_ESPacketEncryptionInfo *encryption_info, struct PP_CompletionCallback callback) |
Appends Elementary Stream encrypted packet.
Before appending any packet to the buffer, it must be properly configured (see InitializeDone).
| [in] | stream | A PP_Resource identifying the elementary stream. |
| [in] | packet | A PP_ESPacket containing Elementary Stream packet data and metadata. |
| [in] | encryption_info | A PP_ESPacketEncryptionInfo containing packet encryption description. |
| [in] | callback | A PP_CompletionCallback to be called upon completion. |
pp_errors.h. Returns PP_ERROR_FAILED if InitializeDone() has not successfully completed. Returns PP_ERROR_NOQUOTA if internal buffer is full. Definition at line 403 of file ppb_media_data_source_samsung.h.
| int32_t(* PPB_ElementaryStream_Samsung_1_0::AppendPacket)(PP_Resource stream, const struct PP_ESPacket *packet, struct PP_CompletionCallback callback) |
Appends Elementary Stream packet.
Before appending any packet to the buffer, it must be properly configured (see InitializeDone).
| [in] | stream | A PP_Resource identifying the elementary stream. |
| [in] | packet | A PP_ESPacket containing Elementary Stream packet data and metadata. |
| [in] | callback | A PP_CompletionCallback to be called upon completion. |
pp_errors.h. Returns PP_ERROR_FAILED if InitializeDone() has not successfully completed. Returns PP_ERROR_NOQUOTA if internal buffer is full. Definition at line 380 of file ppb_media_data_source_samsung.h.
| int32_t(* PPB_ElementaryStream_Samsung_1_0::Flush)(PP_Resource stream, struct PP_CompletionCallback callback) |
Flushes all appended, but not decoded or rendered packets to this buffer. This method is usually called during seek operations.
| [in] | stream | A PP_Resource identifying the elementary stream. |
| [in] | callback | A PP_CompletionCallback to be called upon completion. |
pp_errors.h. Returns PP_ERROR_FAILED if InitializeDone() has not successfully completed. Definition at line 421 of file ppb_media_data_source_samsung.h.
| PP_ElementaryStream_Type_Samsung(* PPB_ElementaryStream_Samsung_1_0::GetStreamType)(PP_Resource resource) |
Retrieves stream type represented by this resource.
| [in] | resource | A PP_Resource identifying a resource. |
PP_ElementaryStream_Type_Samsung represented by this resource or PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_UNKNOWN when this resource doesn't represent any stream type. Definition at line 344 of file ppb_media_data_source_samsung.h.
| int32_t(* PPB_ElementaryStream_Samsung_1_0::InitializeDone)(PP_Resource stream, struct PP_CompletionCallback callback) |
Call this method to confirm new/updated buffer config. This method will return PP_OK if set buffer config is valid or one of the error codes from pp_errors.h otherwise.
| [in] | stream | A PP_Resource identifying the elementary stream. |
| [in] | callback | A PP_CompletionCallback to be called upon completion. |
pp_errors.h. Method returns PP_ERROR_BADARGUMENT when stream configuration is invalid. Definition at line 360 of file ppb_media_data_source_samsung.h.
| PP_Bool(* PPB_ElementaryStream_Samsung_1_0::IsElementaryStream)(PP_Resource resource) |
Determines if the given resource is a media player.
| [in] | resource | A PP_Resource identifying a resource. |
PP_TRUE if the resource is a PPB_MediaPlayer_Samsung, PP_FALSE if the resource is invalid or some other type. Definition at line 334 of file ppb_media_data_source_samsung.h.
| int32_t(* PPB_ElementaryStream_Samsung_1_0::SetDRMInitData)(PP_Resource stream, const char *type, uint32_t init_data_size, const void *init_data, struct PP_CompletionCallback callback) |
Found DRM system initialization metadata. |type| describes type of the initialization data |init_data| associated with the stream.
| [in] | stream | A PP_Resource identifying the elementary stream. |
| [in] | type | A string describing type of an |init_data|. Examples:
|
| [in] | init_data_size | A size of DRM specific |init_data| buffer |
| [in] | init_data | A buffer containing DRM system initialization data. |
| [in] | callback | A PP_CompletionCallback to be called upon completion. |
pp_errors.h. Definition at line 442 of file ppb_media_data_source_samsung.h.
1.8.6