Home
last modified time | relevance | path

Searched refs:kNumAnalysisFrames (Results 1 – 3 of 3) sorted by relevance

/external/webrtc/modules/audio_processing/agc2/
Dspeech_probability_buffer_unittest.cc23 constexpr int kNumAnalysisFrames = 100; variable
44 for (int i = 0; i < kNumAnalysisFrames - 1; ++i) { in TEST()
118 for (int i = 0; i < kNumAnalysisFrames; ++i) { in TEST()
125 for (int i = 0; i < kActivityThreshold * kNumAnalysisFrames - 1; ++i) { in TEST()
141 for (int i = 0; i < kNumAnalysisFrames; ++i) { in TEST()
148 for (int i = 0; i < (1.0f - kActivityThreshold) * kNumAnalysisFrames - 1; in TEST()
164 for (int i = 0; i < kNumAnalysisFrames - 1; ++i) { in TEST()
179 for (int i = 0; i < kNumAnalysisFrames - 1; ++i) { in TEST()
193 for (int i = 0; i < kNumAnalysisFrames - 1; ++i) { in TEST()
211 for (int i = 0; i < kNumAnalysisFrames - 1; ++i) { in TEST()
[all …]
Dspeech_probability_buffer.cc21 constexpr int kNumAnalysisFrames = 100; variable
30 probabilities_(kNumAnalysisFrames) { in SpeechProbabilityBuffer()
62 if (++buffer_index_ >= kNumAnalysisFrames) { in Update()
75 (buffer_index_ > 0) ? (buffer_index_ - 1) : (kNumAnalysisFrames - 1); in RemoveTransient()
82 index = (index > 0) ? (index - 1) : (kNumAnalysisFrames - 1); in RemoveTransient()
90 if (sum_probabilities_ < kActivityThreshold * kNumAnalysisFrames) { in IsActiveSegment()
/external/webrtc/modules/audio_processing/agc/
Dagc.cc25 constexpr int kNumAnalysisFrames = 100; variable
35 histogram_(LoudnessHistogram::Create(kNumAnalysisFrames)), in Agc()
59 if (histogram_->num_updates() < kNumAnalysisFrames) { in GetRmsErrorDb()
64 if (histogram_->AudioContent() < kNumAnalysisFrames * kActivityThreshold) { in GetRmsErrorDb()