Home
last modified time | relevance | path

Searched refs:kNumChannels (Results 1 – 19 of 19) sorted by relevance

/external/webrtc/webrtc/common_audio/
Daudio_util_unittest.cc110 const int kNumChannels = 2; in TEST() local
111 const size_t kLength = kSamplesPerChannel * kNumChannels; in TEST()
114 Deinterleave(kInterleaved, kSamplesPerChannel, kNumChannels, deinterleaved); in TEST()
121 Interleave(deinterleaved, kSamplesPerChannel, kNumChannels, interleaved); in TEST()
128 const int kNumChannels = 1; in TEST() local
131 Deinterleave(kInterleaved, kSamplesPerChannel, kNumChannels, deinterleaved); in TEST()
135 Interleave(deinterleaved, kSamplesPerChannel, kNumChannels, interleaved); in TEST()
142 const int kNumChannels = 1; in TEST() local
143 const int16_t interleaved[kNumChannels * kNumFrames] = {1, 2, -1, -3}; in TEST()
146 DownmixInterleavedToMono(interleaved, kNumFrames, kNumChannels, in TEST()
[all …]
Daudio_ring_buffer_unittest.cc93 const size_t kNumChannels = 1; in TEST_F() local
96 ChannelBuffer<float> input(kNumFrames, kNumChannels); in TEST_F()
98 AudioRingBuffer buf(kNumChannels, kNumFrames); in TEST_F()
99 buf.Write(input.channels(), kNumChannels, kNumFrames); in TEST_F()
102 ChannelBuffer<float> output(1, kNumChannels); in TEST_F()
103 buf.Read(output.channels(), kNumChannels, 1); in TEST_F()
106 buf.Read(output.channels(), kNumChannels, 1); in TEST_F()
Dwav_file_unittest.cc139 static const size_t kNumChannels = 2; in TEST() local
140 static const size_t kNumSamples = 3 * kSampleRate * kNumChannels; in TEST()
142 for (size_t i = 0; i < kNumSamples; i += kNumChannels) { in TEST()
145 const double t = static_cast<double>(i) / (kNumChannels * kSampleRate); in TEST()
152 WavWriter w(outfile, kSampleRate, kNumChannels); in TEST()
154 EXPECT_EQ(kNumChannels, w.num_channels()); in TEST()
165 EXPECT_EQ(kNumChannels, r.num_channels()); in TEST()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dtime_stretch_unittest.cc29 const size_t kNumChannels = 1; variable
35 BackgroundNoise bgn(kNumChannels); in TEST()
36 Accelerate accelerate(kSampleRate, kNumChannels, bgn); in TEST()
38 kSampleRate, kNumChannels, bgn, kOverlapSamples); in TEST()
44 BackgroundNoise bgn(kNumChannels); in TEST()
48 accelerate_factory.Create(kSampleRate, kNumChannels, bgn); in TEST()
54 kSampleRate, kNumChannels, bgn, kOverlapSamples); in TEST()
67 background_noise_(kNumChannels) { in TimeStretchTest()
79 Accelerate accelerate(sample_rate_hz_, kNumChannels, background_noise_); in TestAccelerate()
82 AudioMultiVector output(kNumChannels); in TestAccelerate()
/external/webrtc/webrtc/common_audio/vad/
Dvad_filterbank_unittest.cc29 static const int16_t kFeatures[kNumValidFrameLengths * kNumChannels] = { in TEST_F()
34 static const int16_t kOffsetVector[kNumChannels] = { in TEST_F()
36 int16_t features[kNumChannels]; in TEST_F()
52 for (int k = 0; k < kNumChannels; ++k) { in TEST_F()
53 EXPECT_EQ(kFeatures[k + frame_length_index * kNumChannels], in TEST_F()
68 for (int k = 0; k < kNumChannels; ++k) { in TEST_F()
84 for (int k = 0; k < kNumChannels; ++k) { in TEST_F()
Dvad_core.c20 static const int16_t kSpectrumWeight[kNumChannels] = { 6, 8, 10, 12, 14, 16 };
25 static const int16_t kMinimumDifference[kNumChannels] = {
28 static const int16_t kMaximumSpeech[kNumChannels] = {
33 static const int16_t kMaximumNoise[kNumChannels] = {
107 data[k * kNumChannels] += offset; in WeightedAverage()
108 weighted_average += data[k * kNumChannels] * weights[k * kNumChannels]; in WeightedAverage()
178 for (channel = 0; channel < kNumChannels; channel++) { in GmmProbability()
185 gaussian = channel + k * kNumChannels; in GmmProbability()
247 ngprvec[channel + kNumChannels] = 16384 - ngprvec[channel]; in GmmProbability()
261 sgprvec[channel + kNumChannels] = 16384 - sgprvec[channel]; in GmmProbability()
[all …]
Dvad_core.h22 enum { kNumChannels = 6 }; // Number of frequency bands (named channels). enumerator
24 enum { kTableSize = kNumChannels * kNumGaussians };
42 int16_t index_vector[16 * kNumChannels];
43 int16_t low_value_vector[16 * kNumChannels];
45 int16_t mean_value[kNumChannels];
Dvad_sp_unittest.cc64 for (int j = 0; j < kNumChannels; ++j) { in TEST_F()
Dvad_sp.c75 assert(channel < kNumChannels); in WebRtcVad_FindMinimum()
Dvad_filterbank.c265 assert(4 < kNumChannels - 1); // Checking maximum |frequency_band|. in WebRtcVad_CalculateFeatures()
/external/webrtc/webrtc/common_audio/resampler/
Dresampler_unittest.cc20 const int kNumChannels[] = {1, 2}; variable
21 const size_t kNumChannelsSize = sizeof(kNumChannels) / sizeof(*kNumChannels);
79 << ", channels: " << kNumChannels[k]; in TEST_F()
82 EXPECT_EQ(0, rs_.Reset(kRates[i], kRates[j], kNumChannels[k])); in TEST_F()
84 EXPECT_EQ(-1, rs_.Reset(kRates[i], kRates[j], kNumChannels[k])); in TEST_F()
/external/webrtc/webrtc/modules/audio_processing/intelligibility/test/
Dintelligibility_proc.cc71 const size_t kNumChannels = 1; variable
125 enh.AnalyzeCaptureAudio(&noise_cursor, FLAGS_sample_rate, kNumChannels); in void_main()
126 enh.ProcessRenderAudio(&clear_cursor, FLAGS_sample_rate, kNumChannels); in void_main()
135 WavWriter out_file(temp_out_filename, FLAGS_sample_rate, kNumChannels); in void_main()
141 WavWriter out_file(FLAGS_out_file, FLAGS_sample_rate, kNumChannels); in void_main()
/external/webrtc/webrtc/modules/audio_device/android/
Daudio_common.h17 const int kNumChannels = 1; variable
20 const size_t kBytesPerFrame = kNumChannels * (16 / 8);
Dopensles_common.cc17 using webrtc::kNumChannels;
24 configuration.numChannels = kNumChannels; in CreatePcmConfiguration()
/external/webrtc/webrtc/modules/audio_processing/vad/
Dvoice_activity_detector.cc21 const size_t kNumChannels = 1; variable
46 resampler_.ResetIfNeeded(sample_rate_hz, kSampleRateHz, kNumChannels), in ProcessChunk()
/external/webrtc/webrtc/modules/audio_processing/transient/
Dtransient_suppressor_unittest.cc19 static const int kNumChannels = 1; in TEST() local
22 ts.Initialize(ts::kSampleRate16kHz, ts::kSampleRate16kHz, kNumChannels); in TEST()
/external/webrtc/webrtc/modules/audio_processing/intelligibility/
Dintelligibility_enhancer_unittest.cc79 const int kNumChannels = 1; variable
102 enh_->AnalyzeCaptureAudio(&noise_cursor, kSampleRate, kNumChannels); in CheckUpdate()
103 enh_->ProcessRenderAudio(&clear_cursor, kSampleRate, kNumChannels); in CheckUpdate()
/external/webrtc/webrtc/modules/audio_processing/agc/
Dagc_manager_direct_unittest.cc33 const int kNumChannels = 1; variable
90 manager_.AnalyzePreProcess(nullptr, kNumChannels, kSamplesPerChannel); in CallPreProc()
/external/webrtc/webrtc/modules/audio_processing/test/
Daudio_processing_unittest.cc2363 const size_t kNumChannels[] = {1, 2}; in SetUpTestCase() local
2365 for (size_t j = 0; j < arraysize(kNumChannels); ++j) { in SetUpTestCase()
2366 for (size_t k = 0; k < arraysize(kNumChannels); ++k) { in SetUpTestCase()
2369 kNativeRates[i], kNumChannels[j], kNumChannels[j], in SetUpTestCase()
2370 kNumChannels[k], kNumChannels[k], "ref"); in SetUpTestCase()