OpenMAXBellagio  0.9.3
OMXCoreRMExt.h File Reference
#include <OMX_Core.h>
#include "extension_struct.h"

Go to the source code of this file.

Enumerations

enum  OMX_RESOURCETYPE { OMX_ResourceTypeMemory, OMX_ResourceTypeCpu }
 

Functions

OMX_ERRORTYPE getSupportedQualityLevels (OMX_STRING cComponentName, OMX_U32 **ppQualityLevel, OMX_U32 *pNrOfQualityLevels)
 Returns the supported quality levels for a scalable OMXIL component.
 
OMX_ERRORTYPE getMultiResourceEstimates (OMX_STRING cComponentName, OMX_U32 nQualityLevel, multiResourceDescriptor *pMultiResourceEstimates)
 Returns the multiresource estimates for a given OMXIL component name and quality level.
 
OMX_ERRORTYPE readRegistryFile ()
 

Enumeration Type Documentation

src/core_extensions/OMXCoreRMExt.h

This extension of the core provides functions for the resource manager used to retrieve the quality levels of the components available.

Copyright (C) 2008-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

Enumerator
OMX_ResourceTypeMemory 
OMX_ResourceTypeCpu 

Definition at line 32 of file OMXCoreRMExt.h.

Function Documentation

OMX_ERRORTYPE getMultiResourceEstimates ( OMX_STRING  cComponentName,
OMX_U32  nQualityLevel,
multiResourceDescriptor pMultiResourceEstimates 
)

Returns the multiresource estimates for a given OMXIL component name and quality level.

Parameters
cComponentName[IN] Component name
nQualityLevel[IN] quality level (applicable for scalable components)
pMultiResourceEstimates[OUT] The multiresource estimates
Returns
OMX_ErrorNone
OMX_ErrorInvalidComponentName
OMX_ErrorComponentNotFound
* * The resource estimates for a given quality level are the basis for generating
* * the resource budgets. Later on, when components are instantiated and the bit
* * stream properties are known, resource budget adaptations might be required,
* or * if not feasible, the quality level might need to be downgraded.
* 

Definition at line 93 of file OMXCoreRMExt.c.

References multiResourceDescriptor::CPUResourceRequested, DEB_LEV_SIMPLE_SEQ, DEBUG, err, multiResourceDescriptor::MemoryResourceRequested, stLoaderComponentType::multiResourceLevel, stLoaderComponentType::name_specific_length, OMX_ErrorNone, OMX_ErrorUndefined, and readRegistryFile().

OMX_ERRORTYPE getSupportedQualityLevels ( OMX_STRING  cComponentName,
OMX_U32 **  ppQualityLevel,
OMX_U32 pNrOfQualityLevels 
)

Returns the supported quality levels for a scalable OMXIL component.

Parameters
cComponentName[IN] Component name
ppQualityLevel[OUT] List of supported quality levels
pNrOfQualityLevels[OUT] Number of quality levels in the list
Returns
OMX_ErrorNone
OMX_ErrorInvalidComponentName
OMX_ErrorComponentNotFound
Precondition
ppQualityLevel != NULL
pNrOfQualityLevels !=NULL

Definition at line 41 of file OMXCoreRMExt.c.

References DEB_LEV_ERR, DEB_LEV_SIMPLE_SEQ, DEBUG, err, stLoaderComponentType::name_specific_length, stLoaderComponentType::nqualitylevels, OMX_ErrorNone, OMX_ErrorUndefined, and readRegistryFile().


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