/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
H A D | dtmf_tone_generator.cc | 105 // 48000), event (0-15) and attenuation (0-36 dB). 107 int DtmfToneGenerator::Init(int fs, int event, int attenuation) { argument 127 if (attenuation < 0 || attenuation > 36) { 128 return kParameterError; // Invalid attenuation. 135 amplitude_ = kAmplitude[attenuation];
|
H A D | dtmf_tone_generator_unittest.cc | 26 // This is the attenuation applied to all cases. 70 ASSERT_EQ(0, tone_gen_.Init(fs_hz, event, 0)); // 0 attenuation. 73 for (int attenuation = 1; attenuation <= 36; attenuation += 5) { 76 ss << "; attenuation " << attenuation; local 78 ASSERT_EQ(0, tone_gen_.Init(fs_hz, event, attenuation)); 82 pow(10, -static_cast<double>(attenuation) / 20); 83 // Verify that the attenuation i 158 const int attenuation = 0; // Valid attenuation. local [all...] |
H A D | dtmf_tone_generator.h | 31 virtual int Init(int fs, int event, int attenuation); 42 static const int16_t kAmpMultiplier = 23171; // 3 dB attenuation (in Q15).
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/mock/ |
H A D | mock_dtmf_tone_generator.h | 25 int(int fs, int event, int attenuation));
|
/external/chromium_org/third_party/mesa/src/src/mesa/tnl/ |
H A D | t_vb_lighttmp.h | 115 GLfloat attenuation; local 120 /* compute VP and attenuation */ 124 attenuation = light->_VP_inf_spot_attenuation; 138 attenuation = 1.0F / (light->ConstantAttenuation + d * 142 /* spotlight attenuation */ 151 attenuation *= spot; 156 if (attenuation < 1e-3) 164 ACC_SCALE_SCALAR_3V(sum[0], attenuation, light->_MatAmbient[0]); 175 ACC_SCALE_SCALAR_3V( sum[1], attenuation, light->_MatAmbient[1]); 184 ACC_SCALE_SCALAR_3V(sum[side], attenuation, contri 292 GLfloat attenuation = 1.0; local [all...] |
H A D | t_rasterpos.c | 132 GLfloat attenuation = 1.0; local 140 attenuation = light->_VP_inf_spot_attenuation; 157 attenuation = 1.0F / (light->ConstantAttenuation + d * 169 attenuation *= spot; 174 if (attenuation < 1e-3) 180 ACC_SCALE_SCALAR_3V(diffuseColor, attenuation, light->_MatAmbient[0]); 234 ACC_SCALE_SCALAR_3V( diffuseColor, attenuation, diffuseContrib ); 235 ACC_SCALE_SCALAR_3V( specularColor, attenuation, specularContrib );
|
/external/mesa3d/src/mesa/tnl/ |
H A D | t_vb_lighttmp.h | 115 GLfloat attenuation; local 120 /* compute VP and attenuation */ 124 attenuation = light->_VP_inf_spot_attenuation; 138 attenuation = 1.0F / (light->ConstantAttenuation + d * 142 /* spotlight attenuation */ 151 attenuation *= spot; 156 if (attenuation < 1e-3) 164 ACC_SCALE_SCALAR_3V(sum[0], attenuation, light->_MatAmbient[0]); 175 ACC_SCALE_SCALAR_3V( sum[1], attenuation, light->_MatAmbient[1]); 184 ACC_SCALE_SCALAR_3V(sum[side], attenuation, contri 292 GLfloat attenuation = 1.0; local [all...] |
H A D | t_rasterpos.c | 132 GLfloat attenuation = 1.0; local 140 attenuation = light->_VP_inf_spot_attenuation; 157 attenuation = 1.0F / (light->ConstantAttenuation + d * 169 attenuation *= spot; 174 if (attenuation < 1e-3) 180 ACC_SCALE_SCALAR_3V(diffuseColor, attenuation, light->_MatAmbient[0]); 234 ACC_SCALE_SCALAR_3V( diffuseColor, attenuation, diffuseContrib ); 235 ACC_SCALE_SCALAR_3V( specularColor, attenuation, specularContrib );
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ |
H A D | DynamicsCompressorKernel.cpp | 395 float attenuation = absInput <= 0.0001f ? 1 : shapedInput / absInput; local 397 float attenuationDb = -linearToDecibels(attenuation); 404 bool isRelease = (attenuation > detectorAverage); 407 detectorAverage += (attenuation - detectorAverage) * rate;
|
/external/kernel-headers/original/uapi/sound/ |
H A D | sfnt_info.h | 136 unsigned char attenuation; /* attenuation (0.375dB) */ member in struct:soundfont_voice_info
|
/external/chromium_org/third_party/opus/src/celt/ |
H A D | celt_decoder.c | 467 opus_val16 attenuation; local 557 attenuation = MULT16_16_Q15(fade, decay); 563 attenuation = MULT16_16_Q15(attenuation, decay); 566 SHL32(EXTEND32(MULT16_16_Q15(attenuation,
|
/external/libopus/celt/ |
H A D | celt_decoder.c | 467 opus_val16 attenuation; local 557 attenuation = MULT16_16_Q15(fade, decay); 563 attenuation = MULT16_16_Q15(attenuation, decay); 566 SHL32(EXTEND32(MULT16_16_Q15(attenuation,
|
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
H A D | ffvertex_prog.c | 950 struct ureg attenuation = register_param3(p, STATE_LIGHT, i, local 954 /* Calculate spot attenuation: 966 emit_op2(p, OPCODE_POW, spot, 0, spot, swizzle1(attenuation, W)); 973 /* Calculate distance attenuation(See formula (2.4) at glspec 2.1 page 62): 985 emit_op2(p, OPCODE_DP3, dist, 0, attenuation, dist); 1141 * attenuation below. 1148 /* Calculate attenuation: 1525 * Point size attenuation computation.
|
/external/mesa3d/src/mesa/main/ |
H A D | ffvertex_prog.c | 950 struct ureg attenuation = register_param3(p, STATE_LIGHT, i, local 954 /* Calculate spot attenuation: 966 emit_op2(p, OPCODE_POW, spot, 0, spot, swizzle1(attenuation, W)); 973 /* Calculate distance attenuation(See formula (2.4) at glspec 2.1 page 62): 985 emit_op2(p, OPCODE_DP3, dist, 0, attenuation, dist); 1141 * attenuation below. 1148 /* Calculate attenuation: 1525 * Point size attenuation computation.
|
/external/chromium_org/third_party/mesa/src/src/mesa/program/ |
H A D | program_lexer.l | 262 {dot}attenuation { return ATTENUATION; }
|
/external/mesa3d/src/mesa/program/ |
H A D | program_lexer.l | 262 {dot}attenuation { return ATTENUATION; }
|
/external/chromium_org/third_party/speex/libspeex/ |
H A D | nb_celp.c | 1014 const spx_word16_t attenuation[10] = {32767, 31483, 27923, 22861, 17278, 12055, 7764, 4616, 2533, 1283}; variable 1016 const spx_word16_t attenuation[10] = {1., 0.961, 0.852, 0.698, 0.527, 0.368, 0.237, 0.141, 0.077, 0.039}; variable 1031 fact = attenuation[st->count_lost];
|
/external/speex/libspeex/ |
H A D | nb_celp.c | 1014 const spx_word16_t attenuation[10] = {32767, 31483, 27923, 22861, 17278, 12055, 7764, 4616, 2533, 1283}; variable 1016 const spx_word16_t attenuation[10] = {1., 0.961, 0.852, 0.698, 0.527, 0.368, 0.237, 0.141, 0.077, 0.039}; variable 1031 fact = attenuation[st->count_lost];
|