<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.8"/> <title>OpenMAXBellagio: OMXCoreRMExt.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="navtree.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="resize.js"></script> <script type="text/javascript" src="navtree.js"></script> <script type="text/javascript"> $(document).ready(initResizable); $(window).load(resizeHeight); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">OpenMAXBellagio  <span id="projectnumber">0.9.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.8 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File List</span></a></li> <li><a href="globals.html"><span>Globals</span></a></li> </ul> </div> </div><!-- top --> <div id="side-nav" class="ui-resizable side-nav-resizable"> <div id="nav-tree"> <div id="nav-tree-contents"> <div id="nav-sync" class="sync"></div> </div> </div> <div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle"> </div> </div> <script type="text/javascript"> $(document).ready(function(){initNavTree('_o_m_x_core_r_m_ext_8h.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="summary"> <a href="#enum-members">Enumerations</a> | <a href="#func-members">Functions</a> </div> <div class="headertitle"> <div class="title">OMXCoreRMExt.h File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include <<a class="el" href="_o_m_x___core_8h_source.html">OMX_Core.h</a>></code><br /> <code>#include "<a class="el" href="extension__struct_8h_source.html">extension_struct.h</a>"</code><br /> </div> <p><a href="_o_m_x_core_r_m_ext_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a> Enumerations</h2></td></tr> <tr class="memitem:af689ec72d1b2b9854a276eebe0bf9877"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="_o_m_x_core_r_m_ext_8h.html#af689ec72d1b2b9854a276eebe0bf9877">OMX_RESOURCETYPE</a> { <a class="el" href="_o_m_x_core_r_m_ext_8h.html#af689ec72d1b2b9854a276eebe0bf9877a5eaac244dfa28f30d452aeba458e2a77">OMX_ResourceTypeMemory</a>, <a class="el" href="_o_m_x_core_r_m_ext_8h.html#af689ec72d1b2b9854a276eebe0bf9877a5b828c6bce42316865e8fc700f414a39">OMX_ResourceTypeCpu</a> }</td></tr> <tr class="separator:af689ec72d1b2b9854a276eebe0bf9877"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> Functions</h2></td></tr> <tr class="memitem:a5548f5eb1f249e96aa79ab16fa20eb1f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="_o_m_x_core_r_m_ext_8h.html#a5548f5eb1f249e96aa79ab16fa20eb1f">getSupportedQualityLevels</a> (<a class="el" href="_o_m_x___types_8h.html#a35830b439b00948006e5ef824fef715f">OMX_STRING</a> cComponentName, <a class="el" href="_o_m_x___types_8h.html#a04983f4ca9c7876035dffc578597eae3">OMX_U32</a> **ppQualityLevel, <a class="el" href="_o_m_x___types_8h.html#a04983f4ca9c7876035dffc578597eae3">OMX_U32</a> *pNrOfQualityLevels)</td></tr> <tr class="memdesc:a5548f5eb1f249e96aa79ab16fa20eb1f"><td class="mdescLeft"> </td><td class="mdescRight">Returns the supported quality levels for a scalable OMXIL component. <a href="#a5548f5eb1f249e96aa79ab16fa20eb1f">More...</a><br /></td></tr> <tr class="separator:a5548f5eb1f249e96aa79ab16fa20eb1f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a776bcbe5b8104072302444e4cd66f96a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="_o_m_x_core_r_m_ext_8h.html#a776bcbe5b8104072302444e4cd66f96a">getMultiResourceEstimates</a> (<a class="el" href="_o_m_x___types_8h.html#a35830b439b00948006e5ef824fef715f">OMX_STRING</a> cComponentName, <a class="el" href="_o_m_x___types_8h.html#a04983f4ca9c7876035dffc578597eae3">OMX_U32</a> nQualityLevel, <a class="el" href="structmulti_resource_descriptor.html">multiResourceDescriptor</a> *pMultiResourceEstimates)</td></tr> <tr class="memdesc:a776bcbe5b8104072302444e4cd66f96a"><td class="mdescLeft"> </td><td class="mdescRight">Returns the multiresource estimates for a given OMXIL component name and quality level. <a href="#a776bcbe5b8104072302444e4cd66f96a">More...</a><br /></td></tr> <tr class="separator:a776bcbe5b8104072302444e4cd66f96a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:afeac8319ca416c921a256407e42b089c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="_o_m_x_core_r_m_ext_8h.html#afeac8319ca416c921a256407e42b089c">readRegistryFile</a> ()</td></tr> <tr class="separator:afeac8319ca416c921a256407e42b089c"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Enumeration Type Documentation</h2> <a class="anchor" id="af689ec72d1b2b9854a276eebe0bf9877"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="_o_m_x_core_r_m_ext_8h.html#af689ec72d1b2b9854a276eebe0bf9877">OMX_RESOURCETYPE</a></td> </tr> </table> </div><div class="memdoc"> <p><a class="el" href="_o_m_x_core_r_m_ext_8h.html">src/core_extensions/OMXCoreRMExt.h</a></p> <p>This extension of the core provides functions for the resource manager used to retrieve the quality levels of the components available.</p> <p>Copyright (C) 2008-2010 STMicroelectronics</p> <p>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.</p> <p>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.</p> <p>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 </p> <table class="fieldtable"> <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a class="anchor" id="af689ec72d1b2b9854a276eebe0bf9877a5eaac244dfa28f30d452aeba458e2a77"></a>OMX_ResourceTypeMemory </td><td class="fielddoc"> </td></tr> <tr><td class="fieldname"><a class="anchor" id="af689ec72d1b2b9854a276eebe0bf9877a5b828c6bce42316865e8fc700f414a39"></a>OMX_ResourceTypeCpu </td><td class="fielddoc"> </td></tr> </table> <p>Definition at line <a class="el" href="_o_m_x_core_r_m_ext_8h_source.html#l00032">32</a> of file <a class="el" href="_o_m_x_core_r_m_ext_8h_source.html">OMXCoreRMExt.h</a>.</p> </div> </div> <h2 class="groupheader">Function Documentation</h2> <a class="anchor" id="a776bcbe5b8104072302444e4cd66f96a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> getMultiResourceEstimates </td> <td>(</td> <td class="paramtype"><a class="el" href="_o_m_x___types_8h.html#a35830b439b00948006e5ef824fef715f">OMX_STRING</a> </td> <td class="paramname"><em>cComponentName</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="_o_m_x___types_8h.html#a04983f4ca9c7876035dffc578597eae3">OMX_U32</a> </td> <td class="paramname"><em>nQualityLevel</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="structmulti_resource_descriptor.html">multiResourceDescriptor</a> * </td> <td class="paramname"><em>pMultiResourceEstimates</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the multiresource estimates for a given OMXIL component name and quality level. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">cComponentName</td><td>[IN] Component name </td></tr> <tr><td class="paramname">nQualityLevel</td><td>[IN] quality level (applicable for scalable components) </td></tr> <tr><td class="paramname">pMultiResourceEstimates</td><td>[OUT] The multiresource estimates </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OMX_ErrorNone </dd> <dd> OMX_ErrorInvalidComponentName </dd> <dd> OMX_ErrorComponentNotFound <pre class="fragment">* * 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. * </pre> </dd></dl> <p>Definition at line <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html#l00093">93</a> of file <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html">OMXCoreRMExt.c</a>.</p> <p>References <a class="el" href="extension__struct_8h_source.html#l00042">multiResourceDescriptor::CPUResourceRequested</a>, <a class="el" href="omx__comp__debug__levels_8h_source.html#l00048">DEB_LEV_SIMPLE_SEQ</a>, <a class="el" href="omx__comp__debug__levels_8h_source.html#l00077">DEBUG</a>, <a class="el" href="omxvolcontroltest_8c_source.html#l00034">err</a>, <a class="el" href="extension__struct_8h_source.html#l00043">multiResourceDescriptor::MemoryResourceRequested</a>, <a class="el" href="st__static__component__loader_8h_source.html#l00048">stLoaderComponentType::multiResourceLevel</a>, <a class="el" href="st__static__component__loader_8h_source.html#l00042">stLoaderComponentType::name_specific_length</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00128">OMX_ErrorNone</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00134">OMX_ErrorUndefined</a>, and <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html#l00146">readRegistryFile()</a>.</p> </div> </div> <a class="anchor" id="a5548f5eb1f249e96aa79ab16fa20eb1f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> getSupportedQualityLevels </td> <td>(</td> <td class="paramtype"><a class="el" href="_o_m_x___types_8h.html#a35830b439b00948006e5ef824fef715f">OMX_STRING</a> </td> <td class="paramname"><em>cComponentName</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="_o_m_x___types_8h.html#a04983f4ca9c7876035dffc578597eae3">OMX_U32</a> ** </td> <td class="paramname"><em>ppQualityLevel</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="_o_m_x___types_8h.html#a04983f4ca9c7876035dffc578597eae3">OMX_U32</a> * </td> <td class="paramname"><em>pNrOfQualityLevels</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc"> <p>Returns the supported quality levels for a scalable OMXIL component. </p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">cComponentName</td><td>[IN] Component name </td></tr> <tr><td class="paramname">ppQualityLevel</td><td>[OUT] List of supported quality levels </td></tr> <tr><td class="paramname">pNrOfQualityLevels</td><td>[OUT] Number of quality levels in the list </td></tr> </table> </dd> </dl> <dl class="section return"><dt>Returns</dt><dd>OMX_ErrorNone </dd> <dd> OMX_ErrorInvalidComponentName </dd> <dd> OMX_ErrorComponentNotFound </dd></dl> <dl class="section pre"><dt>Precondition</dt><dd>ppQualityLevel != NULL </dd> <dd> pNrOfQualityLevels !=NULL </dd></dl> <p>Definition at line <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html#l00041">41</a> of file <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html">OMXCoreRMExt.c</a>.</p> <p>References <a class="el" href="omx__comp__debug__levels_8h_source.html#l00039">DEB_LEV_ERR</a>, <a class="el" href="omx__comp__debug__levels_8h_source.html#l00048">DEB_LEV_SIMPLE_SEQ</a>, <a class="el" href="omx__comp__debug__levels_8h_source.html#l00077">DEBUG</a>, <a class="el" href="omxvolcontroltest_8c_source.html#l00034">err</a>, <a class="el" href="st__static__component__loader_8h_source.html#l00042">stLoaderComponentType::name_specific_length</a>, <a class="el" href="st__static__component__loader_8h_source.html#l00047">stLoaderComponentType::nqualitylevels</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00128">OMX_ErrorNone</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00134">OMX_ErrorUndefined</a>, and <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html#l00146">readRegistryFile()</a>.</p> </div> </div> <a class="anchor" id="afeac8319ca416c921a256407e42b089c"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> readRegistryFile </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc"> <p>This function reads the .omxregister file and retrieve all the information about resources and quality levels. </p> <p>Definition at line <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html#l00146">146</a> of file <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html">OMXCoreRMExt.c</a>.</p> <p>References <a class="el" href="common_8c_source.html#l00046">componentsRegistryGetFilename()</a>, <a class="el" href="extension__struct_8h_source.html#l00042">multiResourceDescriptor::CPUResourceRequested</a>, <a class="el" href="omx__comp__debug__levels_8h_source.html#l00039">DEB_LEV_ERR</a>, <a class="el" href="omx__comp__debug__levels_8h_source.html#l00059">DEB_LEV_FUNCTION_NAME</a>, <a class="el" href="omx__comp__debug__levels_8h_source.html#l00077">DEBUG</a>, <a class="el" href="common_8h_source.html#l00030">MAX_LINE_LENGTH</a>, <a class="el" href="extension__struct_8h_source.html#l00043">multiResourceDescriptor::MemoryResourceRequested</a>, <a class="el" href="st__static__component__loader_8h_source.html#l00048">stLoaderComponentType::multiResourceLevel</a>, <a class="el" href="st__static__component__loader_8h_source.html#l00041">stLoaderComponentType::name</a>, <a class="el" href="st__static__component__loader_8h_source.html#l00043">stLoaderComponentType::name_specific</a>, <a class="el" href="st__static__component__loader_8h_source.html#l00042">stLoaderComponentType::name_specific_length</a>, <a class="el" href="st__static__component__loader_8h_source.html#l00047">stLoaderComponentType::nqualitylevels</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00128">OMX_ErrorNone</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00134">OMX_ErrorUndefined</a>, and <a class="el" href="_o_m_x___core_8h_source.html#l00281">OMX_MAX_STRINGNAME_SIZE</a>.</p> <p>Referenced by <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html#l00093">getMultiResourceEstimates()</a>, and <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html#l00041">getSupportedQualityLevels()</a>.</p> </div> </div> </div><!-- contents --> </div><!-- doc-content --> <html> <body> <hr size="1"><small>Generated for OpenMAX Bellagio rel. 0.9.3 by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small> <br> <a href="http://sourceforge.net"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=160680&type=4" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a> </body> </html>