Pepper_56_C++_interfaces
Pepper_56_C++_interfaces
 All Classes Namespaces Files Functions Typedefs Enumerations Macros Groups
pp::AudioElementaryStream_Samsung Class Reference

#include <es_data_source_samsung.h>

Inheritance diagram for pp::AudioElementaryStream_Samsung:
pp::ElementaryStream_Samsung pp::Resource

Public Member Functions

 AudioElementaryStream_Samsung (PP_Resource resource)
 
 AudioElementaryStream_Samsung (PassRef, PP_Resource resource)
 
 AudioElementaryStream_Samsung (const AudioElementaryStream_Samsung &other)
 
AudioElementaryStream_Samsungoperator= (const AudioElementaryStream_Samsung &other)
 
virtual
PP_ElementaryStream_Type_Samsung 
GetStreamType () const
 
PP_AudioCodec_Type_Samsung GetAudioCodecType () const
 Retrieves a currently set audio codec type.
 
void SetAudioCodecType (PP_AudioCodec_Type_Samsung audio_codec)
 
PP_AudioCodec_Profile_Samsung GetAudioCodecProfile () const
 
void SetAudioCodecProfile (PP_AudioCodec_Profile_Samsung profile)
 Retrieves a currently set audio sample format.
 
PP_SampleFormat_Samsung GetSampleFormat () const
 
void SetSampleFormat (PP_SampleFormat_Samsung sample_format)
 Retrieves a currently set audio channel layout.
 
PP_ChannelLayout_Samsung GetChannelLayout () const
 Retrieves a currently set audio channel layout.
 
void SetChannelLayout (PP_ChannelLayout_Samsung channel_layout)
 Sets a new audio channel layout.
 
int32_t GetBitsPerChannel () const
 
void SetBitsPerChannel (int32_t bits_per_channel)
 
int32_t GetSamplesPerSecond () const
 Retrieves a currently set sample rate.
 
void SetSamplesPerSecond (int32_t samples_per_second)
 Sets how many audio samples were recorded per second (sample rate).
 
void SetCodecExtraData (uint32_t extra_data_size, const void *extra_data)
 
- Public Member Functions inherited from pp::ElementaryStream_Samsung
 ElementaryStream_Samsung (const ElementaryStream_Samsung &other)
 
ElementaryStream_Samsungoperator= (const ElementaryStream_Samsung &other)
 
int32_t InitializeDone (const CompletionCallback &callback)
 
int32_t InitializeDone (PP_StreamInitializationMode mode, 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 AppendTrustZonePacket (const PP_ESPacket &packet, const PP_TrustZoneReference &handle, 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.
 
 Resource (const Resource &other)
 
virtual ~Resource ()
 Destructor.
 
Resourceoperator= (const Resource &other)
 
bool is_null () const
 
PP_Resource pp_resource () const
 
PP_Resource detach ()
 

Additional Inherited Members

- Protected Member Functions inherited from pp::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.
 

Detailed Description

Interface representing an audio elementary stream and containing methods to set audio codec specific configuration.

All pending configuration changes/initialization must be confirmed by call to ElementaryStream_Samsung.InitializeDone.

All getters return last set configuration, which might be not confirmed yet.

Member Function Documentation

PP_AudioCodec_Profile_Samsung pp::AudioElementaryStream_Samsung::GetAudioCodecProfile ( ) const

Sets a new audio codec profile.

Remarks
This parameter can be figured out by the platform most of the times and therefore isn't mandatory to set for all configurations.
int32_t pp::AudioElementaryStream_Samsung::GetBitsPerChannel ( ) const

Retrieves a currently set number of bits that are used to represent audio sample per each channel.

PP_SampleFormat_Samsung pp::AudioElementaryStream_Samsung::GetSampleFormat ( ) const

Sets a new audio sample format.

Remarks
This parameter can be figured out by the platform most of the times. It must be set explictly only for PCM and MULAW audio streams.
virtual PP_ElementaryStream_Type_Samsung pp::AudioElementaryStream_Samsung::GetStreamType ( ) const
virtual

Retrieves stream type represented by this resource, in this case PP_ELEMENTARYSTREAM_TYPE_SAMSUNG_AUDIO.

Implements pp::ElementaryStream_Samsung.

void pp::AudioElementaryStream_Samsung::SetAudioCodecType ( PP_AudioCodec_Type_Samsung  audio_codec)

Sets a new audio codec type.

Remarks
This is a mandatory parameter which must be set for every stream.
void pp::AudioElementaryStream_Samsung::SetBitsPerChannel ( int32_t  bits_per_channel)

Sets how many bits are used to represent audio sample per each channel.

Remarks
This parameter can be figured out by the platform most of the times and therefore isn't mandatory to set for all configurations.
void pp::AudioElementaryStream_Samsung::SetCodecExtraData ( uint32_t  extra_data_size,
const void *  extra_data 
)

Sets audio codec specific extra data. Those data are needed by audio codec to initialize properly audio decoding.

Parameters
[in]extra_data_sizeSize in bytes of |extra_data| buffer.
[in]extra_dataA pointer to the buffer containing audio codec specific extra data.

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