OpenMAX Bellagio 0.9.3
|
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 () |
enum OMX_RESOURCETYPE |
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.
OMX_ERRORTYPE getMultiResourceEstimates | ( | OMX_STRING | cComponentName, |
OMX_U32 | nQualityLevel, | ||
multiResourceDescriptor * | pMultiResourceEstimates | ||
) |
Returns the multiresource estimates for a given OMXIL component name and quality level.
cComponentName | [IN] Component name |
nQualityLevel | [IN] quality level (applicable for scalable components) |
pMultiResourceEstimates | [OUT] The multiresource estimates |
* * 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.
cComponentName | [IN] Component name |
ppQualityLevel | [OUT] List of supported quality levels |
pNrOfQualityLevels | [OUT] Number of quality levels in the list |
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().
OMX_ERRORTYPE readRegistryFile | ( | ) |
This function reads the .omxregister file and retrieve all the information about resources and quality levels.
Definition at line 146 of file OMXCoreRMExt.c.
References componentsRegistryGetFilenameCheck(), multiResourceDescriptor::CPUResourceRequested, DEB_LEV_ERR, DEB_LEV_FUNCTION_NAME, DEBUG, MAX_LINE_LENGTH, multiResourceDescriptor::MemoryResourceRequested, stLoaderComponentType::multiResourceLevel, stLoaderComponentType::name, stLoaderComponentType::name_specific, stLoaderComponentType::name_specific_length, stLoaderComponentType::nqualitylevels, OMX_ErrorNone, OMX_ErrorUndefined, and OMX_MAX_STRINGNAME_SIZE.
Referenced by getMultiResourceEstimates(), and getSupportedQualityLevels().