omx_symbianoutputstreamsink_component.h File Reference

#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.

Defines

#define MAX_NUM_OF_symbianoutputstreamsink_component_INSTANCES   1
#define omx_symbianoutputstreamsink_component_PortType_FIELDS
#define omx_symbianoutputstreamsink_component_PrivateType_FIELDS   omx_base_sink_PrivateType_FIELDS

Functions

OMX_ERRORTYPE omx_symbianoutputstreamsink_component_Constructor (OMX_COMPONENTTYPE *openmaxStandComp, OMX_STRING cComponentName)
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_Destructor (OMX_COMPONENTTYPE *openmaxStandComp)
void omx_symbianoutputstreamsink_component_BufferMgmtCallback (OMX_COMPONENTTYPE *openmaxStandComp, OMX_BUFFERHEADERTYPE *inputbuffer)
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_SetConfig (OMX_IN OMX_HANDLETYPE hComponent, OMX_IN OMX_INDEXTYPE nIndex, OMX_IN OMX_PTR pComponentConfigStructure)
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_GetParameter (OMX_IN OMX_HANDLETYPE hComponent, OMX_IN OMX_INDEXTYPE nParamIndex, OMX_INOUT OMX_PTR ComponentParameterStructure)
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_SetParameter (OMX_IN OMX_HANDLETYPE hComponent, OMX_IN OMX_INDEXTYPE nParamIndex, OMX_IN OMX_PTR ComponentParameterStructure)
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_GetConfig (OMX_IN OMX_HANDLETYPE hComponent, OMX_IN OMX_INDEXTYPE nIndex, OMX_INOUT OMX_PTR pComponentConfigStructure)
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_Init (OMX_COMPONENTTYPE *openmaxStandComp)
OMX_ERRORTYPE omx_symbianoutputstreamsink_component_DomainCheck (OMX_PARAM_PORTDEFINITIONTYPE pDef)


Define Documentation

#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;
symbianoutputstreamsinkport component port structure.

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.


Function Documentation

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().

OMX_ERRORTYPE omx_symbianoutputstreamsink_component_Constructor ( OMX_COMPONENTTYPE openmaxStandComp,
OMX_STRING  cComponentName 
)

Definition at line 36 of file omx_symbianoutputstreamsink_component.c.

References err, omx_base_sink_Constructor(), OMX_ErrorInsufficientResources, OMX_ErrorNone, and OMX_COMPONENTTYPE::pComponentPrivate.

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.

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().

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_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().

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().

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.


Generated for OpenMAX Bellagio rel. 0.3.5-svn by  doxygen 1.5.1
SourceForge.net Logo