OpenMAX Bellagio 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/omxprioritytest.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 omxprioritytest.c.
Referenced by main().
#define TIMEOUT 500 |
Definition at line 32 of file omxprioritytest.c.
Referenced by main().
int convertStr2Int | ( | char * | str | ) |
Definition at line 53 of file omxprioritytest.c.
Referenced by main().
void display_help | ( | ) |
Definition at line 67 of file omxprioritytest.c.
Referenced by main().
int main | ( | int | argc, |
char ** | argv ) |
the priority of the component which fails to go to idle is raised so that another component is preempted to leave room to this component
Definition at line 75 of file omxprioritytest.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_PRIORITYMGMTTYPE::nGroupPriority, OMX_PORT_PARAM_TYPE::nPorts, OMX_PORT_PARAM_TYPE::nStartPortNumber, OMX_CommandPortDisable, OMX_CommandStateSet, OMX_Deinit(), OMX_ErrorNone, OMX_FALSE, OMX_FreeHandle(), OMX_GetHandle(), OMX_GetParameter, OMX_GetState, OMX_IndexParamAudioInit, OMX_IndexParamImageInit, OMX_IndexParamOtherInit, OMX_IndexParamPriorityMgmt, OMX_IndexParamVideoInit, OMX_Init(), OMX_SendCommand, OMX_SetParameter, OMX_StateIdle, OMX_StateLoaded, setHeader(), TIMEOUT, tsem_down(), tsem_init(), and tsem_timed_down().
OMX_ERRORTYPE rmEmptyBufferDone | ( | OMX_HANDLETYPE | hComponent, |
OMX_PTR | pAppData, | ||
OMX_BUFFERHEADERTYPE * | pBuffer ) |
Definition at line 322 of file omxprioritytest.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 266 of file omxprioritytest.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 330 of file omxprioritytest.c.
References OMX_ErrorNone.
OMX_CALLBACKTYPE callbacks |
Definition at line 38 of file omxprioritytest.c.
Referenced by main().
OMX_HANDLETYPE* handle |
Definition at line 36 of file omxprioritytest.c.
Referenced by main().
int max_value |
Definition at line 74 of file omxprioritytest.c.
Referenced by main().