OpenMAXBellagio  0.9.3
omxaudiomixertest.c File Reference

Go to the source code of this file.

Macros

#define BUFFER_COUNT_ACTUAL   2
 
#define FRAME_SIZE   1152*2*2
 

Functions

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

Variables

OMX_CALLBACKTYPE callbacks
 
appPrivateTypeappPriv
 
int fd [4]
 
unsigned int filesize [4]
 
int flagIsOutputExpected
 
int flagOutputReceived
 
int flagInputReceived
 
int flagIsGain [4]
 
int flagSampleRate
 
int flagChannel
 
char * input_file [4]
 
char * output_file
 
OMX_BOOL bEOS [4]
 
FILE * outfile
 
OMX_BUFFERHEADERTYPEinBuffer [8]
 
OMX_BUFFERHEADERTYPEoutBuffer [2]
 
OMX_BUFFERHEADERTYPEinBufferSink [2]
 

Macro Definition Documentation

#define BUFFER_COUNT_ACTUAL   2

test/components/audio_effects/omxaudiomixertest.c

This simple test application take one or more input stream/s. passes these streams to an audio mixer component and stores the mixed output in another output file.

Copyright (C) 2008-2009 STMicroelectronics Copyright (C) 2008-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 30 of file omxaudiomixertest.c.

Referenced by main().

#define FRAME_SIZE   1152*2*2

Definition at line 31 of file omxaudiomixertest.c.

Referenced by audiomixerEmptyBufferDone(), and main().

Function Documentation

void display_help ( )

Definition at line 48 of file omxaudiomixertest.c.

Referenced by main().

Variable Documentation

appPrivateType* appPriv

Definition at line 63 of file omxaudiomixertest.c.

OMX_BOOL bEOS[4]

Definition at line 73 of file omxaudiomixertest.c.

OMX_CALLBACKTYPE callbacks
Initial value:
= { .EventHandler = audiomixerEventHandler,
.EmptyBufferDone = audiomixerEmptyBufferDone,
.FillBufferDone = audiomixerFillBufferDone,
}

Definition at line 33 of file omxaudiomixertest.c.

int fd[4]

Definition at line 64 of file omxaudiomixertest.c.

Referenced by main(), and volcEmptyBufferDone().

unsigned int filesize[4]

Definition at line 65 of file omxaudiomixertest.c.

Referenced by main(), and volcEmptyBufferDone().

int flagChannel

Definition at line 71 of file omxaudiomixertest.c.

int flagInputReceived

Definition at line 68 of file omxaudiomixertest.c.

Referenced by main().

int flagIsGain[4]

Definition at line 69 of file omxaudiomixertest.c.

int flagIsOutputExpected

Definition at line 66 of file omxaudiomixertest.c.

int flagOutputReceived

Definition at line 67 of file omxaudiomixertest.c.

int flagSampleRate

Definition at line 70 of file omxaudiomixertest.c.

OMX_BUFFERHEADERTYPE* inBuffer[8]

Definition at line 76 of file omxaudiomixertest.c.

OMX_BUFFERHEADERTYPE * inBufferSink[2]

Definition at line 76 of file omxaudiomixertest.c.

char* input_file[4]

Definition at line 72 of file omxaudiomixertest.c.

OMX_BUFFERHEADERTYPE * outBuffer[2]

Definition at line 76 of file omxaudiomixertest.c.

FILE* outfile

Definition at line 74 of file omxaudiomixertest.c.

char * output_file

Definition at line 72 of file omxaudiomixertest.c.


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