OpenMAX Bellagio 0.9.3
OMXCoreRMExt.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "OMXCoreRMExt.h"
#include "st_static_component_loader.h"

Go to the source code of this file.

Macros

#define _GNU_SOURCE
 

Functions

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

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

src/core_extensions/OMXCoreRMExt.c

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

Definition at line 27 of file OMXCoreRMExt.c.

Function Documentation

◆ getMultiResourceEstimates()

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 err, and OMX_ErrorUndefined.

◆ getSupportedQualityLevels()

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 err, and OMX_ErrorUndefined.

◆ 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 DEB_LEV_FUNCTION_NAME, and DEBUG.


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