|
OpenMAXBellagio
0.9.3
|
#include <stdio.h>#include <stdlib.h>#include <fcntl.h>#include <string.h>#include <pthread.h>#include <unistd.h>#include <sys/stat.h>#include <OMX_Core.h>#include <OMX_Component.h>#include <OMX_Types.h>#include <OMX_Audio.h>#include <tsemaphore.h>#include <user_debug_levels.h>Go to the source code of this file.
Data Structures | |
| struct | appPrivateType |
Macros | |
| #define | VERSIONMAJOR 1 |
| #define | VERSIONMINOR 1 |
| #define | VERSIONREVISION 0 |
| #define | VERSIONSTEP 0 |
| #define | BUFFER_IN_SIZE 2*8192*2 |
Typedefs | |
| typedef struct appPrivateType | appPrivateType |
Functions | |
| 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) |
| #define BUFFER_IN_SIZE 2*8192*2 |
Definition at line 63 of file omxvolcontroltest.h.
| #define VERSIONMAJOR 1 |
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 USASpecification version
Definition at line 47 of file omxvolcontroltest.h.
| #define VERSIONMINOR 1 |
Definition at line 48 of file omxvolcontroltest.h.
| #define VERSIONREVISION 0 |
Definition at line 49 of file omxvolcontroltest.h.
| #define VERSIONSTEP 0 |
Definition at line 50 of file omxvolcontroltest.h.
| typedef struct appPrivateType appPrivateType |
| OMX_ERRORTYPE volcEmptyBufferDone | ( | OMX_HANDLETYPE | hComponent, |
| OMX_PTR | pAppData, | ||
| OMX_BUFFERHEADERTYPE * | pBuffer | ||
| ) |
Definition at line 388 of file omxvolcontroltest.c.
| 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 bEOS, DEB_LEV_ERR, DEB_LEV_FULL_SEQ, DEBUG, flagOutputReceived, OMX_BUFFERHEADERTYPE::nFilledLen, OMX_ErrorNone, OMX_FillThisBuffer, outfile, and OMX_BUFFERHEADERTYPE::pBuffer.
1.5.1