OpenMAX Bellagio 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
42static 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
49DERIVEDCLASS(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];
59ENDCLASS(omx_audio_mixer_component_PortType)
60
61
64DERIVEDCLASS(omx_audio_mixer_component_PrivateType, omx_base_filter_PrivateType)
65#define omx_audio_mixer_component_PrivateType_FIELDS omx_base_filter_PrivateType_FIELDS \
66
67ENDCLASS(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
103void* omx_audio_mixer_BufferMgmtFunction (void* param);
104
105#endif
OMX_ERRORTYPE
Definition OMX_Core.h:127
OMX_INDEXTYPE
Definition OMX_Index.h:60
char * OMX_STRING
Definition OMX_Types.h:206
void * OMX_PTR
Definition OMX_Types.h:199
void * OMX_HANDLETYPE
Definition OMX_Types.h:295
void omx_audio_mixer_component_BufferMgmtCallback(OMX_COMPONENTTYPE *openmaxStandComp, OMX_BUFFERHEADERTYPE *inputbuffer, OMX_BUFFERHEADERTYPE *outputbuffer)
OMX_ERRORTYPE omx_audio_mixer_component_GetParameter(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nParamIndex, OMX_PTR ComponentParameterStructure)
OMX_ERRORTYPE omx_audio_mixer_component_SetParameter(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nParamIndex, OMX_PTR ComponentParameterStructure)
OMX_ERRORTYPE omx_audio_mixer_component_GetConfig(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nIndex, OMX_PTR pComponentConfigStructure)
OMX_ERRORTYPE omx_audio_mixer_component_Constructor(OMX_COMPONENTTYPE *openmaxStandComp, OMX_STRING cComponentName)
OMX_ERRORTYPE omx_audio_mixer_component_SetConfig(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nIndex, OMX_PTR pComponentConfigStructure)
OMX_ERRORTYPE omx_audio_mixer_component_Destructor(OMX_COMPONENTTYPE *openmaxStandComp)
void * omx_audio_mixer_BufferMgmtFunction(void *param)
#define ENDCLASS(a)
#define DERIVEDCLASS(a, b)

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