#include <OMX_Types.h>
#include <OMX_Component.h>
#include <OMX_Core.h>
#include <OMX_Audio.h>
#include <pthread.h>
#include <omx_base_sink.h>
Go to the source code of this file.
#define MAX_NUM_OF_symbianoutputstreamsink_component_INSTANCES 1 |
Maximum number of base_component component instances
Definition at line 40 of file omx_symbianoutputstreamsink_component.h.
#define omx_symbianoutputstreamsink_component_PortType_FIELDS |
Value:
omx_base_PortType_FIELDS \ \ OMX_AUDIO_PARAM_PORTFORMATTYPE sAudioParam; \ \ OMX_AUDIO_PARAM_PCMMODETYPE omxAudioParamPcmMode; \ \ OMX_AUDIO_CONFIG_VOLUMETYPE omxAudioConfigVolume; \ \ OMX_AUDIO_CONFIG_CHANNELVOLUMETYPE omxAudioChannelVolume; \ \ OMX_AUDIO_CONFIG_CHANNELMUTETYPE omxAudioChannelMute; \ \ OMX_AUDIO_CONFIG_MUTETYPE omxAudioMute; \ \ char AudioPCMConfigured; \ \ void* output_handle; \ \ OMX_U32 rate;
Definition at line 45 of file omx_symbianoutputstreamsink_component.h.
#define omx_symbianoutputstreamsink_component_PrivateType_FIELDS omx_base_sink_PrivateType_FIELDS |
symbianoutputstreamsinkport component private structure. see the define above
Definition at line 70 of file omx_symbianoutputstreamsink_component.h.
void omx_symbianoutputstreamsink_component_BufferMgmtCallback | ( | OMX_COMPONENTTYPE * | openmaxStandComp, | |
OMX_BUFFERHEADERTYPE * | inputbuffer | |||
) |
This function plays the input buffer. When fully consumed it returns.
Definition at line 169 of file omx_symbianoutputstreamsink_component.c.
References DEB_LEV_FULL_SEQ, DEBUG, OMX_BUFFERHEADERTYPE::nFilledLen, OMX_BASE_SINK_INPUTPORT_INDEX, open_output_stream(), OMX_BUFFERHEADERTYPE::pBuffer, OMX_COMPONENTTYPE::pComponentPrivate, and write_audio_data().
Referenced by omx_symbianoutputstreamsink_component_Constructor().
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_Constructor | ( | OMX_COMPONENTTYPE * | openmaxStandComp, | |
OMX_STRING | cComponentName | |||
) |
Domain specific section for the ports.
Definition at line 36 of file omx_symbianoutputstreamsink_component.c.
References base_port_Constructor(), create_output_stream(), DEB_LEV_ERR, DEB_LEV_PARAMS, DEB_LEV_SIMPLE_SEQ, DEBUG, DEFAULT_OUT_BUFFER_SIZE, err, OMX_COMPONENTTYPE::GetConfig, OMX_COMPONENTTYPE::GetParameter, OMX_AUDIO_ChannelNone, OMX_AUDIO_CodingPCM, OMX_AUDIO_PCMModeLinear, omx_base_sink_Constructor(), OMX_BASE_SINK_INPUTPORT_INDEX, OMX_DirInput, OMX_EndianLittle, OMX_ErrorHardware, OMX_ErrorInsufficientResources, OMX_ErrorNone, OMX_FALSE, OMX_IndexParamAudioInit, OMX_IndexParamAudioPcm, OMX_NumericalDataSigned, OMX_PortDomainAudio, omx_symbianoutputstreamsink_component_BufferMgmtCallback(), omx_symbianoutputstreamsink_component_Destructor(), omx_symbianoutputstreamsink_component_GetConfig(), omx_symbianoutputstreamsink_component_GetParameter(), omx_symbianoutputstreamsink_component_SetConfig(), omx_symbianoutputstreamsink_component_SetParameter(), OMX_TRUE, OMX_COMPONENTTYPE::pComponentPrivate, OMX_COMPONENTTYPE::SetConfig, setHeader(), and OMX_COMPONENTTYPE::SetParameter.
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_Destructor | ( | OMX_COMPONENTTYPE * | openmaxStandComp | ) |
The Destructor
Definition at line 151 of file omx_symbianoutputstreamsink_component.c.
References close_output_stream(), omx_base_sink_Destructor(), OMX_BASE_SINK_INPUTPORT_INDEX, and OMX_COMPONENTTYPE::pComponentPrivate.
Referenced by omx_symbianoutputstreamsink_component_Constructor().
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_DomainCheck | ( | OMX_PARAM_PORTDEFINITIONTYPE | pDef | ) |
Check Domain of the Tunneled Component
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_GetConfig | ( | OMX_IN OMX_HANDLETYPE | hComponent, | |
OMX_IN OMX_INDEXTYPE | nIndex, | |||
OMX_INOUT OMX_PTR | pComponentConfigStructure | |||
) |
Definition at line 205 of file omx_symbianoutputstreamsink_component.c.
References omx_base_component_GetConfig().
Referenced by omx_symbianoutputstreamsink_component_Constructor().
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_GetParameter | ( | OMX_IN OMX_HANDLETYPE | hComponent, | |
OMX_IN OMX_INDEXTYPE | nParamIndex, | |||
OMX_INOUT OMX_PTR | ComponentParameterStructure | |||
) |
Definition at line 299 of file omx_symbianoutputstreamsink_component.c.
References DEB_LEV_SIMPLE_SEQ, DEBUG, OMX_AUDIO_PARAM_PORTFORMATTYPE::nPortIndex, omx_base_component_GetParameter(), OMX_BASE_SINK_INPUTPORT_INDEX, OMX_ErrorBadParameter, OMX_ErrorBadPortIndex, OMX_ErrorNone, OMX_IndexParamAudioInit, OMX_IndexParamAudioPcm, OMX_IndexParamAudioPortFormat, OMX_COMPONENTTYPE::pComponentPrivate, and setHeader().
Referenced by omx_symbianoutputstreamsink_component_Constructor().
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_Init | ( | OMX_COMPONENTTYPE * | openmaxStandComp | ) |
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_SetConfig | ( | OMX_IN OMX_HANDLETYPE | hComponent, | |
OMX_IN OMX_INDEXTYPE | nIndex, | |||
OMX_IN OMX_PTR | pComponentConfigStructure | |||
) |
Definition at line 196 of file omx_symbianoutputstreamsink_component.c.
References omx_base_component_SetConfig().
Referenced by omx_symbianoutputstreamsink_component_Constructor().
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_SetParameter | ( | OMX_IN OMX_HANDLETYPE | hComponent, | |
OMX_IN OMX_INDEXTYPE | nParamIndex, | |||
OMX_IN OMX_PTR | ComponentParameterStructure | |||
) |
Definition at line 215 of file omx_symbianoutputstreamsink_component.c.
References checkHeader(), DEB_LEV_ERR, DEB_LEV_SIMPLE_SEQ, DEBUG, err, OMX_AUDIO_PARAM_MP3TYPE::nPortIndex, OMX_AUDIO_PARAM_PCMMODETYPE::nPortIndex, OMX_AUDIO_PARAM_PORTFORMATTYPE::nPortIndex, omx_base_component_ParameterSanityCheck(), omx_base_component_SetParameter(), OMX_BASE_SINK_INPUTPORT_INDEX, OMX_ErrorBadParameter, OMX_ErrorBadPortIndex, OMX_ErrorNone, OMX_IndexParamAudioInit, OMX_IndexParamAudioMp3, OMX_IndexParamAudioPcm, OMX_IndexParamAudioPortFormat, and OMX_COMPONENTTYPE::pComponentPrivate.
Referenced by omx_symbianoutputstreamsink_component_Constructor().