OpenMAXBellagio  0.9.3
ste_dynamic_component_loader.h File Reference
#include "omxcore.h"
#include "extension_struct.h"

Go to the source code of this file.

Data Structures

struct  steLoaderComponentType
 the private data structure handled by the ST static loader that described an OpenMAX component More...
 

Typedefs

typedef struct
steLoaderComponentType 
steLoaderComponentType
 the private data structure handled by the ST static loader that described an OpenMAX component More...
 

Functions

void st_static_setup_component_loader (BOSA_COMPONENTLOADER *st_static_loader)
 The initialization of the ST specific component loader. More...
 
OMX_ERRORTYPE BOSA_STE_InitComponentLoader (BOSA_COMPONENTLOADER *loader)
 The constructor of the ST specific component loader. More...
 
OMX_ERRORTYPE BOSA_STE_DeInitComponentLoader (BOSA_COMPONENTLOADER *loader)
 The destructor of the ST specific component loader. More...
 
OMX_ERRORTYPE BOSA_STE_CreateComponent (BOSA_COMPONENTLOADER *loader, OMX_HANDLETYPE *pHandle, OMX_STRING cComponentName, OMX_PTR pAppData, OMX_CALLBACKTYPE *pCallBacks)
 creator of the requested openmax component More...
 
OMX_ERRORTYPE BOSA_STE_DestroyComponent (BOSA_COMPONENTLOADER *loader, OMX_HANDLETYPE hComponent)
 destructor of the requested OpenMAX component More...
 
OMX_ERRORTYPE BOSA_STE_ComponentNameEnum (BOSA_COMPONENTLOADER *loader, OMX_STRING cComponentName, OMX_U32 nNameLength, OMX_U32 nIndex)
 This function search for the index from 0 to end of the list. More...
 
OMX_ERRORTYPE BOSA_STE_GetRolesOfComponent (BOSA_COMPONENTLOADER *loader, OMX_STRING compName, OMX_U32 *pNumRoles, OMX_U8 **roles)
 The specific version of OMX_GetRolesOfComponent. More...
 
OMX_ERRORTYPE BOSA_STE_GetComponentsOfRole (BOSA_COMPONENTLOADER *loader, OMX_STRING role, OMX_U32 *pNumComps, OMX_U8 **compNames)
 The specific version of OMX_GetComponentsOfRole. More...
 

Typedef Documentation

the private data structure handled by the ST static loader that described an OpenMAX component

src/st_static_component_loader.h

ST specific component loader for local components.

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 USAThis structure contains all the fields that the loader must use to support the loading unloading functions of the component, that are not described by the standard.

Function Documentation

OMX_ERRORTYPE BOSA_STE_ComponentNameEnum ( BOSA_COMPONENTLOADER loader,
OMX_STRING  cComponentName,
OMX_U32  nNameLength,
OMX_U32  nIndex 
)

This function search for the index from 0 to end of the list.

This function searches in the list of ST static components and enumerates both the class names and the role specific components.

Definition at line 328 of file ste_dynamic_component_loader.c.

References DEB_LEV_FUNCTION_NAME, DEBUG, BOSA_COMPONENTLOADER::loaderPrivate, steLoaderComponentType::name_specific_length, OMX_ErrorNoMore, and OMX_ErrorNone.

Referenced by setup_component_loader().

OMX_ERRORTYPE BOSA_STE_CreateComponent ( BOSA_COMPONENTLOADER loader,
OMX_HANDLETYPE pHandle,
OMX_STRING  cComponentName,
OMX_PTR  pAppData,
OMX_CALLBACKTYPE pCallBacks 
)

creator of the requested openmax component

This function searches for the requested component in the internal list. If the component is found, its constructor is called, and the standard callback are assigned. A pointer to a standard openmax component is returned.

creator of the requested openmax component

This function searches for the requested component in the internal list. If the component is found, its constructor is called, and the standard callbacks are assigned. A pointer to a standard OpenMAX component is returned.

