OpenMAXBellagio
0.9.3
|
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 | |
appPrivateType * | appPriv |
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 |
void display_help | ( | ) |
Definition at line 52 of file omxvolcontroltest.c.
Referenced by 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 BUFFER_IN_SIZE, appPrivateType::condition, DEB_LEV_ERR, DEB_LEV_PARAMS, DEBUG, DEFAULT_MESSAGES, display_help(), appPrivateType::eofSem, err, appPrivateType::eventSem, fd, filesize, handle, appPrivateType::mutex, OMX_PARAM_PORTDEFINITIONTYPE::nBufferCountActual, OMX_BUFFERHEADERTYPE::nFilledLen, OMX_PARAM_PORTDEFINITIONTYPE::nPortIndex, OMX_PORT_PARAM_TYPE::nPorts, OMX_PARAM_BELLAGIOTHREADS_ID::nThreadBufferMngtID, OMX_PARAM_BELLAGIOTHREADS_ID::nThreadMessageID, OMX_BS32::nValue, OMX_AllocateBuffer, OMX_CommandStateSet, OMX_EmptyThisBuffer, OMX_ErrorNone, OMX_FillThisBuffer, OMX_FreeBuffer, OMX_FreeHandle(), OMX_GetConfig, OMX_GetExtensionIndex, OMX_GetHandle(), OMX_GetParameter, OMX_IndexConfigAudioVolume, OMX_IndexParamAudioInit, OMX_IndexParamPortDefinition, OMX_Init(), OMX_SendCommand, OMX_SetConfig, OMX_SetParameter, OMX_StateExecuting, OMX_StateIdle, OMX_StateLoaded, OMX_BUFFERHEADERTYPE::pBuffer, setHeader(), OMX_AUDIO_CONFIG_VOLUMETYPE::sVolume, tsem_down(), and tsem_init().
OMX_ERRORTYPE volcEmptyBufferDone | ( | OMX_HANDLETYPE | hComponent, |
OMX_PTR | pAppData, | ||
OMX_BUFFERHEADERTYPE * | pBuffer | ||
) |
Definition at line 388 of file omxvolcontroltest.c.
References BUFFER_IN_SIZE, DEB_LEV_FULL_SEQ, DEB_LEV_SIMPLE_SEQ, DEBUG, appPrivateType::eofSem, err, fd, filesize, OMX_BUFFERHEADERTYPE::nFilledLen, OMX_BUFFERHEADERTYPE::nFlags, OMX_BUFFERHEADERTYPE::nOffset, OMX_BUFFERFLAG_EOS, OMX_EmptyThisBuffer, OMX_ErrorNone, OMX_TRUE, OMX_BUFFERHEADERTYPE::pBuffer, and tsem_up().
OMX_ERRORTYPE volcEventHandler | ( | OMX_HANDLETYPE | hComponent, |
OMX_PTR | pAppData, | ||
OMX_EVENTTYPE | eEvent, | ||
OMX_U32 | Data1, | ||
OMX_U32 | Data2, | ||
OMX_PTR | pEventData | ||
) |
Definition at line 338 of file omxvolcontroltest.c.
References DEB_LEV_SIMPLE_SEQ, DEBUG, appPrivateType::eofSem, appPrivateType::eventSem, OMX_BUFFERFLAG_EOS, OMX_CommandPortDisable, OMX_CommandPortEnable, OMX_CommandStateSet, OMX_ErrorNone, OMX_EventBufferFlag, OMX_EventCmdComplete, OMX_StateExecuting, OMX_StateIdle, OMX_StateInvalid, OMX_StateLoaded, OMX_StatePause, OMX_StateWaitForResources, and tsem_up().
OMX_ERRORTYPE volcFillBufferDone | ( | OMX_HANDLETYPE | hComponent, |
OMX_PTR | pAppData, | ||
OMX_BUFFERHEADERTYPE * | pBuffer | ||
) |
Definition at line 424 of file omxvolcontroltest.c.
References DEB_LEV_ERR, DEB_LEV_FULL_SEQ, DEBUG, err, OMX_BUFFERHEADERTYPE::nFilledLen, OMX_ErrorNone, OMX_FillThisBuffer, and OMX_BUFFERHEADERTYPE::pBuffer.
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.
OMX_CALLBACKTYPE callbacks |
Definition at line 37 of file omxvolcontroltest.c.
OMX_ERRORTYPE err |
Definition at line 34 of file omxvolcontroltest.c.
Referenced by audiomixerEmptyBufferDone(), audiomixerFillBufferDone(), 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(), tsem_timed_down(), volcEmptyBufferDone(), and volcFillBufferDone().
int fd = 0 |
Definition at line 32 of file omxvolcontroltest.c.
Referenced by main(), and volcEmptyBufferDone().
unsigned int filesize |
Definition at line 33 of file omxvolcontroltest.c.
Referenced by main(), and volcEmptyBufferDone().
int flagInputReceived |
Definition at line 66 of file omxvolcontroltest.c.
int flagIsGain |
Definition at line 67 of file omxvolcontroltest.c.
int flagIsOutputExpected |
Definition at line 64 of file omxvolcontroltest.c.
int flagOutputReceived |
Definition at line 65 of file omxvolcontroltest.c.
OMX_HANDLETYPE handle |
Definition at line 35 of file omxvolcontroltest.c.
Referenced by BOSA_ST_InitComponentLoader(), BOSA_STE_InitComponentLoader(), createComponentLoaders(), and main().
char* input_file |
Definition at line 68 of file omxvolcontroltest.c.
FILE* outfile |
Definition at line 70 of file omxvolcontroltest.c.
char * output_file |
Definition at line 68 of file omxvolcontroltest.c.