OpenMAXBellagio  0.9.3
omxvolcontroltest.c File Reference

Go to the source code of this file.

Functions

void display_help ()
 
int main (int argc, char **argv)
 
OMX_ERRORTYPE volcEventHandler (OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_EVENTTYPE eEvent, OMX_U32 Data1, OMX_U32 Data2, OMX_PTR pEventData)
 
OMX_ERRORTYPE volcEmptyBufferDone (OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBuffer)
 
OMX_ERRORTYPE volcFillBufferDone (OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBuffer)
 

Variables

appPrivateTypeappPriv
 
int fd = 0
 
unsigned int filesize
 
OMX_ERRORTYPE err
 
OMX_HANDLETYPE handle
 
OMX_CALLBACKTYPE callbacks
 
int flagIsOutputExpected
 
int flagOutputReceived
 
int flagInputReceived
 
int flagIsGain
 
char * input_file
 
char * output_file
 
FILE * outfile
 

Function Documentation

§ display_help()

void display_help ( )

Definition at line 52 of file omxvolcontroltest.c.

Referenced by main().

§ main()

int main ( int  argc,
char **  argv 
)

Ask the core for a handle to the volume control component

Set the number of ports for the parameter structure

Schedule a couple of buffers to be filled on the output port The callback itself will re-schedule them.

Definition at line 72 of file omxvolcontroltest.c.

References DEB_LEV_ERR, DEBUG, DEFAULT_MESSAGES, display_help(), fd, filesize, flagInputReceived, flagIsGain, flagIsOutputExpected, flagOutputReceived, input_file, outfile, and output_file.

§ volcEmptyBufferDone()

OMX_ERRORTYPE volcEmptyBufferDone ( OMX_HANDLETYPE  hComponent,
OMX_PTR  pAppData,
OMX_BUFFERHEADERTYPE pBuffer 
)

Definition at line 388 of file omxvolcontroltest.c.

§ volcEventHandler()

§ volcFillBufferDone()

Variable Documentation

§ appPriv

appPrivateType* appPriv

test/components/audio_effects/omxvolcontroltest.c

This simple test application provides a testing stream for the volume control component. It will be added in the more complex audio test application in the next release.

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 31 of file omxvolcontroltest.c.

§ callbacks

OMX_CALLBACKTYPE callbacks
Initial value:
= { .EventHandler = volcEventHandler,
.EmptyBufferDone = volcEmptyBufferDone,
.FillBufferDone = volcFillBufferDone,
}
OMX_ERRORTYPE volcEmptyBufferDone(OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE volcFillBufferDone(OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBuffer)
OMX_ERRORTYPE volcEventHandler(OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_EVENTTYPE eEvent, OMX_U32 Data1, OMX_U32 Data2, OMX_PTR pEventData)

Definition at line 37 of file omxvolcontroltest.c.

§ err

Definition at line 34 of file omxvolcontroltest.c.

Referenced by base_audio_port_Constructor(), base_audio_port_Destructor(), base_clock_port_Constructor(), base_clock_port_Destructor(), base_clock_port_SendBufferFunction(), base_image_port_Destructor(), base_port_AllocateTunnelBuffer(), base_port_ComponentTunnelRequest(), base_port_DisablePort(), base_port_EnablePort(), base_port_SendBufferFunction(), BOSA_ST_DeInitComponentLoader(), BOSA_ST_DestroyComponent(), BOSA_STE_DeInitComponentLoader(), BOSA_STE_DestroyComponent(), getMultiResourceEstimates(), getQualityLevel(), getSupportedQualityLevels(), main(), makedir(), omx_audio_mixer_component_Constructor(), omx_audio_mixer_component_GetConfig(), omx_audio_mixer_component_GetParameter(), omx_audio_mixer_component_SetConfig(), omx_audio_mixer_component_SetParameter(), omx_base_component_AllocateBuffer(), omx_base_component_ComponentTunnelRequest(), omx_base_component_Constructor(), omx_base_component_Destructor(), omx_base_component_DoStateSet(), omx_base_component_EmptyThisBuffer(), omx_base_component_FillThisBuffer(), omx_base_component_FreeBuffer(), omx_base_component_GetParameter(), omx_base_component_MessageHandler(), omx_base_component_ParameterSanityCheck(), omx_base_component_SendCommand(), omx_base_component_SetParameter(), omx_base_component_UseBuffer(), omx_base_filter_Constructor(), omx_base_filter_Destructor(), omx_base_sink_Constructor(), omx_base_source_Constructor(), omx_clocksrc_component_GetParameter(), omx_clocksrc_component_SetParameter(), OMX_ComponentNameEnum(), OMX_FreeHandle(), OMX_GetComponentsOfRole(), OMX_GetContentPipe(), OMX_GetHandle(), OMX_GetRolesOfComponent(), OMX_Init(), OMX_SetupTunnel(), omx_video_scheduler_component_ClockPortHandleFunction(), omx_video_scheduler_component_Constructor(), omx_video_scheduler_component_GetParameter(), omx_video_scheduler_component_port_SendBufferFunction(), omx_video_scheduler_component_SetParameter(), omx_volume_component_Constructor(), omx_volume_component_GetConfig(), omx_volume_component_GetParameter(), omx_volume_component_SetConfig(), omx_volume_component_SetParameter(), preemptComponent(), RM_getResource(), RM_releaseResource(), setQualityLevel(), and tsem_timed_down().

§ fd

int fd = 0

Definition at line 32 of file omxvolcontroltest.c.

Referenced by main().

§ filesize

unsigned int filesize

Definition at line 33 of file omxvolcontroltest.c.

Referenced by main().

§ flagInputReceived

int flagInputReceived

Definition at line 66 of file omxvolcontroltest.c.

Referenced by main().

§ flagIsGain

int flagIsGain

Definition at line 67 of file omxvolcontroltest.c.

Referenced by main().

§ flagIsOutputExpected

int flagIsOutputExpected

Definition at line 64 of file omxvolcontroltest.c.

Referenced by main().

§ flagOutputReceived

int flagOutputReceived

Definition at line 65 of file omxvolcontroltest.c.

Referenced by main(), and volcFillBufferDone().

§ handle

§ input_file

char* input_file

Definition at line 68 of file omxvolcontroltest.c.

Referenced by main().

§ outfile

FILE* outfile

Definition at line 70 of file omxvolcontroltest.c.

Referenced by main(), and volcFillBufferDone().

§ output_file

char * output_file

Definition at line 68 of file omxvolcontroltest.c.

Referenced by main().


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