OpenMAXBellagio  0.9.3
omxprioritytest.c File Reference
#include "omxprioritytest.h"
#include <string.h>
#include <extension_struct.h>

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_HANDLETYPEhandle
 
OMX_CALLBACKTYPE callbacks
 
int max_value
 

Macro Definition Documentation

◆ MAX_COMPONENTS

#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 32 of file omxprioritytest.c.

◆ TIMEOUT

#define TIMEOUT   500

Definition at line 33 of file omxprioritytest.c.

Function Documentation

◆ convertStr2Int()

int convertStr2Int ( char *  str)

Definition at line 53 of file omxprioritytest.c.

Referenced by main().

◆ display_help()

void display_help ( )

Definition at line 67 of file omxprioritytest.c.

Referenced by main().

◆ 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_ErrorNone, OMX_FALSE, OMX_GetHandle(), OMX_Init(), and tsem_init().

◆ rmEmptyBufferDone()

OMX_ERRORTYPE rmEmptyBufferDone ( OMX_HANDLETYPE  hComponent,
OMX_PTR  pAppData,
OMX_BUFFERHEADERTYPE pBuffer 
)

Definition at line 322 of file omxprioritytest.c.

◆ rmEventHandler()

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.

◆ rmFillBufferDone()

OMX_ERRORTYPE rmFillBufferDone ( OMX_HANDLETYPE  hComponent,
OMX_PTR  pAppData,
OMX_BUFFERHEADERTYPE pBuffer 
)

Definition at line 330 of file omxprioritytest.c.

Variable Documentation

◆ callbacks

OMX_CALLBACKTYPE callbacks
Initial value:
= { .EventHandler = rmEventHandler,
.EmptyBufferDone = rmEmptyBufferDone,
.FillBufferDone = rmFillBufferDone,
}

Definition at line 38 of file omxprioritytest.c.

Referenced by main().

◆ handle

OMX_HANDLETYPE* handle

Definition at line 36 of file omxprioritytest.c.

Referenced by main().

◆ max_value

int max_value

Definition at line 74 of file omxprioritytest.c.

Referenced by main().

rmEmptyBufferDone
OMX_ERRORTYPE rmEmptyBufferDone(OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBuffer)
Definition: omxprioritytest.c:322
rmEventHandler
OMX_ERRORTYPE rmEventHandler(OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_EVENTTYPE eEvent, OMX_U32 Data1, OMX_U32 Data2, OMX_PTR pEventData)
Definition: omxprioritytest.c:266
rmFillBufferDone
OMX_ERRORTYPE rmFillBufferDone(OMX_HANDLETYPE hComponent, OMX_PTR pAppData, OMX_BUFFERHEADERTYPE *pBuffer)
Definition: omxprioritytest.c:330

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