|
Pepper_47_C++_interfaces
|
#include <es_data_source_samsung.h>


Public Member Functions | |
| ElementaryStream_Samsung (const ElementaryStream_Samsung &other) | |
| ElementaryStream_Samsung & | operator= (const ElementaryStream_Samsung &other) |
| virtual | ~ElementaryStream_Samsung () |
| virtual PP_ElementaryStream_Type_Samsung | GetStreamType () const =0 |
| Retrieves stream type represented by this resource. More... | |
| int32_t | InitializeDone (const CompletionCallback &callback) |
| int32_t | AppendPacket (const PP_ESPacket &packet, const CompletionCallback &callback) |
| int32_t | AppendEncryptedPacket (const PP_ESPacket &packet, const PP_ESPacketEncryptionInfo &encryption_info, const CompletionCallback &callback) |
| int32_t | Flush (const CompletionCallback &callback) |
| int32_t | SetDRMInitData (uint32_t type_size, const void *type, uint32_t init_data_size, const void *init_data, const CompletionCallback &callback) |
| int32_t | SetDRMInitData (const std::string &type, uint32_t init_data_size, const void *init_data, const CompletionCallback &callback) |
Public Member Functions inherited from pp::Resource | |
| Resource () | |
| The default constructor. More... | |
| Resource (const Resource &other) | |
| virtual | ~Resource () |
| Destructor. More... | |
| Resource & | operator= (const Resource &other) |
| bool | is_null () const |
| PP_Resource | pp_resource () const |
| PP_Resource | detach () |
Protected Member Functions | |
| ElementaryStream_Samsung () | |
| ElementaryStream_Samsung (PP_Resource resource) | |
| ElementaryStream_Samsung (const Resource &resource) | |
| ElementaryStream_Samsung (PassRef, PP_Resource resource) | |
Protected Member Functions inherited from pp::Resource | |
| Resource (PP_Resource resource) | |
| Resource (PassRef, PP_Resource resource) | |
| void | PassRefFromConstructor (PP_Resource resource) |
| void | Clear () |
| Sets this resource to null. This releases ownership of the resource. More... | |
Interface representing common functionalities of elementary streams.
Basic usage:
ESDataSource_Samsung.AddStreamInitializeDoneAppendPacketESDataSource_Samsung.SetEndOfStream Definition at line 35 of file es_data_source_samsung.h.
| pp::ElementaryStream_Samsung::ElementaryStream_Samsung | ( | const ElementaryStream_Samsung & | other | ) |
Definition at line 76 of file es_data_source_samsung.cc.
|
virtual |
Definition at line 87 of file es_data_source_samsung.cc.
|
protected |
Definition at line 167 of file es_data_source_samsung.cc.
|
explicitprotected |
Definition at line 171 of file es_data_source_samsung.cc.
|
explicitprotected |
Definition at line 175 of file es_data_source_samsung.cc.
|
explicitprotected |
Definition at line 179 of file es_data_source_samsung.cc.
| int32_t pp::ElementaryStream_Samsung::AppendEncryptedPacket | ( | const PP_ESPacket & | packet, |
| const PP_ESPacketEncryptionInfo & | encryption_info, | ||
| const CompletionCallback & | callback | ||
| ) |
Appends Elementary Stream encrypted packet.
Before appending any packet to the buffer, it must be properly configured (see InitializeDone).
| [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 CompletionCallback to be called upon completion. |
pp_errors.h. Returns PP_ERROR_FAILED if InitializeDone() has not successfully completed. Definition at line 113 of file es_data_source_samsung.cc.
References pp::CompletionCallback::MayForce(), pp::CompletionCallback::pp_completion_callback(), and pp::Resource::pp_resource().
| int32_t pp::ElementaryStream_Samsung::AppendPacket | ( | const PP_ESPacket & | packet, |
| const CompletionCallback & | callback | ||
| ) |
Appends Elementary Stream packet.
Before appending any packet to the buffer, it must be properly configured (see InitializeDone).
| [in] | packet | A PP_ESPacket containing Elementary Stream packet data and metadata. |
| [in] | callback | A CompletionCallback to be called upon completion. |
pp_errors.h. Returns PP_ERROR_FAILED if InitializeDone() has not successfully completed. Definition at line 101 of file es_data_source_samsung.cc.
References pp::CompletionCallback::MayForce(), pp::CompletionCallback::pp_completion_callback(), and pp::Resource::pp_resource().
| int32_t pp::ElementaryStream_Samsung::Flush | ( | const CompletionCallback & | callback | ) |
Flushes all appended, but not decoded or rendered packets to this buffer. This method is usually called during seek operations.
| [in] | callback | A CompletionCallback to be called upon completion. |
pp_errors.h. Returns PP_ERROR_FAILED if InitializeDone() has not successfully completed. Definition at line 129 of file es_data_source_samsung.cc.
References pp::CompletionCallback::MayForce(), pp::CompletionCallback::pp_completion_callback(), and pp::Resource::pp_resource().
|
pure virtual |
Retrieves stream type represented by this resource.
Implemented in pp::VideoElementaryStream_Samsung, and pp::AudioElementaryStream_Samsung.
| int32_t pp::ElementaryStream_Samsung::InitializeDone | ( | const 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] | callback | A CompletionCallback to be called upon completion. |
pp_errors.h. Method returns PP_ERROR_BADARGUMENT when stream configuration is invalid. Definition at line 90 of file es_data_source_samsung.cc.
References pp::CompletionCallback::MayForce(), pp::CompletionCallback::pp_completion_callback(), and pp::Resource::pp_resource().
| ElementaryStream_Samsung & pp::ElementaryStream_Samsung::operator= | ( | const ElementaryStream_Samsung & | other | ) |
Definition at line 81 of file es_data_source_samsung.cc.
References pp::Resource::operator=().
Referenced by pp::AudioElementaryStream_Samsung::operator=(), and pp::VideoElementaryStream_Samsung::operator=().
| int32_t pp::ElementaryStream_Samsung::SetDRMInitData | ( | uint32_t | type_size, |
| const void * | type, | ||
| uint32_t | init_data_size, | ||
| const void * | init_data, | ||
| const CompletionCallback & | callback | ||
| ) |
Found DRM system initialization metadata. |type| describes type of the initialization data |init_data| associated with the stream.
| [in] | type_size | A size of DRM specific |type| buffer |
| [in] | type | A buffer containing DRM system specific description of type of an |init_data|. |
| [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 CompletionCallback to be called upon completion. |
pp_errors.h. Definition at line 138 of file es_data_source_samsung.cc.
References pp::CompletionCallback::MayForce(), pp::CompletionCallback::pp_completion_callback(), and pp::Resource::pp_resource().
Referenced by SetDRMInitData().
| int32_t pp::ElementaryStream_Samsung::SetDRMInitData | ( | const std::string & | type, |
| uint32_t | init_data_size, | ||
| const void * | init_data, | ||
| const CompletionCallback & | callback | ||
| ) |
Found DRM system initialization metadata. |type| describes type of the initialization data |init_data| associated with the 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 CompletionCallback to be called upon completion. |
pp_errors.h. Definition at line 153 of file es_data_source_samsung.cc.
References pp::CompletionCallback::MayForce(), pp::CompletionCallback::pp_completion_callback(), pp::Resource::pp_resource(), and SetDRMInitData().
1.8.6