Searched refs:kFrameLengths (Results 1 – 4 of 4) sorted by relevance
/external/webrtc/webrtc/common_audio/vad/ |
D | vad_core_unittest.cc | 69 if (ValidRatesAndFrameLengths(8000, kFrameLengths[j])) { in TEST_F() 70 EXPECT_EQ(0, WebRtcVad_CalcVad8khz(self, speech, kFrameLengths[j])); in TEST_F() 72 if (ValidRatesAndFrameLengths(16000, kFrameLengths[j])) { in TEST_F() 73 EXPECT_EQ(0, WebRtcVad_CalcVad16khz(self, speech, kFrameLengths[j])); in TEST_F() 75 if (ValidRatesAndFrameLengths(32000, kFrameLengths[j])) { in TEST_F() 76 EXPECT_EQ(0, WebRtcVad_CalcVad32khz(self, speech, kFrameLengths[j])); in TEST_F() 78 if (ValidRatesAndFrameLengths(48000, kFrameLengths[j])) { in TEST_F() 79 EXPECT_EQ(0, WebRtcVad_CalcVad48khz(self, speech, kFrameLengths[j])); in TEST_F() 89 if (ValidRatesAndFrameLengths(8000, kFrameLengths[j])) { in TEST_F() 90 EXPECT_EQ(1, WebRtcVad_CalcVad8khz(self, speech, kFrameLengths[j])); in TEST_F() [all …]
|
D | vad_unittest.cc | 76 WebRtcVad_Process(nullptr, kRates[0], speech, kFrameLengths[0])); in TEST_F() 82 EXPECT_EQ(-1, WebRtcVad_Process(handle, kRates[0], speech, kFrameLengths[0])); in TEST_F() 100 WebRtcVad_Process(handle, kRates[0], nullptr, kFrameLengths[0])); in TEST_F() 102 EXPECT_EQ(-1, WebRtcVad_Process(handle, 9999, speech, kFrameLengths[0])); in TEST_F() 104 EXPECT_EQ(0, WebRtcVad_Process(handle, kRates[0], zeros, kFrameLengths[0])); in TEST_F() 111 if (ValidRatesAndFrameLengths(kRates[i], kFrameLengths[j])) { in TEST_F() 115 kFrameLengths[j])); in TEST_F() 120 kFrameLengths[j])); in TEST_F() 137 const size_t kFrameLengths[] = { in TEST_F() local 142 for (size_t j = 0; j < arraysize(kFrameLengths); j++) { in TEST_F() [all …]
|
D | vad_filterbank_unittest.cc | 48 if (ValidRatesAndFrameLengths(8000, kFrameLengths[j])) { in TEST_F() 50 WebRtcVad_CalculateFeatures(self, speech, kFrameLengths[j], in TEST_F() 65 if (ValidRatesAndFrameLengths(8000, kFrameLengths[j])) { in TEST_F() 66 EXPECT_EQ(0, WebRtcVad_CalculateFeatures(self, speech, kFrameLengths[j], in TEST_F() 80 if (ValidRatesAndFrameLengths(8000, kFrameLengths[j])) { in TEST_F() 82 EXPECT_EQ(0, WebRtcVad_CalculateFeatures(self, speech, kFrameLengths[j], in TEST_F()
|
D | vad_unittest.h | 32 const size_t kFrameLengths[] = { 80, 120, 160, 240, 320, 480, 640, 960, variable 34 const size_t kFrameLengthsSize = sizeof(kFrameLengths) / sizeof(*kFrameLengths);
|