OpenMAXBellagio  0.9.3
omx_volume_component.h File Reference
#include <OMX_Types.h>
#include <OMX_Component.h>
#include <OMX_Core.h>
#include <string.h>
#include <omx_base_filter.h>

Go to the source code of this file.

Macros

#define VOLUME_COMP_NAME   "OMX.st.volume.component"
 
#define VOLUME_COMP_ROLE   "volume.component"
 
#define MAX_VOLUME_COMPONENTS   10
 
#define VOLUME_QUALITY_LEVELS   2
 
#define omx_volume_component_PrivateType_FIELDS
 

Functions

OMX_ERRORTYPE omx_volume_component_Constructor (OMX_COMPONENTTYPE *openmaxStandComp, OMX_STRING cComponentName)
 
OMX_ERRORTYPE omx_volume_component_Destructor (OMX_COMPONENTTYPE *openmaxStandComp)
 
void omx_volume_component_BufferMgmtCallback (OMX_COMPONENTTYPE *openmaxStandComp, OMX_BUFFERHEADERTYPE *inputbuffer, OMX_BUFFERHEADERTYPE *outputbuffer)
 
OMX_ERRORTYPE omx_volume_component_GetParameter (OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nParamIndex, OMX_PTR ComponentParameterStructure)
 
OMX_ERRORTYPE omx_volume_component_SetParameter (OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nParamIndex, OMX_PTR ComponentParameterStructure)
 
OMX_ERRORTYPE omx_volume_component_GetConfig (OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nIndex, OMX_PTR pComponentConfigStructure)
 
OMX_ERRORTYPE omx_volume_component_SetConfig (OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nIndex, OMX_PTR pComponentConfigStructure)
 

Macro Definition Documentation

◆ MAX_VOLUME_COMPONENTS

#define MAX_VOLUME_COMPONENTS   10

Definition at line 38 of file omx_volume_component.h.

◆ omx_volume_component_PrivateType_FIELDS

#define omx_volume_component_PrivateType_FIELDS
Value:

Twoport component private structure. see the define above

Definition at line 46 of file omx_volume_component.h.

◆ VOLUME_COMP_NAME

#define VOLUME_COMP_NAME   "OMX.st.volume.component"

src/components/audio_effects/omx_volume_component.h

OpenMAX volume control component. This component implements a filter that controls the volume level of the audio PCM stream.

Copyright (C) 2007-2009 STMicroelectronics Copyright (C) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 36 of file omx_volume_component.h.

◆ VOLUME_COMP_ROLE

#define VOLUME_COMP_ROLE   "volume.component"

Definition at line 37 of file omx_volume_component.h.

◆ VOLUME_QUALITY_LEVELS

#define VOLUME_QUALITY_LEVELS   2

Definition at line 39 of file omx_volume_component.h.

Function Documentation

◆ omx_volume_component_BufferMgmtCallback()

void omx_volume_component_BufferMgmtCallback ( OMX_COMPONENTTYPE openmaxStandComp,
OMX_BUFFERHEADERTYPE pInputBuffer,
OMX_BUFFERHEADERTYPE pOutputBuffer 
)

This function is used to process the input buffer and provide one output buffer

Definition at line 145 of file omx_volume_component.c.

References GAIN_VALUE, OMX_BUFFERHEADERTYPE::nFilledLen, OMX_BUFFERHEADERTYPE::pBuffer, and OMX_COMPONENTTYPE::pComponentPrivate.

Referenced by omx_volume_component_Constructor().

◆ omx_volume_component_Constructor()

◆ omx_volume_component_Destructor()

OMX_ERRORTYPE omx_volume_component_Destructor ( OMX_COMPONENTTYPE openmaxStandComp)

◆ omx_volume_component_GetConfig()

◆ omx_volume_component_GetParameter()

◆ omx_volume_component_SetConfig()

OMX_ERRORTYPE omx_volume_component_SetConfig ( OMX_HANDLETYPE  hComponent,
OMX_INDEXTYPE  nIndex,
OMX_PTR  pComponentConfigStructure 
)

◆ omx_volume_component_SetParameter()

omx_base_filter_PrivateType_FIELDS
#define omx_base_filter_PrivateType_FIELDS
Definition: omx_base_filter.h:52

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