Definition at line 225 of file ste_dynamic_component_loader.c.

References OMX_COMPONENTTYPE::ComponentDeInit, steLoaderComponentType::constructor, DEB_LEV_ERR, DEB_LEV_FULL_SEQ, DEB_LEV_FUNCTION_NAME, DEB_LEV_PARAMS, DEBUG, omx_base_component_PrivateType::loader, BOSA_COMPONENTLOADER::loaderPrivate, steLoaderComponentType::name_requested, steLoaderComponentType::name_specific_length, OMX_ErrorComponentNotFound, OMX_ErrorInsufficientResources, OMX_ErrorNone, OMX_MAX_STRINGNAME_SIZE, and OMX_COMPONENTTYPE::pComponentPrivate.

Referenced by setup_component_loader().

OMX_ERRORTYPE BOSA_STE_DestroyComponent ( BOSA_COMPONENTLOADER loader,
OMX_HANDLETYPE  hComponent 
)

destructor of the requested OpenMAX component

Definition at line 304 of file ste_dynamic_component_loader.c.

References err, omx_base_component_PrivateType::loader, OMX_ErrorComponentNotFound, and OMX_ErrorNone.

Referenced by setup_component_loader().

OMX_ERRORTYPE BOSA_STE_GetComponentsOfRole ( BOSA_COMPONENTLOADER loader,
OMX_STRING  role,
OMX_U32 pNumComps,
OMX_U8 **  compNames 
)

The specific version of OMX_GetComponentsOfRole.

This function replicates exactly the behavior of the standard OMX_GetComponentsOfRole function for the ST static component loader

Definition at line 443 of file ste_dynamic_component_loader.c.

References DEB_LEV_FUNCTION_NAME, DEBUG, BOSA_COMPONENTLOADER::loaderPrivate, steLoaderComponentType::name_specific_length, and OMX_ErrorNone.

Referenced by setup_component_loader().

OMX_ERRORTYPE BOSA_STE_GetRolesOfComponent ( BOSA_COMPONENTLOADER loader,
OMX_STRING  compName,
OMX_U32 pNumRoles,
OMX_U8 **  roles 
)

The specific version of OMX_GetRolesOfComponent.

This function replicates exactly the behavior of the standard OMX_GetRolesOfComponent function for the ST static component loader

Definition at line 378 of file ste_dynamic_component_loader.c.

References DEB_LEV_ERR, DEB_LEV_FUNCTION_NAME, DEB_LEV_SIMPLE_SEQ, DEBUG, BOSA_COMPONENTLOADER::loaderPrivate, steLoaderComponentType::name_specific_length, OMX_ErrorComponentNotFound, and OMX_ErrorNone.

Referenced by setup_component_loader().

OMX_ERRORTYPE BOSA_STE_InitComponentLoader ( BOSA_COMPONENTLOADER loader)

The constructor of the ST specific component loader.

It is the component loader developed under linux by ST, for local libraries. It is based on a registry file, like in the case of GStreamer. It reads the registry file, and allows the components to register themself to the main list templateList.

The constructor of the ST specific component loader.

This function creates the ST static component loader, and creates the list of available components, based on a registry file created by a separate application. It is called omxregister, and must be called before the use of this loader

Definition at line 79 of file ste_dynamic_component_loader.c.

References DEB_LEV_ERR, DEB_LEV_FULL_SEQ, DEB_LEV_FUNCTION_NAME, DEBUG, handle, handleLibList, BOSA_COMPONENTLOADER::loaderPrivate, numLib, OMX_COMPONENT_PATH, OMX_ErrorNone, OMX_ErrorUndefined, and RM_Init().

Referenced by setup_component_loader().

void st_static_setup_component_loader ( BOSA_COMPONENTLOADER st_static_loader)

The initialization of the ST specific component loader.

This function allocates memory for the component loader and initialize other function pointer

Definition at line 57 of file st_static_component_loader.c.

Referenced by createComponentLoaders().


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