Sophie

Sophie

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

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: omx_base_filter.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('omx__base__filter_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">omx_base_filter.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;unistd.h&gt;</code><br />
<code>#include &lt;asm/unistd.h&gt;</code><br />
<code>#include &lt;<a class="el" href="omxcore_8h_source.html">omxcore.h</a>&gt;</code><br />
<code>#include &quot;<a class="el" href="omx__base__filter_8h_source.html">omx_base_filter.h</a>&quot;</code><br />
</div>
<p><a href="omx__base__filter_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="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a38226d1e5a2bcb7c19f3defa758c929d"><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="omx__base__filter_8c.html#a38226d1e5a2bcb7c19f3defa758c929d">omx_base_filter_Constructor</a> (<a class="el" href="struct_o_m_x___c_o_m_p_o_n_e_n_t_t_y_p_e.html">OMX_COMPONENTTYPE</a> *openmaxStandComp, <a class="el" href="_o_m_x___types_8h.html#a35830b439b00948006e5ef824fef715f">OMX_STRING</a> cComponentName)</td></tr>
<tr class="memdesc:a38226d1e5a2bcb7c19f3defa758c929d"><td class="mdescLeft">&#160;</td><td class="mdescRight">The base filter contructor for the OpenMAX ST components.  <a href="#a38226d1e5a2bcb7c19f3defa758c929d">More...</a><br /></td></tr>
<tr class="separator:a38226d1e5a2bcb7c19f3defa758c929d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af02c8c172a5dcfb8a7b1eef2f3e8cc60"><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="omx__base__filter_8c.html#af02c8c172a5dcfb8a7b1eef2f3e8cc60">omx_base_filter_Destructor</a> (<a class="el" href="struct_o_m_x___c_o_m_p_o_n_e_n_t_t_y_p_e.html">OMX_COMPONENTTYPE</a> *openmaxStandComp)</td></tr>
<tr class="memdesc:af02c8c172a5dcfb8a7b1eef2f3e8cc60"><td class="mdescLeft">&#160;</td><td class="mdescRight">the base filter destructor for ST OpenMAX components  <a href="#af02c8c172a5dcfb8a7b1eef2f3e8cc60">More...</a><br /></td></tr>
<tr class="separator:af02c8c172a5dcfb8a7b1eef2f3e8cc60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab20ece575001c6e9a5163e57e37a6a89"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="omx__base__filter_8c.html#ab20ece575001c6e9a5163e57e37a6a89">omx_base_filter_BufferMgmtFunction</a> (void *param)</td></tr>
<tr class="separator:ab20ece575001c6e9a5163e57e37a6a89"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ab20ece575001c6e9a5163e57e37a6a89"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* omx_base_filter_BufferMgmtFunction </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>param</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This is the central function for component processing. It is executed in a separate thread, is synchronized with semaphores at each port, those are released each time a new buffer is available on the given port. </p>

<p>Definition at line <a class="el" href="omx__base__filter_8c_source.html#l00083">83</a> of file <a class="el" href="omx__base__filter_8c_source.html">omx_base_filter.c</a>.</p>

<p>References <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::bellagioThreads</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::bIsEOSReached</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::bMgmtSem</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::bStateSem</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::BufferMgmtCallback</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::callbackData</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::callbacks</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#l00054">DEB_LEV_FULL_SEQ</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#l00048">DEB_LEV_SIMPLE_SEQ</a>, <a class="el" href="omx__comp__debug__levels_8h_source.html#l00077">DEBUG</a>, <a class="el" href="queue_8c_source.html#l00122">dequeue()</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00530">OMX_CALLBACKTYPE::EventHandler</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::flush_all_condition</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::flush_condition</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::flush_mutex</a>, <a class="el" href="_o_m_x___types_8h_source.html#l00299">OMX_MARKTYPE::hMarkTargetComponent</a>, <a class="el" href="extension__struct_8h_source.html#l00037">OMX_PARAM_BELLAGIOTHREADS_ID::nThreadBufferMngtID</a>, <a class="el" href="omx__base__filter_8h_source.html#l00039">OMX_BASE_FILTER_INPUTPORT_INDEX</a>, <a class="el" href="omx__base__filter_8h_source.html#l00043">OMX_BASE_FILTER_OUTPUTPORT_INDEX</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00299">OMX_BUFFERFLAG_EOS</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00326">OMX_BUFFERFLAG_STARTTIME</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00485">OMX_EventBufferFlag</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00483">OMX_EventMark</a>, <a class="el" href="_o_m_x___types_8h_source.html#l00190">OMX_FALSE</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00105">OMX_StateExecuting</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00102">OMX_StateIdle</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00094">OMX_StateInvalid</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00097">OMX_StateLoaded</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00107">OMX_StatePause</a>, <a class="el" href="omx__base__component_8h_source.html#l00088">OMX_TransStateLoadedToIdle</a>, <a class="el" href="_o_m_x___types_8h_source.html#l00191">OMX_TRUE</a>, <a class="el" href="omx__base__port_8h_source.html#l00142">omx_base_PortType::pBufferQueue</a>, <a class="el" href="omx__base__port_8h_source.html#l00142">omx_base_PortType::pBufferSem</a>, <a class="el" href="_o_m_x___component_8h_source.html#l00326">OMX_COMPONENTTYPE::pComponentPrivate</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::pMark</a>, <a class="el" href="_o_m_x___types_8h_source.html#l00302">OMX_MARKTYPE::pMarkData</a>, <a class="el" href="omx__base__port_8h_source.html#l00039">PORT_IS_BEING_FLUSHED</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::ports</a>, <a class="el" href="omx__base__port_8h_source.html#l00142">omx_base_PortType::ReturnBufferFunction</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::state</a>, <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::transientState</a>, <a class="el" href="tsemaphore_8c_source.html#l00097">tsem_down()</a>, <a class="el" href="tsemaphore_8c_source.html#l00110">tsem_up()</a>, and <a class="el" href="tsemaphore_8c_source.html#l00131">tsem_wait()</a>.</p>

<p>Referenced by <a class="el" href="omx__base__filter_8c_source.html#l00034">omx_base_filter_Constructor()</a>.</p>

</div>
</div>
<a class="anchor" id="a38226d1e5a2bcb7c19f3defa758c929d"></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> omx_base_filter_Constructor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_o_m_x___c_o_m_p_o_n_e_n_t_t_y_p_e.html">OMX_COMPONENTTYPE</a> *&#160;</td>
          <td class="paramname"><em>openmaxStandComp</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></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>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>The base filter contructor for the OpenMAX ST components. </p>
<p><a class="el" href="omx__base__filter_8c.html">src/base/omx_base_filter.c</a></p>
<p>OpenMAX Base Filter component. This component does not perform any multimedia processing. It derives from base component and contains two ports. It can be used as a base class for codec and filter components.</p>
<p>Copyright (C) 2007-2009 STMicroelectronics Copyright (C) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).</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="omx__base__filter_8c_source.html#l00034">34</a> of file <a class="el" href="omx__base__filter_8c_source.html">omx_base_filter.c</a>.</p>

