Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release > by-pkgid > 87aded5420321e37af1000cab6d33378 > files > 38

libomxil-bellagio-doc-0.9.3-6.mga5.noarch.rpm

<!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.c 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
   &#160;<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&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;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&#160;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_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">OMXCoreRMExt.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br />
<code>#include &lt;stdlib.h&gt;</code><br />
<code>#include &lt;string.h&gt;</code><br />
<code>#include &quot;<a class="el" href="common_8h_source.html">common.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_o_m_x_core_r_m_ext_8h_source.html">OMXCoreRMExt.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="st__static__component__loader_8h_source.html">st_static_component_loader.h</a>&quot;</code><br />
</div>
<p><a href="_o_m_x_core_r_m_ext_8c_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="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a369266c24eacffb87046522897a570d5"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_o_m_x_core_r_m_ext_8c.html#a369266c24eacffb87046522897a570d5">_GNU_SOURCE</a></td></tr>
<tr class="separator:a369266c24eacffb87046522897a570d5"><td class="memSeparator" colspan="2">&#160;</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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_o_m_x_core_r_m_ext_8c.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">&#160;</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">&#160;</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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_o_m_x_core_r_m_ext_8c.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">&#160;</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">&#160;</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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_o_m_x_core_r_m_ext_8c.html#afeac8319ca416c921a256407e42b089c">readRegistryFile</a> ()</td></tr>
<tr class="separator:afeac8319ca416c921a256407e42b089c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="a369266c24eacffb87046522897a570d5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define _GNU_SOURCE</td>
        </tr>
      </table>
</div><div class="memdoc">
<p><a class="el" href="_o_m_x_core_r_m_ext_8c.html">src/core_extensions/OMXCoreRMExt.c</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>

<p>Definition at line <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html#l00027">27</a> of file <a class="el" href="_o_m_x_core_r_m_ext_8c_source.html">OMXCoreRMExt.c</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>&#160;</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>&#160;</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> *&#160;</td>
          <td class="paramname"><em>pMultiResourceEstimates</em>&#160;</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>&#160;</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> **&#160;</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> *&#160;</td>
          <td class="paramname"><em>pNrOfQualityLevels</em>&#160;</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&nbsp;
<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&amp;type=4" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a>
</body>
</html>