1 /* 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #ifndef WEBRTC_MODULES_AUDIO_PROCESSING_AGC_GAIN_MAP_INTERNAL_H_ 12 #define WEBRTC_MODULES_AUDIO_PROCESSING_AGC_GAIN_MAP_INTERNAL_H_ 13 14 static const int kGainMapSize = 256; 15 // Uses parameters: si = 2, sf = 0.25, D = 8/256 16 static const int kGainMap[kGainMapSize] = { 17 -56, 18 -54, 19 -52, 20 -50, 21 -48, 22 -47, 23 -45, 24 -43, 25 -42, 26 -40, 27 -38, 28 -37, 29 -35, 30 -34, 31 -33, 32 -31, 33 -30, 34 -29, 35 -27, 36 -26, 37 -25, 38 -24, 39 -23, 40 -22, 41 -20, 42 -19, 43 -18, 44 -17, 45 -16, 46 -15, 47 -14, 48 -14, 49 -13, 50 -12, 51 -11, 52 -10, 53 -9, 54 -8, 55 -8, 56 -7, 57 -6, 58 -5, 59 -5, 60 -4, 61 -3, 62 -2, 63 -2, 64 -1, 65 0, 66 0, 67 1, 68 1, 69 2, 70 3, 71 3, 72 4, 73 4, 74 5, 75 5, 76 6, 77 6, 78 7, 79 7, 80 8, 81 8, 82 9, 83 9, 84 10, 85 10, 86 11, 87 11, 88 12, 89 12, 90 13, 91 13, 92 13, 93 14, 94 14, 95 15, 96 15, 97 15, 98 16, 99 16, 100 17, 101 17, 102 17, 103 18, 104 18, 105 18, 106 19, 107 19, 108 19, 109 20, 110 20, 111 21, 112 21, 113 21, 114 22, 115 22, 116 22, 117 23, 118 23, 119 23, 120 24, 121 24, 122 24, 123 24, 124 25, 125 25, 126 25, 127 26, 128 26, 129 26, 130 27, 131 27, 132 27, 133 28, 134 28, 135 28, 136 28, 137 29, 138 29, 139 29, 140 30, 141 30, 142 30, 143 30, 144 31, 145 31, 146 31, 147 32, 148 32, 149 32, 150 32, 151 33, 152 33, 153 33, 154 33, 155 34, 156 34, 157 34, 158 35, 159 35, 160 35, 161 35, 162 36, 163 36, 164 36, 165 36, 166 37, 167 37, 168 37, 169 38, 170 38, 171 38, 172 38, 173 39, 174 39, 175 39, 176 39, 177 40, 178 40, 179 40, 180 40, 181 41, 182 41, 183 41, 184 41, 185 42, 186 42, 187 42, 188 42, 189 43, 190 43, 191 43, 192 44, 193 44, 194 44, 195 44, 196 45, 197 45, 198 45, 199 45, 200 46, 201 46, 202 46, 203 46, 204 47, 205 47, 206 47, 207 47, 208 48, 209 48, 210 48, 211 48, 212 49, 213 49, 214 49, 215 49, 216 50, 217 50, 218 50, 219 50, 220 51, 221 51, 222 51, 223 51, 224 52, 225 52, 226 52, 227 52, 228 53, 229 53, 230 53, 231 53, 232 54, 233 54, 234 54, 235 54, 236 55, 237 55, 238 55, 239 55, 240 56, 241 56, 242 56, 243 56, 244 57, 245 57, 246 57, 247 57, 248 58, 249 58, 250 58, 251 58, 252 59, 253 59, 254 59, 255 59, 256 60, 257 60, 258 60, 259 60, 260 61, 261 61, 262 61, 263 61, 264 62, 265 62, 266 62, 267 62, 268 63, 269 63, 270 63, 271 63, 272 64 273 }; 274 275 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_AGC_GAIN_MAP_INTERNAL_H_ 276