Pepper_47_C_interfaces
Public Attributes | List of all members
PPB_ElementaryStream_Samsung_1_0 Struct Reference

#include <ppb_media_data_source_samsung.h>

Collaboration diagram for PPB_ElementaryStream_Samsung_1_0:
Collaboration graph

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)
 

Detailed Description

Interface representing common functionalities of elementary streams.

Basic usage:

  1. Crate stream by calling PPB_ESDataSource_Samsung.AddStream
  2. Initialize buffer specific information (audio/video config)
  3. Call InitializeDone
  4. Attach Data Source to the player
  5. Appends Elementary Stream packets by calling AppendPacket
  6. Signalize end of stream (clip) by calling PPB_ESDataSource_Samsung.SetEndOfStream

Definition at line 324 of file ppb_media_data_source_samsung.h.

Member Data Documentation

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).

Parameters
[in]streamA PP_Resource identifying the elementary stream.
[in]packetA PP_ESPacket containing Elementary Stream packet data and metadata.
[in]encryption_infoA PP_ESPacketEncryptionInfo containing packet encryption description.
[in]callbackA PP_CompletionCallback to be called upon completion.
Returns
PP_OK on success, otherwise an error code from 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).

Parameters
[in]streamA PP_Resource identifying the elementary stream.
[in]packetA PP_ESPacket containing Elementary Stream packet data and metadata.
[in]callbackA PP_CompletionCallback to be called upon completion.
Returns
PP_OK on success, otherwise an error code from 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.

Parameters
[in]streamA PP_Resource identifying the elementary stream.
[in]callbackA PP_CompletionCallback to be called upon completion.
Returns
PP_OK on success, otherwise an error code from 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.

Parameters
[in]resourceA PP_Resource identifying a resource.
Returns
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.

Parameters
[in]streamA PP_Resource identifying the elementary stream.
[in]callbackA PP_CompletionCallback to be called upon completion.
Returns
PP_OK on success, otherwise an error code from 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.

Parameters
[in]resourceA PP_Resource identifying a resource.
Returns
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.

Parameters
[in]streamA PP_Resource identifying the elementary stream.
[in]typeA string describing type of an |init_data|. Examples:
  • "cenc:pssh" - |init_data| will contain PSSH box as described by Common Encryption specifiacation
  • "mspr:pro" - |init_data| will contain Microsoft PlayReady Object Header (PRO).
[in]init_data_sizeA size of DRM specific |init_data| buffer
[in]init_dataA buffer containing DRM system initialization data.
[in]callbackA PP_CompletionCallback to be called upon completion.
Returns
PP_OK on success, otherwise an error code from pp_errors.h.

Definition at line 442 of file ppb_media_data_source_samsung.h.


The documentation for this struct was generated from the following file: