📄 g726_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>audio/G726.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.1 --><div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div><div class="nav"><a class="el" href="dir_000000.html">audio</a></div><h1>G726.h</h1><a href="G726_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 00025 <span class="preprocessor">#ifndef __G726_H__</span>00026 <span class="preprocessor"></span><span class="preprocessor">#define __G726_H__</span>00027 <span class="preprocessor"></span><a name="l00049"></a><a class="code" href="classG726.html">00049</a> <span class="keyword">class </span><a class="code" href="classG726.html">G726</a>00050 {00051 <span class="keyword">public</span>:<a name="l00055"></a><a class="code" href="classG726.html#w7">00055</a> <span class="keyword">enum</span> <a class="code" href="classG726.html#w7">Law</a>{00056 <a class="code" href="classG726.html#w7w0">uLaw</a>=0, 00057 <a class="code" href="classG726.html#w7w1">ALaw</a>=1, 00058 <a class="code" href="classG726.html#w7w2">PCM16</a>=2 00060 };00061 <a name="l00065"></a><a class="code" href="classG726.html#w8">00065</a> <span class="keyword">enum</span> <a class="code" href="classG726.html#w8">Rate</a>{00066 <a class="code" href="classG726.html#w8w3">Rate16kBits</a>=2, 00067 <a class="code" href="classG726.html#w8w4">Rate24kBits</a>=3, 00068 <a class="code" href="classG726.html#w8w5">Rate32kBits</a>=4, 00069 <a class="code" href="classG726.html#w8w6">Rate40kBits</a>=5 00070 };00071 <a name="l00077"></a><a class="code" href="classG726.html#a0">00077</a> <span class="keyword">inline</span> <a class="code" href="classG726.html#a0">G726</a>()00078 {00079 <a class="code" href="classG726.html#a1">Reset</a>();00080 }00081 00086 <a class="code" href="common_8h.html#a1">IMPORT</a> <span class="keywordtype">void</span> <a class="code" href="classG726.html#a1">Reset</a>();00087 00093 <a class="code" href="common_8h.html#a1">IMPORT</a> <span class="keywordtype">void</span> <a class="code" href="classG726.html#a2">SetLaw</a>(Law law);00094 00100 <a class="code" href="common_8h.html#a1">IMPORT</a> <span class="keywordtype">void</span> <a class="code" href="classG726.html#a3">SetRate</a>(Rate rate);00101 00114 <a class="code" href="common_8h.html#a1">IMPORT</a> <a class="code" href="group__integers.html#ga6">uint</a> <a class="code" href="classG726.html#a4">Encode</a>(uint pcm);00115 00129 <a class="code" href="common_8h.html#a1">IMPORT</a> <a class="code" href="group__integers.html#ga6">uint</a> <a class="code" href="classG726.html#a5">Decode</a>(uint adpcm);00130 00159 <a class="code" href="common_8h.html#a1">IMPORT</a> <a class="code" href="group__integers.html#ga6">uint</a> <a class="code" href="classG726.html#a4">Encode</a>(<span class="keywordtype">void</span>* dst, <span class="keywordtype">int</span> dstOffset, <span class="keyword">const</span> <span class="keywordtype">void</span>* src, uint srcSize);00160 00190 <a class="code" href="common_8h.html#a1">IMPORT</a> <a class="code" href="group__integers.html#ga6">uint</a> <a class="code" href="classG726.html#a5">Decode</a>(<span class="keywordtype">void</span>* dst, <span class="keyword">const</span> <span class="keywordtype">void</span>* src, <span class="keywordtype">int</span> srcOffset, uint srcSize);00191 <span class="keyword">private</span>:00192 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga0">InputPCMFormatConversionAndDifferenceSignalComputation</a>(uint S,<span class="keywordtype">int</span> SE,<span class="keywordtype">int</span>& D);00193 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga1">AdaptiveQuantizer</a>(<span class="keywordtype">int</span> D,uint Y,uint& I);00194 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga2">InverseAdaptiveQuantizer</a>(uint I,uint Y,uint& DQ);00195 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga3">QuantizerScaleFactorAdaptation1</a>(uint AL,uint& Y);00196 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga4">QuantizerScaleFactorAdaptation2</a>(uint I,uint Y);00197 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga5">AdaptationSpeedControl1</a>(uint& AL);00198 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga6">AdaptationSpeedControl2</a>(uint I,uint y,uint TDP,uint TR);00199 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga7">AdaptativePredictorAndReconstructedSignalCalculator1</a>(<span class="keywordtype">int</span>& SE,<span class="keywordtype">int</span>& SEZ);00200 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga8">AdaptativePredictorAndReconstructedSignalCalculator2</a>(uint DQ,uint TR,<span class="keywordtype">int</span> SE,<span class="keywordtype">int</span> SEZ,<span class="keywordtype">int</span>& SR,<span class="keywordtype">int</span>& A2P);00201 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga9">ToneAndTransitionDetector1</a>(uint DQ,uint& TR);00202 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga10">ToneAndTransitionDetector2</a>(<span class="keywordtype">int</span> A2P,uint TR,uint& TDP);00203 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga11">OutputPCMFormatConversionAndSynchronousCodingAdjustment</a>(<span class="keywordtype">int</span> SR,<span class="keywordtype">int</span> SE,uint Y,uint I,uint& SD);00204 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga12">DifferenceSignalComputation</a>(<span class="keywordtype">int</span> SL,<span class="keywordtype">int</span> SE,<span class="keywordtype">int</span>& D);00205 <span class="keywordtype">void</span> <a class="code" href="group__g726__section4B.html#ga13">OutputLimiting</a>(<span class="keywordtype">int</span> SR,<span class="keywordtype">int</span>& S0);00206 <a class="code" href="group__integers.html#ga6">uint</a> <a class="code" href="classG726.html#d14">EncodeDecode</a>(uint input,<span class="keywordtype">bool</span> encode);00207 <span class="keyword">private</span>:00208 Law LAW;00209 Rate RATE;00210 <span class="comment">// Persistant state for DELAY elements...</span>00211 <span class="keywordtype">int</span> A1;00212 <span class="keywordtype">int</span> A2;00213 <a class="code" href="group__integers.html#ga6">uint</a> AP;00214 <span class="keywordtype">int</span> Bn[6];00215 <a class="code" href="group__integers.html#ga6">uint</a> DML;00216 <a class="code" href="group__integers.html#ga6">uint</a> DMS;00217 <a class="code" href="group__integers.html#ga6">uint</a> DQn[6];00218 <span class="keywordtype">int</span> PK1;00219 <span class="keywordtype">int</span> PK2;00220 <a class="code" href="group__integers.html#ga6">uint</a> SR1;00221 <a class="code" href="group__integers.html#ga6">uint</a> SR2;00222 <a class="code" href="group__integers.html#ga6">uint</a> TD;00223 <a class="code" href="group__integers.html#ga6">uint</a> YL;00224 <a class="code" href="group__integers.html#ga6">uint</a> YU;00225 00226 <span class="keyword">friend</span> <span class="keyword">class </span>G726Test;00227 };00228 <a name="l00238"></a><a class="code" href="group__g726.html#ga0">00238</a> <span class="preprocessor">#define IMPLEMENT_G191_BUGS</span>00239 <span class="preprocessor"></span> <span class="comment">// End of group</span>00241 00242 <span class="preprocessor">#endif</span>00243 <span class="preprocessor"></span></pre></div><HR><ADDRESS STYLE="align: right;"><SMALL>Generated by <A HREF="http://www.doxygen.org/index.html"><IMG SRC="doxygen.png" ALT="doxygen" ALIGN="middle" BORDER="0"></A> 1.4.1</SMALL></ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -