#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "omxcore.h"
#include "omx_symbianoutputstreamsink_component.h"
#include "omx_symbian_output_stream_wrapper.h"
Go to the source code of this file.
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_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_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().