#include "omxvolcontroltest.h"
Go to the source code of this file.
Functions | |
void | display_help () |
int | main (int argc, char **argv) |
OMX_ERRORTYPE | volcEventHandler (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_EVENTTYPE eEvent, OMX_OUT OMX_U32 Data1, OMX_OUT OMX_U32 Data2, OMX_IN OMX_PTR pEventData) |
OMX_ERRORTYPE | volcEmptyBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT OMX_BUFFERHEADERTYPE *pBuffer) |
OMX_ERRORTYPE | volcFillBufferDone (OMX_OUT OMX_HANDLETYPE hComponent, OMX_OUT OMX_PTR pAppData, OMX_OUT 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 |
Copyright (C) 2007 STMicroelectronics Copyright (C) 2007-2008 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
$Date$ Revision $Rev$ Author $Author$
Definition in file omxvolcontroltest.c.
void display_help | ( | ) |
function prototype declaration display general help
help display
Definition at line 54 of file omxvolcontroltest.c.
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 74 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_BS32::nValue, OMX_AllocateBuffer, OMX_CommandStateSet, OMX_EmptyThisBuffer, OMX_ErrorNone, OMX_FillThisBuffer, OMX_FreeBuffer, OMX_FreeHandle(), OMX_GetConfig, 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_OUT OMX_HANDLETYPE | hComponent, | |
OMX_OUT OMX_PTR | pAppData, | |||
OMX_OUT OMX_BUFFERHEADERTYPE * | pBuffer | |||
) |
Definition at line 362 of file omxvolcontroltest.c.
References BUFFER_IN_SIZE, DEB_LEV_FULL_SEQ, DEB_LEV_SIMPLE_SEQ, DEBUG, appPrivateType::eofSem, err, fd, filesize, OMX_BUFFERFLAG_EOS, OMX_EmptyThisBuffer, OMX_ErrorNone, OMX_TRUE, and tsem_up().
OMX_ERRORTYPE volcEventHandler | ( | OMX_OUT OMX_HANDLETYPE | hComponent, | |
OMX_OUT OMX_PTR | pAppData, | |||
OMX_OUT OMX_EVENTTYPE | eEvent, | |||
OMX_OUT OMX_U32 | Data1, | |||
OMX_OUT OMX_U32 | Data2, | |||
OMX_IN OMX_PTR | pEventData | |||
) |
Definition at line 312 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_OUT OMX_HANDLETYPE | hComponent, | |
OMX_OUT OMX_PTR | pAppData, | |||
OMX_OUT OMX_BUFFERHEADERTYPE * | pBuffer | |||
) |
Definition at line 398 of file omxvolcontroltest.c.
References DEB_LEV_ERR, DEB_LEV_FULL_SEQ, DEBUG, err, OMX_ErrorNone, and OMX_FillThisBuffer.
Definition at line 33 of file omxvolcontroltest.c.
Initial value:
{ .EventHandler = volcEventHandler, .EmptyBufferDone = volcEmptyBufferDone, .FillBufferDone = volcFillBufferDone, }
Definition at line 39 of file omxvolcontroltest.c.
Definition at line 36 of file omxvolcontroltest.c.
Referenced by alsasinkEmptyBufferDone(), audiodecEmptyBufferDone(), audiodecEventHandler(), audiodecFillBufferDone(), audiomixerEmptyBufferDone(), audiomixerFillBufferDone(), audiosinkEmptyBufferDone(), audiosrcEventHandler(), audiosrcFillBufferDone(), base_port_ComponentTunnelRequest(), base_port_DisablePort(), base_port_EnablePort(), base_port_SendBufferFunction(), BOSA_ST_DeInitComponentLoader(), BOSA_ST_DestroyComponent(), colorconvEmptyBufferDone(), colorconvFillBufferDone(), fb_sinkEmptyBufferDone(), filereaderEventHandler(), filereaderFillBufferDone(), main(), omx_alsasink_component_Constructor(), omx_alsasink_component_GetParameter(), omx_alsasink_component_SetParameter(), omx_alsasrc_component_Constructor(), omx_alsasrc_component_GetParameter(), omx_alsasrc_component_SetParameter(), 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_audiodec_component_Constructor(), omx_audiodec_component_Deinit(), omx_audiodec_component_GetParameter(), omx_audiodec_component_Init(), omx_audiodec_component_MessageHandler(), omx_audiodec_component_SetConfig(), omx_audiodec_component_SetParameter(), omx_base_component_Destructor(), omx_base_component_DoStateSet(), omx_base_component_GetParameter(), omx_base_component_MessageHandler(), omx_base_component_SendCommand(), omx_base_component_SetParameter(), omx_base_filter_Constructor(), omx_base_sink_Constructor(), omx_base_source_Constructor(), omx_component_library_Setup(), OMX_ComponentNameEnum(), omx_fbdev_sink_component_Constructor(), omx_fbdev_sink_component_GetParameter(), omx_fbdev_sink_component_MessageHandler(), omx_fbdev_sink_component_SetConfig(), omx_fbdev_sink_component_SetParameter(), omx_ffmpeg_colorconv_component_Constructor(), omx_ffmpeg_colorconv_component_Deinit(), omx_ffmpeg_colorconv_component_GetConfig(), omx_ffmpeg_colorconv_component_GetParameter(), omx_ffmpeg_colorconv_component_Init(), omx_ffmpeg_colorconv_component_SetConfig(), omx_ffmpeg_colorconv_component_SetParameter(), omx_filereader_component_Constructor(), omx_filereader_component_GetParameter(), omx_filereader_component_MessageHandler(), omx_filereader_component_SetConfig(), omx_filereader_component_SetParameter(), OMX_FreeHandle(), OMX_GetComponentsOfRole(), OMX_GetHandle(), OMX_GetRolesOfComponent(), OMX_Init(), omx_mad_decoder_MessageHandler(), omx_maddec_component_Constructor(), omx_maddec_component_Deinit(), omx_maddec_component_GetParameter(), omx_maddec_component_Init(), omx_maddec_component_SetParameter(), omx_parser3gp_component_Constructor(), omx_parser3gp_component_GetParameter(), omx_parser3gp_component_MessageHandler(), omx_parser3gp_component_SetConfig(), omx_parser3gp_component_SetParameter(), OMX_SetupTunnel(), omx_symbianoutputstreamsink_component_Constructor(), omx_symbianoutputstreamsink_component_SetParameter(), omx_video_colorconv_MessageHandler(), omx_videodec_component_MessageHandler(), omx_videodec_component_SetConfig(), omx_videosrc_component_Constructor(), omx_videosrc_component_GetParameter(), omx_videosrc_component_MessageHandler(), omx_videosrc_component_SetParameter(), omx_volume_component_Constructor(), omx_volume_component_GetConfig(), omx_volume_component_GetParameter(), omx_volume_component_SetConfig(), omx_volume_component_SetParameter(), omx_vorbis_decoder_MessageHandler(), omx_vorbisdec_component_Constructor(), omx_vorbisdec_component_Deinit(), omx_vorbisdec_component_GetParameter(), omx_vorbisdec_component_Init(), omx_vorbisdec_component_SetParameter(), parser3gpEventHandler(), parser3gpFillBufferDone(), setCameraParameters(), setColorConvParameters(), setFbsinkParameters(), setPortParameters(), SetPortParametersAudio(), SetPortParametersVideo(), test_OMX_ComponentEnumByRole(), test_OMX_ComponentNameEnum(), test_OMX_RoleEnum(), test_OpenClose(), videodecEmptyBufferDone(), videodecEventHandler(), videodecFillBufferDone(), videoencEmptyBufferDone(), videoencEventHandler(), videoencFillBufferDone(), videosrcEventHandler(), videosrcFillBufferDone(), volcEmptyBufferDone(), volcFillBufferDone(), volumeEmptyBufferDone(), and volumeFillBufferDone().
int fd = 0 |
Definition at line 34 of file omxvolcontroltest.c.
unsigned int filesize |
Definition at line 35 of file omxvolcontroltest.c.
Definition at line 68 of file omxvolcontroltest.c.
int flagIsGain |
Definition at line 69 of file omxvolcontroltest.c.
Definition at line 66 of file omxvolcontroltest.c.
Definition at line 67 of file omxvolcontroltest.c.
Definition at line 37 of file omxvolcontroltest.c.
Referenced by BOSA_ST_InitComponentLoader(), createComponentLoaders(), and main().
char* input_file |
Definition at line 70 of file omxvolcontroltest.c.
FILE* outfile |
Definition at line 72 of file omxvolcontroltest.c.
char * output_file |
Definition at line 70 of file omxvolcontroltest.c.