Pepper_56_C_interfaces
Pepper_56_C_interfaces
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PPB_AudioElementaryStream_Samsung_1_0 Struct Reference

#include <ppb_media_data_source_samsung.h>

Public Attributes

PP_Bool(* IsAudioElementaryStream )(PP_Resource resource)
 
PP_AudioCodec_Type_Samsung(* GetAudioCodecType )(PP_Resource stream)
 
void(* SetAudioCodecType )(PP_Resource stream, PP_AudioCodec_Type_Samsung audio_codec)
 
PP_AudioCodec_Profile_Samsung(* GetAudioCodecProfile )(PP_Resource stream)
 
void(* SetAudioCodecProfile )(PP_Resource stream, PP_AudioCodec_Profile_Samsung profile)
 
PP_SampleFormat_Samsung(* GetSampleFormat )(PP_Resource stream)
 
void(* SetSampleFormat )(PP_Resource stream, PP_SampleFormat_Samsung sample_format)
 
PP_ChannelLayout_Samsung(* GetChannelLayout )(PP_Resource stream)
 
void(* SetChannelLayout )(PP_Resource stream, PP_ChannelLayout_Samsung channel_layout)
 
int32_t(* GetBitsPerChannel )(PP_Resource stream)
 
void(* SetBitsPerChannel )(PP_Resource stream, int32_t bits_per_channel)
 
int32_t(* GetSamplesPerSecond )(PP_Resource stream)
 
void(* SetSamplesPerSecond )(PP_Resource stream, int32_t samples_per_second)
 
void(* SetCodecExtraData )(PP_Resource stream, uint32_t extra_data_size, const void *extra_data)
 

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 PPB_ElementaryStream_Samsung.InitializeDone.

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

Member Data Documentation

PP_AudioCodec_Profile_Samsung(* PPB_AudioElementaryStream_Samsung_1_0::GetAudioCodecProfile)(PP_Resource stream)

Retrieves current audio codec profile.

Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
Returns
Current audio codec profile.
PP_AudioCodec_Type_Samsung(* PPB_AudioElementaryStream_Samsung_1_0::GetAudioCodecType)(PP_Resource stream)

Retrieves current audio codec type.

Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
Returns
Current audio codec type.
int32_t(* PPB_AudioElementaryStream_Samsung_1_0::GetBitsPerChannel)(PP_Resource stream)

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

Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
Returns
How many bits are used to represent audio sample per each channel.
PP_ChannelLayout_Samsung(* PPB_AudioElementaryStream_Samsung_1_0::GetChannelLayout)(PP_Resource stream)

Retrieves current audio channel layout.

Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
Returns
current audio channel layout.
PP_SampleFormat_Samsung(* PPB_AudioElementaryStream_Samsung_1_0::GetSampleFormat)(PP_Resource stream)

Retrieves current audio sample format.

Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
Returns
Current audio sample format.
int32_t(* PPB_AudioElementaryStream_Samsung_1_0::GetSamplesPerSecond)(PP_Resource stream)

Retrieves how many audio samples were recorded per second (sample rate).

Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
Returns
Current audio samples per second.
PP_Bool(* PPB_AudioElementaryStream_Samsung_1_0::IsAudioElementaryStream)(PP_Resource resource)

Determines if the given resource is an audio elementary stream.

Parameters
[in]resourceA PP_Resource identifying a resource.
Returns
PP_TRUE if the resource is a PPB_AudioElementaryStream_Samsung, PP_FALSE if the resource is invalid or some other type.
void(* PPB_AudioElementaryStream_Samsung_1_0::SetAudioCodecProfile)(PP_Resource stream, PP_AudioCodec_Profile_Samsung profile)

Sets 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.
Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
[in]profileNew audio codec profile.
void(* PPB_AudioElementaryStream_Samsung_1_0::SetAudioCodecType)(PP_Resource stream, PP_AudioCodec_Type_Samsung audio_codec)

Sets new audio codec type.

Remarks
This is a mandatory parameter which must be set for every stream.
Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
[in]audio_codecNew audio codec type.
void(* PPB_AudioElementaryStream_Samsung_1_0::SetBitsPerChannel)(PP_Resource stream, 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.
Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
[in]bits_per_channelValue representing how many bits are used to represent audio sample per each channel.
void(* PPB_AudioElementaryStream_Samsung_1_0::SetChannelLayout)(PP_Resource stream, PP_ChannelLayout_Samsung channel_layout)

Sets new audio channel layout.

Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
[in]audio_codecNew audio channel layout.
void(* PPB_AudioElementaryStream_Samsung_1_0::SetCodecExtraData)(PP_Resource stream, 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]streamA PP_Resource identifying the audio elementary stream.
[in]extra_data_sizeSize in bytes of |extra_data| buffer.
[in]extra_dataA pointer to the buffer containing audio codec specific extra data.
void(* PPB_AudioElementaryStream_Samsung_1_0::SetSampleFormat)(PP_Resource stream, PP_SampleFormat_Samsung sample_format)

Sets 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.
Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
[in]sample_formatNew audio sample format.
void(* PPB_AudioElementaryStream_Samsung_1_0::SetSamplesPerSecond)(PP_Resource stream, int32_t samples_per_second)

Sets how many audio samples were recorded per second (sample rate).

Parameters
[in]streamA PP_Resource identifying the audio elementary stream.
[in]samples_per_secondValue representing audio samples per second.

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