Searched defs:residual_energy (Results 1 - 6 of 6) sorted by relevance

/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/isac/fix/source/
H A Dlpc_masking_model_unittest.cc29 int32_t residual_energy = 0; local
31 // Test the code path where (residual_energy >= 0x10000).
32 residual_energy = CalculateResidualEnergyFunction(kIntOrder,
34 EXPECT_EQ(1789023310, residual_energy);
37 // Test the code path where (residual_energy < 0x10000)
43 residual_energy = CalculateResidualEnergyFunction(kIntOrder,
45 EXPECT_EQ(1595279092, residual_energy);
48 // Test the code path where (residual_energy <= 0x7fff).
52 residual_energy = CalculateResidualEnergyFunction(kIntOrder,
54 EXPECT_EQ(2029266944, residual_energy);
[all...]
H A Dlpc_masking_model_mips.c25 int32_t tmp32 = 0, word32_high = 0, word32_low = 0, residual_energy = 0; local
33 // residual_energy +=
116 // residual_energy +=
209 "srl %[residual_energy], %[sum64_lo], %[shift_norm] \n\t"
213 "or %[residual_energy], %[residual_energy], %[tmp1] \n\t"
215 : [residual_energy] "=&r" (residual_energy), [tmp1]"=&r"(tmp1),
223 residual_energy = (uint32_t)word32_low >> 1;
226 residual_energy
[all...]
H A Dlpc_masking_model.c482 int32_t tmp32 = 0, word32_high = 0, word32_low = 0, residual_energy = 0; local
487 /* For the case of i == 0: residual_energy +=
489 * For the case of i != 0: residual_energy +=
520 residual_energy = (int32_t)(sum64 >> shift_norm);
524 residual_energy = (uint32_t)word32_low >> 1;
527 residual_energy = word32_low << shift_norm;
538 return residual_energy;
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/test/
H A Disacfix_unittest.cc31 int32_t residual_energy = 0; local
33 // Test the code path where (residual_energy >= 0x10000).
34 residual_energy = CalculateResidualEnergyFunction(kIntOrder,
36 EXPECT_EQ(1789023310, residual_energy);
39 // Test the code path where (residual_energy < 0x10000)
45 residual_energy = CalculateResidualEnergyFunction(kIntOrder,
47 EXPECT_EQ(1595279092, residual_energy);
50 // Test the code path where (residual_energy <= 0x7fff).
54 residual_energy = CalculateResidualEnergyFunction(kIntOrder,
56 EXPECT_EQ(2029266944, residual_energy);
[all...]
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/
H A Dbackground_noise.cc95 int32_t residual_energy = WebRtcSpl_DotProductWithScale(fiter_output, local
103 // If 20 * residual_energy >= sample_energy << 6, the spectrum is flat
105 if ((residual_energy * 20 >= (sample_energy << 6)) &&
113 residual_energy);
229 int32_t residual_energy) {
242 // Normalize residual_energy to 29 or 30 bits before sqrt.
243 int norm_shift = WebRtcSpl_NormW32(residual_energy) - 1;
248 residual_energy = residual_energy << norm_shift;
251 parameters.scale = WebRtcSpl_SqrtFloor(residual_energy);
225 SaveParameters(size_t channel, const int16_t* lpc_coefficients, const int16_t* filter_state, int32_t sample_energy, int32_t residual_energy) argument
[all...]
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/source/
H A Dlpc_masking_model.c482 int32_t tmp32 = 0, word32_high = 0, word32_low = 0, residual_energy = 0; local
487 /* For the case of i == 0: residual_energy +=
489 * For the case of i != 0: residual_energy +=
520 residual_energy = (int32_t)(sum64 >> shift_norm);
524 residual_energy = (uint32_t)word32_low >> 1;
527 residual_energy = word32_low << shift_norm;
538 return residual_energy;

Completed in 800 milliseconds