Home | History | Annotate | Download | only in inc
      1 /*
      2  ** Copyright 2003-2010, VisualOn, Inc.
      3  **
      4  ** Licensed under the Apache License, Version 2.0 (the "License");
      5  ** you may not use this file except in compliance with the License.
      6  ** You may obtain a copy of the License at
      7  **
      8  **     http://www.apache.org/licenses/LICENSE-2.0
      9  **
     10  ** Unless required by applicable law or agreed to in writing, software
     11  ** distributed under the License is distributed on an "AS IS" BASIS,
     12  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  ** See the License for the specific language governing permissions and
     14  ** limitations under the License.
     15  */
     16 
     17 
     18 /*-----------------------------------------------------*
     19  | Table of lag_window for autocorrelation.            |
     20  | noise floor = 1.0001   = (0.9999  on r[1] ..r[16])  |
     21  | Bandwidth expansion = 60 Hz                         |
     22  | Sampling frequency  = 12800 Hz                      |
     23  |                                                     |
     24  | Special double precision format. See "math_op.c"    |
     25  |                                                     |
     26  | lag_wind[0] =  1.00000000    (not stored)           |
     27  | lag_wind[1] =  0.99946642                           |
     28  | lag_wind[2] =  0.99816680                           |
     29  | lag_wind[3] =  0.99600452                           |
     30  | lag_wind[4] =  0.99298513                           |
     31  | lag_wind[5] =  0.98911655                           |
     32  | lag_wind[6] =  0.98440880                           |
     33  | lag_wind[7] =  0.97887397                           |
     34  | lag_wind[8] =  0.97252619                           |
     35  | lag_wind[9] =  0.96538186                           |
     36  | lag_wind[10]=  0.95745903                           |
     37  | lag_wind[11]=  0.94877797                           |
     38  | lag_wind[12]=  0.93936038                           |
     39  | lag_wind[13]=  0.92922986                           |
     40  | lag_wind[14]=  0.91841155                           |
     41  | lag_wind[15]=  0.90693212                           |
     42  | lag_wind[16]=  0.89481968                           |
     43  ------------------------------------------------------*/
     44 
     45 #define M 16
     46 
     47 static Word16 volag_h[M] = {
     48       32750,
     49       32707,
     50       32637,
     51       32538,
     52       32411,
     53       32257,
     54       32075,
     55       31867,
     56       31633,
     57       31374,
     58       31089,
     59       30780,
     60       30449,
     61       30094,
     62       29718,
     63       29321};
     64 
     65 static Word16 volag_l[M] = {
     66       16896,
     67       30464,
     68        2496,
     69        4480,
     70       12160,
     71        3520,
     72       24320,
     73       24192,
     74       20736,
     75         576,
     76       18240,
     77       31488,
     78         128,
     79       16704,
     80       11520,
     81       14784};
     82