<!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_volume_component.h Source File</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('omx__volume__component_8h_source.html','');}); </script> <div id="doc-content"> <div class="header"> <div class="headertitle"> <div class="title">omx_volume_component.h</div> </div> </div><!--header--> <div class="contents"> <a href="omx__volume__component_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div> <div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#ifndef _OMX_VOLUME_COMPONENT_H_</span></div> <div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#define _OMX_VOLUME_COMPONENT_H_</span></div> <div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div> <div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <<a class="code" href="_o_m_x___types_8h.html">OMX_Types.h</a>></span></div> <div class="line"><a name="l00031"></a><span class="lineno"> 31</span> <span class="preprocessor">#include <<a class="code" href="_o_m_x___component_8h.html">OMX_Component.h</a>></span></div> <div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <<a class="code" href="_o_m_x___core_8h.html">OMX_Core.h</a>></span></div> <div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include <string.h></span></div> <div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#include <<a class="code" href="omx__base__filter_8h.html">omx_base_filter.h</a>></span></div> <div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="omx__volume__component_8h.html#acf4a2447d468585404e55069cb93f005"> 35</a></span> <span class="preprocessor">#define VOLUME_COMP_NAME "OMX.st.volume.component"</span></div> <div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="omx__volume__component_8h.html#ab4bd61ca2c1282c174b9058c15fd3763"> 36</a></span> <span class="preprocessor">#define VOLUME_COMP_ROLE "volume.component"</span></div> <div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="omx__volume__component_8h.html#ae0c3b4dd6b3121420f19aa385954d12d"> 37</a></span> <span class="preprocessor">#define MAX_VOLUME_COMPONENTS 10</span></div> <div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="omx__volume__component_8h.html#a3c8ec326e2fdb9d0c6d59ccb72ea9868"> 38</a></span> <span class="preprocessor">#define VOLUME_QUALITY_LEVELS 2</span></div> <div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">static</span> <span class="keywordtype">int</span> volumeQualityLevels []={1, 65536, 1, 32768};</div> <div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> <div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <a class="code" href="omx__classmagic_8h.html#a3d333bb35760e355d5270579d57f4309">DERIVEDCLASS</a>(omx_volume_component_PrivateType, <a class="code" href="structomx__base__filter___private_type.html">omx_base_filter_PrivateType</a>)</div> <div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="omx__volume__component_8h.html#a8330a557eedcf3cf07bd69364bfb5beb"> 45</a></span> <span class="preprocessor">#define omx_volume_component_PrivateType_FIELDS omx_base_filter_PrivateType_FIELDS \</span></div> <div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor"> \</span></div> <div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="preprocessor"> float gain;</span></div> <div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <a class="code" href="omx__classmagic_8h.html#a38f665d1a5cd230405e046e3acb30237">ENDCLASS</a>(omx_volume_component_PrivateType)</div> <div class="line"><a name="l00049"></a><span class="lineno"> 49</span> </div> <div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="comment">/* Component private entry points declaration */</span></div> <div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <a class="code" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> <a class="code" href="omx__volume__component_8h.html#a4b12909b15766c474c6fe5dd1e50dc07">omx_volume_component_Constructor</a>(<a class="code" 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="code" href="_o_m_x___types_8h.html#a35830b439b00948006e5ef824fef715f">OMX_STRING</a> cComponentName);</div> <div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <a class="code" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> <a class="code" href="omx__volume__component_8h.html#a4308b35c37ec308a847436f695824441">omx_volume_component_Destructor</a>(<a class="code" href="struct_o_m_x___c_o_m_p_o_n_e_n_t_t_y_p_e.html">OMX_COMPONENTTYPE</a> *openmaxStandComp);</div> <div class="line"><a name="l00053"></a><span class="lineno"> 53</span> </div> <div class="line"><a name="l00054"></a><span class="lineno"> 54</span> <span class="keywordtype">void</span> <a class="code" href="omx__volume__component_8h.html#afe9935635215be7dcaefe350df146b5d">omx_volume_component_BufferMgmtCallback</a>(</div> <div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  <a class="code" href="struct_o_m_x___c_o_m_p_o_n_e_n_t_t_y_p_e.html">OMX_COMPONENTTYPE</a> *openmaxStandComp,</div> <div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <a class="code" href="struct_o_m_x___b_u_f_f_e_r_h_e_a_d_e_r_t_y_p_e.html">OMX_BUFFERHEADERTYPE</a>* inputbuffer,</div> <div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  <a class="code" href="struct_o_m_x___b_u_f_f_e_r_h_e_a_d_e_r_t_y_p_e.html">OMX_BUFFERHEADERTYPE</a>* outputbuffer);</div> <div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div> <div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <a class="code" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> <a class="code" href="omx__volume__component_8h.html#a424704835626977141c21786e2b1491f">omx_volume_component_GetParameter</a>(</div> <div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  <a class="code" href="_o_m_x___types_8h.html#a7b426d7bc825bf8a56ee39dc3c217af7">OMX_HANDLETYPE</a> hComponent,</div> <div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  <a class="code" href="_o_m_x___index_8h.html#abc3b6e6cb9a9d5c14cb679ac455ea715">OMX_INDEXTYPE</a> nParamIndex,</div> <div class="line"><a name="l00062"></a><span class="lineno"> 62</span>  <a class="code" href="_o_m_x___types_8h.html#a52f5626b11279ed9a6ce8731abc365be">OMX_PTR</a> ComponentParameterStructure);</div> <div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div> <div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <a class="code" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> <a class="code" href="omx__volume__component_8h.html#aedc3437cf95f35c72186b6fe2ef97292">omx_volume_component_SetParameter</a>(</div> <div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <a class="code" href="_o_m_x___types_8h.html#a7b426d7bc825bf8a56ee39dc3c217af7">OMX_HANDLETYPE</a> hComponent,</div> <div class="line"><a name="l00066"></a><span class="lineno"> 66</span>  <a class="code" href="_o_m_x___index_8h.html#abc3b6e6cb9a9d5c14cb679ac455ea715">OMX_INDEXTYPE</a> nParamIndex,</div> <div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <a class="code" href="_o_m_x___types_8h.html#a52f5626b11279ed9a6ce8731abc365be">OMX_PTR</a> ComponentParameterStructure);</div> <div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div> <div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <a class="code" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> <a class="code" href="omx__volume__component_8h.html#aa22039016219ec05ce34ea20ecb5b46a">omx_volume_component_GetConfig</a>(</div> <div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="_o_m_x___types_8h.html#a7b426d7bc825bf8a56ee39dc3c217af7">OMX_HANDLETYPE</a> hComponent,</div> <div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="_o_m_x___index_8h.html#abc3b6e6cb9a9d5c14cb679ac455ea715">OMX_INDEXTYPE</a> nIndex,</div> <div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <a class="code" href="_o_m_x___types_8h.html#a52f5626b11279ed9a6ce8731abc365be">OMX_PTR</a> pComponentConfigStructure);</div> <div class="line"><a name="l00073"></a><span class="lineno"> 73</span> </div> <div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <a class="code" href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a> <a class="code" href="omx__volume__component_8h.html#a0048717a4840f2ba669ea04bdff1b0c5">omx_volume_component_SetConfig</a>(</div> <div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="_o_m_x___types_8h.html#a7b426d7bc825bf8a56ee39dc3c217af7">OMX_HANDLETYPE</a> hComponent,</div> <div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="_o_m_x___index_8h.html#abc3b6e6cb9a9d5c14cb679ac455ea715">OMX_INDEXTYPE</a> nIndex,</div> <div class="line"><a name="l00077"></a><span class="lineno"> 77</span>  <a class="code" href="_o_m_x___types_8h.html#a52f5626b11279ed9a6ce8731abc365be">OMX_PTR</a> pComponentConfigStructure);</div> <div class="line"><a name="l00078"></a><span class="lineno"> 78</span> </div> <div class="line"><a name="l00079"></a><span class="lineno"> 79</span> <span class="preprocessor">#endif</span></div> <div class="ttc" id="_o_m_x___types_8h_html_a7b426d7bc825bf8a56ee39dc3c217af7"><div class="ttname"><a href="_o_m_x___types_8h.html#a7b426d7bc825bf8a56ee39dc3c217af7">OMX_HANDLETYPE</a></div><div class="ttdeci">void * OMX_HANDLETYPE</div><div class="ttdef"><b>Definition:</b> <a href="_o_m_x___types_8h_source.html#l00295">OMX_Types.h:295</a></div></div> <div class="ttc" id="_o_m_x___component_8h_html"><div class="ttname"><a href="_o_m_x___component_8h.html">OMX_Component.h</a></div></div> <div class="ttc" id="omx__volume__component_8h_html_aa22039016219ec05ce34ea20ecb5b46a"><div class="ttname"><a href="omx__volume__component_8h.html#aa22039016219ec05ce34ea20ecb5b46a">omx_volume_component_GetConfig</a></div><div class="ttdeci">OMX_ERRORTYPE omx_volume_component_GetConfig(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nIndex, OMX_PTR pComponentConfigStructure)</div><div class="ttdef"><b>Definition:</b> <a href="omx__volume__component_8c_source.html#l00190">omx_volume_component.c:190</a></div></div> <div class="ttc" id="omx__classmagic_8h_html_a38f665d1a5cd230405e046e3acb30237"><div class="ttname"><a href="omx__classmagic_8h.html#a38f665d1a5cd230405e046e3acb30237">ENDCLASS</a></div><div class="ttdeci">#define ENDCLASS(a)</div><div class="ttdef"><b>Definition:</b> <a href="omx__classmagic_8h_source.html#l00052">omx_classmagic.h:52</a></div></div> <div class="ttc" id="struct_o_m_x___b_u_f_f_e_r_h_e_a_d_e_r_t_y_p_e_html"><div class="ttname"><a href="struct_o_m_x___b_u_f_f_e_r_h_e_a_d_e_r_t_y_p_e.html">OMX_BUFFERHEADERTYPE</a></div><div class="ttdef"><b>Definition:</b> <a href="_o_m_x___core_8h_source.html#l00398">OMX_Core.h:398</a></div></div> <div class="ttc" id="_o_m_x___types_8h_html_a35830b439b00948006e5ef824fef715f"><div class="ttname"><a href="_o_m_x___types_8h.html#a35830b439b00948006e5ef824fef715f">OMX_STRING</a></div><div class="ttdeci">char * OMX_STRING</div><div class="ttdef"><b>Definition:</b> <a href="_o_m_x___types_8h_source.html#l00206">OMX_Types.h:206</a></div></div> <div class="ttc" id="_o_m_x___types_8h_html_a52f5626b11279ed9a6ce8731abc365be"><div class="ttname"><a href="_o_m_x___types_8h.html#a52f5626b11279ed9a6ce8731abc365be">OMX_PTR</a></div><div class="ttdeci">void * OMX_PTR</div><div class="ttdef"><b>Definition:</b> <a href="_o_m_x___types_8h_source.html#l00199">OMX_Types.h:199</a></div></div> <div class="ttc" id="_o_m_x___index_8h_html_abc3b6e6cb9a9d5c14cb679ac455ea715"><div class="ttname"><a href="_o_m_x___index_8h.html#abc3b6e6cb9a9d5c14cb679ac455ea715">OMX_INDEXTYPE</a></div><div class="ttdeci">OMX_INDEXTYPE</div><div class="ttdef"><b>Definition:</b> <a href="_o_m_x___index_8h_source.html#l00060">OMX_Index.h:60</a></div></div> <div class="ttc" id="omx__volume__component_8h_html_a0048717a4840f2ba669ea04bdff1b0c5"><div class="ttname"><a href="omx__volume__component_8h.html#a0048717a4840f2ba669ea04bdff1b0c5">omx_volume_component_SetConfig</a></div><div class="ttdeci">OMX_ERRORTYPE omx_volume_component_SetConfig(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nIndex, OMX_PTR pComponentConfigStructure)</div><div class="ttdef"><b>Definition:</b> <a href="omx__volume__component_8c_source.html#l00163">omx_volume_component.c:163</a></div></div> <div class="ttc" id="structomx__base__filter___private_type_html"><div class="ttname"><a href="structomx__base__filter___private_type.html">omx_base_filter_PrivateType</a></div><div class="ttdef"><b>Definition:</b> <a href="omx__base__filter_8h_source.html#l00051">omx_base_filter.h:51</a></div></div> <div class="ttc" id="omx__classmagic_8h_html_a3d333bb35760e355d5270579d57f4309"><div class="ttname"><a href="omx__classmagic_8h.html#a3d333bb35760e355d5270579d57f4309">DERIVEDCLASS</a></div><div class="ttdeci">#define DERIVEDCLASS(a, b)</div><div class="ttdef"><b>Definition:</b> <a href="omx__classmagic_8h_source.html#l00050">omx_classmagic.h:50</a></div></div> <div class="ttc" id="_o_m_x___types_8h_html"><div class="ttname"><a href="_o_m_x___types_8h.html">OMX_Types.h</a></div></div> <div class="ttc" id="omx__volume__component_8h_html_afe9935635215be7dcaefe350df146b5d"><div class="ttname"><a href="omx__volume__component_8h.html#afe9935635215be7dcaefe350df146b5d">omx_volume_component_BufferMgmtCallback</a></div><div class="ttdeci">void omx_volume_component_BufferMgmtCallback(OMX_COMPONENTTYPE *openmaxStandComp, OMX_BUFFERHEADERTYPE *inputbuffer, OMX_BUFFERHEADERTYPE *outputbuffer)</div><div class="ttdef"><b>Definition:</b> <a href="omx__volume__component_8c_source.html#l00145">omx_volume_component.c:145</a></div></div> <div class="ttc" id="omx__volume__component_8h_html_a4308b35c37ec308a847436f695824441"><div class="ttname"><a href="omx__volume__component_8h.html#a4308b35c37ec308a847436f695824441">omx_volume_component_Destructor</a></div><div class="ttdeci">OMX_ERRORTYPE omx_volume_component_Destructor(OMX_COMPONENTTYPE *openmaxStandComp)</div><div class="ttdef"><b>Definition:</b> <a href="omx__volume__component_8c_source.html#l00120">omx_volume_component.c:120</a></div></div> <div class="ttc" id="omx__base__filter_8h_html"><div class="ttname"><a href="omx__base__filter_8h.html">omx_base_filter.h</a></div></div> <div class="ttc" id="omx__volume__component_8h_html_a424704835626977141c21786e2b1491f"><div class="ttname"><a href="omx__volume__component_8h.html#a424704835626977141c21786e2b1491f">omx_volume_component_GetParameter</a></div><div class="ttdeci">OMX_ERRORTYPE omx_volume_component_GetParameter(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nParamIndex, OMX_PTR ComponentParameterStructure)</div><div class="ttdef"><b>Definition:</b> <a href="omx__volume__component_8c_source.html#l00272">omx_volume_component.c:272</a></div></div> <div class="ttc" id="struct_o_m_x___c_o_m_p_o_n_e_n_t_t_y_p_e_html"><div class="ttname"><a href="struct_o_m_x___c_o_m_p_o_n_e_n_t_t_y_p_e.html">OMX_COMPONENTTYPE</a></div><div class="ttdef"><b>Definition:</b> <a href="_o_m_x___component_8h_source.html#l00307">OMX_Component.h:307</a></div></div> <div class="ttc" id="_o_m_x___core_8h_html"><div class="ttname"><a href="_o_m_x___core_8h.html">OMX_Core.h</a></div></div> <div class="ttc" id="omx__volume__component_8h_html_aedc3437cf95f35c72186b6fe2ef97292"><div class="ttname"><a href="omx__volume__component_8h.html#aedc3437cf95f35c72186b6fe2ef97292">omx_volume_component_SetParameter</a></div><div class="ttdeci">OMX_ERRORTYPE omx_volume_component_SetParameter(OMX_HANDLETYPE hComponent, OMX_INDEXTYPE nParamIndex, OMX_PTR ComponentParameterStructure)</div><div class="ttdef"><b>Definition:</b> <a href="omx__volume__component_8c_source.html#l00215">omx_volume_component.c:215</a></div></div> <div class="ttc" id="_o_m_x___core_8h_html_a4e2923ea92fd56f5bd9783a6dac7629a"><div class="ttname"><a href="_o_m_x___core_8h.html#a4e2923ea92fd56f5bd9783a6dac7629a">OMX_ERRORTYPE</a></div><div class="ttdeci">OMX_ERRORTYPE</div><div class="ttdef"><b>Definition:</b> <a href="_o_m_x___core_8h_source.html#l00126">OMX_Core.h:126</a></div></div> <div class="ttc" id="omx__volume__component_8h_html_a4b12909b15766c474c6fe5dd1e50dc07"><div class="ttname"><a href="omx__volume__component_8h.html#a4b12909b15766c474c6fe5dd1e50dc07">omx_volume_component_Constructor</a></div><div class="ttdeci">OMX_ERRORTYPE omx_volume_component_Constructor(OMX_COMPONENTTYPE *openmaxStandComp, OMX_STRING cComponentName)</div><div class="ttdef"><b>Definition:</b> <a href="omx__volume__component_8c_source.html#l00035">omx_volume_component.c:35</a></div></div> </div><!-- fragment --></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>