Home | History | Annotate | Download | only in src
      1 /*
      2  * Copyright (C) 2004-2010 NXP Software
      3  * Copyright (C) 2010 The Android Open Source Project
      4  *
      5  * Licensed under the Apache License, Version 2.0 (the "License");
      6  * you may not use this file except in compliance with the License.
      7  * You may obtain a copy of the License at
      8  *
      9  *      http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  * Unless required by applicable law or agreed to in writing, software
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16  */
     17 
     18 /************************************************************************************/
     19 /*                                                                                  */
     20 /* Mixer library tables                                                             */
     21 /*                                                                                  */
     22 /* Coefficients and table values for the mixer library, generated by the Matlab     */
     23 /* Script: Mixer_GenerateCoeffs.m                                                   */
     24 /*                                                                                  */
     25 /************************************************************************************/
     26 
     27 #ifndef __LVM_MIXER_FILTER_COEFFS_H__
     28 #define __LVM_MIXER_FILTER_COEFFS_H__
     29 
     30 
     31 /************************************************************************************/
     32 /*                                                                                  */
     33 /* Alpha Time Constant table                                                        */
     34 /*                                                                                  */
     35 /************************************************************************************/
     36 
     37 #define Alpha_TableSize                        50      /* The number of table entires */
     38 #define ALPHA_0                        2147480769      /* Floating point Alpha = 0.999999 */
     39 #define ALPHA_1                        2147479577      /* Floating point Alpha = 0.999998 */
     40 #define ALPHA_2                        2147477892      /* Floating point Alpha = 0.999997 */
     41 #define ALPHA_3                        2147475510      /* Floating point Alpha = 0.999996 */
     42 #define ALPHA_4                        2147472141      /* Floating point Alpha = 0.999995 */
     43 #define ALPHA_5                        2147467377      /* Floating point Alpha = 0.999992 */
     44 #define ALPHA_6                        2147460642      /* Floating point Alpha = 0.999989 */
     45 #define ALPHA_7                        2147451118      /* Floating point Alpha = 0.999985 */
     46 #define ALPHA_8                        2147437651      /* Floating point Alpha = 0.999979 */
     47 #define ALPHA_9                        2147418608      /* Floating point Alpha = 0.999970 */
     48 #define ALPHA_10                       2147391683      /* Floating point Alpha = 0.999957 */
     49 #define ALPHA_11                       2147353611      /* Floating point Alpha = 0.999939 */
     50 #define ALPHA_12                       2147299779      /* Floating point Alpha = 0.999914 */
     51 #define ALPHA_13                       2147223662      /* Floating point Alpha = 0.999879 */
     52 #define ALPHA_14                       2147116037      /* Floating point Alpha = 0.999829 */
     53 #define ALPHA_15                       2146963865      /* Floating point Alpha = 0.999758 */
     54 #define ALPHA_16                       2146748712      /* Floating point Alpha = 0.999658 */
     55 #define ALPHA_17                       2146444522      /* Floating point Alpha = 0.999516 */
     56 #define ALPHA_18                       2146014472      /* Floating point Alpha = 0.999316 */
     57 #define ALPHA_19                       2145406527      /* Floating point Alpha = 0.999033 */
     58 #define ALPHA_20                       2144547188      /* Floating point Alpha = 0.998633 */
     59 #define ALPHA_21                       2143332669      /* Floating point Alpha = 0.998067 */
     60 #define ALPHA_22                       2141616514      /* Floating point Alpha = 0.997268 */
     61 #define ALPHA_23                       2139192215      /* Floating point Alpha = 0.996139 */
     62 #define ALPHA_24                       2135768939      /* Floating point Alpha = 0.994545 */
     63 #define ALPHA_25                       2130937774      /* Floating point Alpha = 0.992295 */
     64 #define ALPHA_26                       2124125153      /* Floating point Alpha = 0.989123 */
     65 #define ALPHA_27                       2114529263      /* Floating point Alpha = 0.984654 */
     66 #define ALPHA_28                       2101034612      /* Floating point Alpha = 0.978370 */
     67 #define ALPHA_29                       2082100030      /* Floating point Alpha = 0.969553 */
     68 #define ALPHA_30                       2055617398      /* Floating point Alpha = 0.957221 */
     69 #define ALPHA_31                       2018744824      /* Floating point Alpha = 0.940051 */
     70 #define ALPHA_32                       1967733015      /* Floating point Alpha = 0.916297 */
     71 #define ALPHA_33                       1897794587      /* Floating point Alpha = 0.883729 */
     72 #define ALPHA_34                       1803123234      /* Floating point Alpha = 0.839645 */
     73 #define ALPHA_35                       1677262220      /* Floating point Alpha = 0.781036 */
     74 #define ALPHA_36                       1514142675      /* Floating point Alpha = 0.705078 */
     75 #define ALPHA_37                       1310197875      /* Floating point Alpha = 0.610108 */
     76 #define ALPHA_38                       1067813480      /* Floating point Alpha = 0.497239 */
     77 #define ALPHA_39                        799601371      /* Floating point Alpha = 0.372343 */
     78 #define ALPHA_40                        531183049      /* Floating point Alpha = 0.247351 */
     79 #define ALPHA_41                        297904007      /* Floating point Alpha = 0.138722 */
     80 #define ALPHA_42                        131499768      /* Floating point Alpha = 0.061234 */
     81 #define ALPHA_43                         41375282      /* Floating point Alpha = 0.019267 */
     82 #define ALPHA_44                          8065899      /* Floating point Alpha = 0.003756 */
     83 #define ALPHA_45                           799076      /* Floating point Alpha = 0.000372 */
     84 #define ALPHA_46                            30398      /* Floating point Alpha = 0.000014 */
     85 #define ALPHA_47                              299      /* Floating point Alpha = 0.000000 */
     86 #define ALPHA_48                                0      /* Floating point Alpha = 0.000000 */
     87 #define ALPHA_49                                0      /* Floating point Alpha = 0.000000 */
     88 #define ALPHA_50                                0      /* Floating point Alpha = 0.000000 */
     89 
     90 #ifdef BUILD_FLOAT /* BUILD_FLOAT */
     91 #define ALPHA_Float_0                        0.999999f
     92 #define ALPHA_Float_1                        0.999998f
     93 #define ALPHA_Float_2                        0.999997f
     94 #define ALPHA_Float_3                        0.999996f
     95 #define ALPHA_Float_4                        0.999995f
     96 #define ALPHA_Float_5                        0.999992f
     97 #define ALPHA_Float_6                        0.999989f
     98 #define ALPHA_Float_7                        0.999985f
     99 #define ALPHA_Float_8                        0.999979f
    100 #define ALPHA_Float_9                        0.999970f
    101 #define ALPHA_Float_10                       0.999957f
    102 #define ALPHA_Float_11                       0.999939f
    103 #define ALPHA_Float_12                       0.999914f
    104 #define ALPHA_Float_13                       0.999879f
    105 #define ALPHA_Float_14                       0.999829f
    106 #define ALPHA_Float_15                       0.999758f
    107 #define ALPHA_Float_16                       0.999658f
    108 #define ALPHA_Float_17                       0.999516f
    109 #define ALPHA_Float_18                       0.999316f
    110 #define ALPHA_Float_19                       0.999033f
    111 #define ALPHA_Float_20                       0.998633f
    112 #define ALPHA_Float_21                       0.998067f
    113 #define ALPHA_Float_22                       0.997268f
    114 #define ALPHA_Float_23                       0.996139f
    115 #define ALPHA_Float_24                       0.994545f
    116 #define ALPHA_Float_25                       0.992295f
    117 #define ALPHA_Float_26                       0.989123f
    118 #define ALPHA_Float_27                       0.984654f
    119 #define ALPHA_Float_28                       0.978370f
    120 #define ALPHA_Float_29                       0.969553f
    121 #define ALPHA_Float_30                       0.957221f
    122 #define ALPHA_Float_31                       0.940051f
    123 #define ALPHA_Float_32                       0.916297f
    124 #define ALPHA_Float_33                       0.883729f
    125 #define ALPHA_Float_34                       0.839645f
    126 #define ALPHA_Float_35                       0.781036f
    127 #define ALPHA_Float_36                       0.705078f
    128 #define ALPHA_Float_37                       0.610108f
    129 #define ALPHA_Float_38                       0.497239f
    130 #define ALPHA_Float_39                       0.372343f
    131 #define ALPHA_Float_40                       0.247351f
    132 #define ALPHA_Float_41                       0.138722f
    133 #define ALPHA_Float_42                       0.061234f
    134 #define ALPHA_Float_43                       0.019267f
    135 #define ALPHA_Float_44                       0.003756f
    136 #define ALPHA_Float_45                       0.000372f
    137 #define ALPHA_Float_46                       0.000014f
    138 #define ALPHA_Float_47                       0.000000f
    139 #define ALPHA_Float_48                       0.000000f
    140 #define ALPHA_Float_49                       0.000000f
    141 #define ALPHA_Float_50                       0.000000f
    142 #endif
    143 
    144 #endif
    145