OpenMAXBellagio
0.9.3
|
Go to the source code of this file.
Macros | |
#define | MAX_COMPONENTS 5 |
#define | TIMEOUT 500 |
Functions | |
int | convertStr2Int (char *str) |
void | display_help () |
int | main (int argc, char **argv) |
OMX_ERRORTYPE | rmEventHandler (OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_EVENTTYPE eEvent, OMX_U32 Data1, OMX_U32 Data2, OMX_PTR pEventData) |
OMX_ERRORTYPE | rmEmptyBufferDone (OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBuffer) |
OMX_ERRORTYPE | rmFillBufferDone (OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBuffer) |
Variables | |
OMX_HANDLETYPE * | handle |
OMX_CALLBACKTYPE | callbacks |
int | max_value |
#define MAX_COMPONENTS 5 |
test/components/resource_manager/omxrmtest.c
This simple test application tests the functionalities of the simple resource manager provided with Bellagio components that implements the basic support defined in OpenMAX for resource management.
Copyright (C) 2010 STMicroelectronics
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 omxrmtest.c.
Referenced by main().
#define TIMEOUT 500 |
Definition at line 32 of file omxrmtest.c.
int convertStr2Int | ( | char * | str | ) |
Definition at line 53 of file omxrmtest.c.
Referenced by main().
void display_help | ( | ) |
Definition at line 67 of file omxrmtest.c.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 75 of file omxrmtest.c.
References bResourceErrorReceived, callbacks, convertStr2Int(), DEB_LEV_ERR, DEB_LEV_SIMPLE_SEQ, DEBUG, DEFAULT_MESSAGES, display_help(), err, eventSem, flagInputReceived, handle, MAX_COMPONENTS, max_value, OMX_ErrorNone, OMX_FALSE, OMX_GetHandle(), OMX_Init(), and tsem_init().
OMX_ERRORTYPE rmEmptyBufferDone | ( | OMX_HANDLETYPE | hComponent, |
OMX_PTR | pAppData, | ||
OMX_BUFFERHEADERTYPE * | pBuffer | ||
) |
Definition at line 321 of file omxrmtest.c.
References OMX_ErrorNone.
OMX_ERRORTYPE rmEventHandler | ( | OMX_HANDLETYPE | hComponent, |
OMX_PTR | pAppData, | ||
OMX_EVENTTYPE | eEvent, | ||
OMX_U32 | Data1, | ||
OMX_U32 | Data2, | ||
OMX_PTR | pEventData | ||
) |
Definition at line 265 of file omxrmtest.c.
References bResourceErrorReceived, DEB_LEV_SIMPLE_SEQ, DEBUG, DEFAULT_MESSAGES, eventSem, OMX_CommandPortDisable, OMX_CommandStateSet, OMX_ErrorInsufficientResources, OMX_ErrorNone, OMX_ErrorResourcesLost, OMX_ErrorResourcesPreempted, OMX_EventCmdComplete, OMX_EventError, OMX_EventResourcesAcquired, OMX_StateExecuting, OMX_StateIdle, OMX_StateInvalid, OMX_StateLoaded, OMX_StatePause, OMX_StateWaitForResources, OMX_TRUE, and tsem_up().
OMX_ERRORTYPE rmFillBufferDone | ( | OMX_HANDLETYPE | hComponent, |
OMX_PTR | pAppData, | ||
OMX_BUFFERHEADERTYPE * | pBuffer | ||
) |
Definition at line 329 of file omxrmtest.c.
References OMX_ErrorNone.
OMX_CALLBACKTYPE callbacks |
Definition at line 38 of file omxrmtest.c.
Referenced by main().
OMX_HANDLETYPE* handle |
Definition at line 36 of file omxrmtest.c.
Referenced by main().
int max_value |
Definition at line 74 of file omxrmtest.c.
Referenced by main().