OpenMAXBellagio  0.9.3
omx_audiomixer_component.h
Go to the documentation of this file.
1 
27 #ifndef _OMX_AUDIO_MIXER_COMPONENT_H_
28 #define _OMX_AUDIO_MIXER_COMPONENT_H_
29 
30 #include <OMX_Types.h>
31 #include <OMX_Component.h>
32 #include <OMX_Core.h>
33 #include <string.h>
34 #include <omx_base_filter.h>
35 #include <omx_base_audio_port.h>
36 
37 #define MIXER_COMP_NAME "OMX.st.audio.mixer"
38 #define MIXER_COMP_ROLE "audio.mixer"
39 #define MAX_MIXER_COMPONENTS 5
40 
41 #define MIXER_QUALITY_LEVELS 1
42 static int mixerQualityLevels []={50, 60000, 10, 40000};
43 
44 #define MAX_PORTS 5 // Maximum number of ports supported by the mixer. 4 input and 1 output
45 #define MAX_CHANNEL 6 // Maximum number of channels supported in a single stream 5.1
46 
49 DERIVEDCLASS(omx_audio_mixer_component_PortType, omx_base_audio_PortType)
50 #define omx_audio_mixer_component_PortType_FIELDS omx_base_audio_PortType_FIELDS \
51  \
52  OMX_AUDIO_PARAM_PCMMODETYPE pAudioPcmMode; \
53  \
54  float gain; \
55  \
56  OMX_AUDIO_CONFIG_VOLUMETYPE sVolume; \
57  \
58  OMX_AUDIO_CONFIG_CHANNELVOLUMETYPE sChannelVolume[MAX_CHANNEL];
59 ENDCLASS(omx_audio_mixer_component_PortType)
60 
61 
64 DERIVEDCLASS(omx_audio_mixer_component_PrivateType, omx_base_filter_PrivateType)
65 #define omx_audio_mixer_component_PrivateType_FIELDS omx_base_filter_PrivateType_FIELDS \
66 
67 ENDCLASS(omx_audio_mixer_component_PrivateType)
68 
69 /* Component private entry points declaration */
72 
74  OMX_COMPONENTTYPE *openmaxStandComp,
75  OMX_BUFFERHEADERTYPE* inputbuffer,
76  OMX_BUFFERHEADERTYPE* outputbuffer);
77 
79  OMX_HANDLETYPE hComponent,
80  OMX_INDEXTYPE nParamIndex,
81  OMX_PTR ComponentParameterStructure);
82 
84  OMX_HANDLETYPE hComponent,
85  OMX_INDEXTYPE nParamIndex,
86  OMX_PTR ComponentParameterStructure);
87 
89  OMX_HANDLETYPE hComponent,
90  OMX_INDEXTYPE nIndex,
91  OMX_PTR pComponentConfigStructure);
92 
94  OMX_HANDLETYPE hComponent,
95  OMX_INDEXTYPE nIndex,
96  OMX_PTR pComponentConfigStructure);
97 
103 void* omx_audio_mixer_BufferMgmtFunction (void* param);
104 
105 #endif
omx_audio_mixer_component_SetParameter
OMX_ERRORTYPE omx_audio_mixer_component_SetParameter(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nParamIndex, OMX_PTR ComponentParameterStructure)
Definition: omx_audiomixer_component.c:253
omx_base_filter_PrivateType
Definition: omx_base_filter.h:51
OMX_ERRORTYPE
OMX_ERRORTYPE
Definition: OMX_Core.h:126
OMX_Core.h
OMX_Types.h
OMX_HANDLETYPE
void * OMX_HANDLETYPE
Definition: OMX_Types.h:295
omx_audio_mixer_component_SetConfig
OMX_ERRORTYPE omx_audio_mixer_component_SetConfig(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nIndex, OMX_PTR pComponentConfigStructure)
Definition: omx_audiomixer_component.c:194
OMX_Component.h
omx_audio_mixer_component_BufferMgmtCallback
void omx_audio_mixer_component_BufferMgmtCallback(OMX_COMPONENTTYPE *openmaxStandComp, OMX_BUFFERHEADERTYPE *inputbuffer, OMX_BUFFERHEADERTYPE *outputbuffer)
Definition: omx_audiomixer_component.c:159
omx_audio_mixer_BufferMgmtFunction
void * omx_audio_mixer_BufferMgmtFunction(void *param)
Definition: omx_audiomixer_component.c:399
OMX_PTR
void * OMX_PTR
Definition: OMX_Types.h:199
omx_base_audio_port.h
OMX_COMPONENTTYPE
Definition: OMX_Component.h:307
omx_audio_mixer_component_Destructor
OMX_ERRORTYPE omx_audio_mixer_component_Destructor(OMX_COMPONENTTYPE *openmaxStandComp)
Definition: omx_audiomixer_component.c:134
ENDCLASS
#define ENDCLASS(a)
Definition: omx_classmagic.h:52
OMX_INDEXTYPE
OMX_INDEXTYPE
Definition: OMX_Index.h:60
omx_audio_mixer_component_Constructor
OMX_ERRORTYPE omx_audio_mixer_component_Constructor(OMX_COMPONENTTYPE *openmaxStandComp, OMX_STRING cComponentName)
Definition: omx_audiomixer_component.c:35
OMX_STRING
char * OMX_STRING
Definition: OMX_Types.h:206
DERIVEDCLASS
#define DERIVEDCLASS(a, b)
Definition: omx_classmagic.h:50
OMX_BUFFERHEADERTYPE
Definition: OMX_Core.h:398
omx_audio_mixer_component_GetParameter
OMX_ERRORTYPE omx_audio_mixer_component_GetParameter(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nParamIndex, OMX_PTR ComponentParameterStructure)
Definition: omx_audiomixer_component.c:310
omx_base_audio_PortType
Definition: omx_base_audio_port.h:40
omx_base_filter.h
omx_audio_mixer_component_GetConfig
OMX_ERRORTYPE omx_audio_mixer_component_GetConfig(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nIndex, OMX_PTR pComponentConfigStructure)
Definition: omx_audiomixer_component.c:227

Generated for OpenMAX Bellagio rel. 0.9.3 by  doxygen 1.5.1
SourceForge.net Logo