OpenMAXBellagio 0.9.3
omx_volume_component.h
Go to the documentation of this file.
00001 
00027 #ifndef _OMX_VOLUME_COMPONENT_H_
00028 #define _OMX_VOLUME_COMPONENT_H_
00029 
00030 #include <OMX_Types.h>
00031 #include <OMX_Component.h>
00032 #include <OMX_Core.h>
00033 #include <string.h>
00034 #include <omx_base_filter.h>
00035 #define VOLUME_COMP_NAME "OMX.st.volume.component"
00036 #define VOLUME_COMP_ROLE "volume.component"
00037 #define MAX_VOLUME_COMPONENTS 10
00038 #define VOLUME_QUALITY_LEVELS 2
00039 static int volumeQualityLevels []={1, 65536, 1, 32768};
00040 
00044 DERIVEDCLASS(omx_volume_component_PrivateType, omx_base_filter_PrivateType)
00045 #define omx_volume_component_PrivateType_FIELDS omx_base_filter_PrivateType_FIELDS \
00046  \
00047   float gain;
00048 ENDCLASS(omx_volume_component_PrivateType)
00049 
00050 /* Component private entry points declaration */
00051 OMX_ERRORTYPE omx_volume_component_Constructor(OMX_COMPONENTTYPE *openmaxStandComp,OMX_STRING cComponentName);
00052 OMX_ERRORTYPE omx_volume_component_Destructor(OMX_COMPONENTTYPE *openmaxStandComp);
00053 
00054 void omx_volume_component_BufferMgmtCallback(
00055   OMX_COMPONENTTYPE *openmaxStandComp,
00056   OMX_BUFFERHEADERTYPE* inputbuffer,
00057   OMX_BUFFERHEADERTYPE* outputbuffer);
00058 
00059 OMX_ERRORTYPE omx_volume_component_GetParameter(
00060   OMX_HANDLETYPE hComponent,
00061   OMX_INDEXTYPE nParamIndex,
00062   OMX_PTR ComponentParameterStructure);
00063 
00064 OMX_ERRORTYPE omx_volume_component_SetParameter(
00065   OMX_HANDLETYPE hComponent,
00066   OMX_INDEXTYPE nParamIndex,
00067   OMX_PTR ComponentParameterStructure);
00068 
00069 OMX_ERRORTYPE omx_volume_component_GetConfig(
00070   OMX_HANDLETYPE hComponent,
00071   OMX_INDEXTYPE nIndex,
00072   OMX_PTR pComponentConfigStructure);
00073 
00074 OMX_ERRORTYPE omx_volume_component_SetConfig(
00075   OMX_HANDLETYPE hComponent,
00076   OMX_INDEXTYPE nIndex,
00077   OMX_PTR pComponentConfigStructure);
00078 
00079 #endif