Home
last modified time | relevance | path

Searched refs:kMaxNumFrames (Results 1 – 5 of 5) sorted by relevance

/external/webrtc/modules/audio_processing/vad/
Dcommon.h18 static const size_t kMaxNumFrames = 4; variable
21 double log_pitch_gain[kMaxNumFrames];
22 double pitch_lag_hz[kMaxNumFrames];
23 double spectral_peak[kMaxNumFrames];
24 double rms[kMaxNumFrames];
Dstandalone_vad_unittest.cc29 const size_t kMaxNumFrames = 3; in TEST() local
30 double p[kMaxNumFrames]; in TEST()
31 for (size_t n = 0; n < kMaxNumFrames; n++) in TEST()
35 EXPECT_EQ(-1, vad->GetActivity(p, kMaxNumFrames - 1)); in TEST()
37 EXPECT_EQ(0, vad->GetActivity(p, kMaxNumFrames)); in TEST()
40 EXPECT_EQ(-1, vad->GetActivity(p, kMaxNumFrames)); in TEST()
43 for (size_t n = 0; n < kMaxNumFrames + 1; n++) in TEST()
Dvad_audio_proc_unittest.cc45 double sp[kMaxNumFrames]; in TEST()
49 ASSERT_LT(features.num_frames, kMaxNumFrames); in TEST()
Dvad_audio_proc.cc102 Rms(features->rms, kMaxNumFrames); in ExtractFeatures()
114 kMaxNumFrames); in ExtractFeatures()
115 FindFirstSpectralPeaks(features->spectral_peak, kMaxNumFrames); in ExtractFeatures()
/external/webrtc/modules/audio_processing/agc2/
Ddown_sampler.cc78 const size_t kMaxNumFrames = kSampleRate48kHz * kChunkSizeMs / 1000; in DownSample() local
79 float x[kMaxNumFrames]; in DownSample()
88 RTC_DCHECK_GT(kMaxNumFrames, k); in DownSample()