Home
last modified time | relevance | path

Searched refs:fs_hz (Results 1 – 22 of 22) sorted by relevance

/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddecision_logic.cc26 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()
Ddecision_logic_unittest.cc24 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()
Ddtmf_tone_generator_unittest.cc31 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()
Ddtmf_buffer.cc26 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()
Ddecoder_database.cc50 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()
Dpost_decode_vad.cc51 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()
Dstatistics_calculator.cc171 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()
Ddecoder_database.h50 fs_hz(fs), in DecoderInfo()
58 int fs_hz = 8000; member
96 int fs_hz,
Ddecision_logic.h36 static DecisionLogic* Create(int fs_hz,
45 DecisionLogic(int fs_hz,
63 void SetSampleRate(int fs_hz, size_t output_size_samples);
Dneteq_impl.cc694 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 …]
Ddecision_logic_fax.h25 DecisionLogicFax(int fs_hz, in DecisionLogicFax() argument
32 : DecisionLogic(fs_hz, output_size_samples, playout_mode, in DecisionLogicFax()
Dnormal.h35 Normal(int fs_hz, DecoderDatabase* decoder_database, in Normal() argument
38 : fs_hz_(fs_hz), in Normal()
Dcomfort_noise.h35 ComfortNoise(int fs_hz, DecoderDatabase* decoder_database, in ComfortNoise() argument
37 : fs_hz_(fs_hz), in ComfortNoise()
Ddecision_logic_normal.h25 DecisionLogicNormal(int fs_hz, in DecisionLogicNormal() argument
32 : DecisionLogic(fs_hz, output_size_samples, playout_mode, in DecisionLogicNormal()
Ddtmf_buffer.h58 explicit DtmfBuffer(int fs_hz);
88 virtual int SetSampleRate(int fs_hz);
Dstatistics_calculator.h67 void IncreaseCounter(size_t num_samples, int fs_hz);
84 void GetNetworkStatistics(int fs_hz,
Dpost_decode_vad.h50 AudioDecoder::SpeechType speech_type, bool sid_frame, int fs_hz);
Dmerge.h36 Merge(int fs_hz,
Ddecoder_database_unittest.cc57 EXPECT_EQ(8000, info->fs_hz); in TEST()
143 EXPECT_EQ(8000, info->fs_hz); in TEST()
Dneteq_impl.h327 void SetSampleRateAndChannels(int fs_hz, size_t channels)
335 virtual void UpdatePlcComponents(int fs_hz, size_t channels)
Dmerge.cc27 Merge::Merge(int fs_hz, in Merge() argument
31 : fs_hz_(fs_hz), in Merge()
/external/webrtc/webrtc/modules/audio_coding/neteq/mock/
Dmock_decoder_database.h37 const std::string& codec_name, int fs_hz,