<p>References <a class="el" href="omx__base__filter_8h_source.html#l00057">omx_base_filter_PrivateType::BufferMgmtFunction</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="omxvolcontroltest_8c_source.html#l00034">err</a>, <a class="el" href="omx__base__component_8c_source.html#l00095">omx_base_component_Constructor()</a>, <a class="el" href="omx__base__filter_8c_source.html#l00083">omx_base_filter_BufferMgmtFunction()</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00131">OMX_ErrorInsufficientResources</a>, <a class="el" href="_o_m_x___core_8h_source.html#l00128">OMX_ErrorNone</a>, and <a class="el" href="_o_m_x___component_8h_source.html#l00326">OMX_COMPONENTTYPE::pComponentPrivate</a>.</p>

<p>Referenced by <a class="el" href="omx__audiomixer__component_8c_source.html#l00035">omx_audio_mixer_component_Constructor()</a>, <a class="el" href="omx__video__scheduler__component_8c_source.html#l00040">omx_video_scheduler_component_Constructor()</a>, and <a class="el" href="omx__volume__component_8c_source.html#l00035">omx_volume_component_Constructor()</a>.</p>

</div>
</div>
<a class="anchor" id="af02c8c172a5dcfb8a7b1eef2f3e8cc60"></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> omx_base_filter_Destructor </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_o_m_x___c_o_m_p_o_n_e_n_t_t_y_p_e.html">OMX_COMPONENTTYPE</a> *&#160;</td>
          <td class="paramname"><em>openmaxStandComp</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>the base filter destructor for ST OpenMAX components </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">openmaxStandComp</td><td>the ST OpenMAX component to be disposed </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="omx__base__filter_8c_source.html#l00066">66</a> of file <a class="el" href="omx__base__filter_8c_source.html">omx_base_filter.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#l00059">DEB_LEV_FUNCTION_NAME</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="omx__base__component_8c_source.html#l00271">omx_base_component_Destructor()</a>, and <a class="el" href="_o_m_x___core_8h_source.html#l00128">OMX_ErrorNone</a>.</p>

<p>Referenced by <a class="el" href="omx__audiomixer__component_8c_source.html#l00134">omx_audio_mixer_component_Destructor()</a>, <a class="el" href="omx__video__scheduler__component_8c_source.html#l00139">omx_video_scheduler_component_Destructor()</a>, and <a class="el" href="omx__volume__component_8c_source.html#l00120">omx_volume_component_Destructor()</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>