/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | decision_logic.cc | 26 DecisionLogic* DecisionLogic::Create(int fs_hz, in Create() argument 36 return new DecisionLogicNormal(fs_hz, in Create() 45 return new DecisionLogicFax(fs_hz, in Create() 58 DecisionLogic::DecisionLogic(int fs_hz, in DecisionLogic() argument 78 SetSampleRate(fs_hz, output_size_samples); in DecisionLogic() 98 void DecisionLogic::SetSampleRate(int fs_hz, size_t output_size_samples) { in SetSampleRate() argument 100 assert(fs_hz == 8000 || fs_hz == 16000 || fs_hz == 32000 || fs_hz == 48000); in SetSampleRate() 101 fs_mult_ = fs_hz / 8000; in SetSampleRate()
|
D | decision_logic_unittest.cc | 24 int fs_hz = 8000; in TEST() local 25 int output_size_samples = fs_hz / 100; // Samples per 10 ms. in TEST() 31 DecisionLogic* logic = DecisionLogic::Create(fs_hz, output_size_samples, in TEST() 36 logic = DecisionLogic::Create(fs_hz, output_size_samples, in TEST() 42 logic = DecisionLogic::Create(fs_hz, output_size_samples, in TEST() 48 logic = DecisionLogic::Create(fs_hz, output_size_samples, in TEST()
|
D | dtmf_tone_generator_unittest.cc | 31 void TestAllTones(int fs_hz, int channels) { in TestAllTones() argument 36 ss << "Checking event " << event << " at sample rate " << fs_hz; in TestAllTones() 39 ASSERT_EQ(0, tone_gen_.Init(fs_hz, event, kAttenuation)); in TestAllTones() 48 double x = k3dbAttenuation * sin(2.0 * pi * f1 / fs_hz * (-n - 1)) + in TestAllTones() 49 sin(2.0 * pi * f2 / fs_hz * (-n - 1)); in TestAllTones() 62 void TestAmplitudes(int fs_hz, int channels) { in TestAmplitudes() argument 70 ASSERT_EQ(0, tone_gen_.Init(fs_hz, event, 0)); // 0 attenuation. in TestAmplitudes() 75 ss << "Checking event " << event << " at sample rate " << fs_hz; in TestAmplitudes() 78 ASSERT_EQ(0, tone_gen_.Init(fs_hz, event, attenuation)); in TestAmplitudes()
|
D | dtmf_buffer.cc | 26 DtmfBuffer::DtmfBuffer(int fs_hz) { in DtmfBuffer() argument 27 SetSampleRate(fs_hz); in DtmfBuffer() 198 int DtmfBuffer::SetSampleRate(int fs_hz) { in SetSampleRate() argument 199 if (fs_hz != 8000 && in SetSampleRate() 200 fs_hz != 16000 && in SetSampleRate() 201 fs_hz != 32000 && in SetSampleRate() 202 fs_hz != 48000) { in SetSampleRate() 205 max_extrapolation_samples_ = 7 * fs_hz / 100; in SetSampleRate() 206 frame_len_samples_ = fs_hz / 100; in SetSampleRate()
|
D | decoder_database.cc | 50 const int fs_hz = CodecSampleRateHz(codec_type); in RegisterPayload() local 51 DecoderInfo info(codec_type, name, fs_hz, NULL, false); in RegisterPayload() 63 int fs_hz, in InsertExternal() argument 71 if (fs_hz != 8000 && fs_hz != 16000 && fs_hz != 32000 && fs_hz != 48000) { in InsertExternal() 78 DecoderInfo info(codec_type, codec_name, fs_hz, decoder, true); in InsertExternal()
|
D | post_decode_vad.cc | 51 int fs_hz) { in Update() argument 57 fs_hz > 16000) { in Update() 77 static_cast<size_t>(vad_frame_size_ms * fs_hz / 1000); in Update() 80 vad_instance_, fs_hz, &signal[vad_sample_index], in Update()
|
D | statistics_calculator.cc | 171 void StatisticsCalculator::IncreaseCounter(size_t num_samples, int fs_hz) { in IncreaseCounter() argument 173 rtc::CheckedDivExact(static_cast<int>(1000 * num_samples), fs_hz); in IncreaseCounter() 178 static_cast<uint32_t>(fs_hz * kMaxReportPeriod)) { in IncreaseCounter() 207 int fs_hz, in GetNetworkStatistics() argument 213 if (fs_hz <= 0 || !stats) { in GetNetworkStatistics() 220 static_cast<uint16_t>(num_samples_in_buffers * 1000 / fs_hz); in GetNetworkStatistics() 222 decision_logic.packet_length_samples() / (fs_hz / 1000)); in GetNetworkStatistics()
|
D | decoder_database.h | 50 fs_hz(fs), in DecoderInfo() 58 int fs_hz = 8000; member 96 int fs_hz,
|
D | decision_logic.h | 36 static DecisionLogic* Create(int fs_hz, 45 DecisionLogic(int fs_hz, 63 void SetSampleRate(int fs_hz, size_t output_size_samples);
|
D | decision_logic_fax.h | 25 DecisionLogicFax(int fs_hz, in DecisionLogicFax() argument 32 : DecisionLogic(fs_hz, output_size_samples, playout_mode, in DecisionLogicFax()
|
D | normal.h | 35 Normal(int fs_hz, DecoderDatabase* decoder_database, in Normal() argument 38 : fs_hz_(fs_hz), in Normal()
|
D | comfort_noise.h | 35 ComfortNoise(int fs_hz, DecoderDatabase* decoder_database, in ComfortNoise() argument 37 : fs_hz_(fs_hz), in ComfortNoise()
|
D | neteq_impl.cc | 694 if (decoder_info->fs_hz != fs_hz_ || in InsertPacketInternal() 696 SetSampleRateAndChannels(decoder_info->fs_hz, decoder->Channels()); in InsertPacketInternal() 1233 if (decoder_info->fs_hz != fs_hz_ || in Decode() 1236 SetSampleRateAndChannels(decoder_info->fs_hz, decoder->Channels()); in Decode() 1949 void NetEqImpl::UpdatePlcComponents(int fs_hz, size_t channels) { in UpdatePlcComponents() argument 1953 &stats_, fs_hz, channels)); in UpdatePlcComponents() 1954 merge_.reset(new Merge(fs_hz, channels, expand_.get(), sync_buffer_.get())); in UpdatePlcComponents() 1957 void NetEqImpl::SetSampleRateAndChannels(int fs_hz, size_t channels) { in SetSampleRateAndChannels() argument 1958 LOG(LS_VERBOSE) << "SetSampleRateAndChannels " << fs_hz << " " << channels; in SetSampleRateAndChannels() 1960 assert(fs_hz == 8000 || fs_hz == 16000 || fs_hz == 32000 || fs_hz == 48000); in SetSampleRateAndChannels() [all …]
|
D | decision_logic_normal.h | 25 DecisionLogicNormal(int fs_hz, in DecisionLogicNormal() argument 32 : DecisionLogic(fs_hz, output_size_samples, playout_mode, in DecisionLogicNormal()
|
D | dtmf_buffer.h | 58 explicit DtmfBuffer(int fs_hz); 88 virtual int SetSampleRate(int fs_hz);
|
D | statistics_calculator.h | 67 void IncreaseCounter(size_t num_samples, int fs_hz); 84 void GetNetworkStatistics(int fs_hz,
|
D | post_decode_vad.h | 50 AudioDecoder::SpeechType speech_type, bool sid_frame, int fs_hz);
|
D | merge.h | 36 Merge(int fs_hz,
|
D | decoder_database_unittest.cc | 57 EXPECT_EQ(8000, info->fs_hz); in TEST() 143 EXPECT_EQ(8000, info->fs_hz); in TEST()
|
D | merge.cc | 27 Merge::Merge(int fs_hz, in Merge() argument 31 : fs_hz_(fs_hz), in Merge()
|
D | neteq_impl.h | 327 void SetSampleRateAndChannels(int fs_hz, size_t channels) 335 virtual void UpdatePlcComponents(int fs_hz, size_t channels)
|
/external/webrtc/webrtc/modules/audio_coding/neteq/mock/ |
D | mock_decoder_database.h | 37 const std::string& codec_name, int fs_hz,
|