Home
last modified time | relevance | path

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

12

/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/tensorflow/tensorflow/core/kernels/
Dscale_and_translate_op_test.cc278 constexpr int64 kNumChannels = 3; in TEST_F() local
280 kSquareSize, kNumChannels); in TEST_F()
294 constexpr int64 kNumChannels = 3; in TEST_F() local
296 kSquareSize, kNumChannels); in TEST_F()
310 constexpr int64 kNumChannels = 3; in TEST_F() local
312 kSquareSize, kNumChannels); in TEST_F()
326 constexpr int64 kNumChannels = 3; in TEST_F() local
328 kSquareSize, kNumChannels); in TEST_F()
343 constexpr int64 kNumChannels = 3; in TEST_F() local
345 kSquareSize, kNumChannels); in TEST_F()
[all …]
/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/tensorflow/tensorflow/lite/experimental/microfrontend/lib/
Dnoise_reduction_test.cc22 const int kNumChannels = 2; variable
45 NoiseReductionPopulateState(&config.config_, &state, kNumChannels)); in TF_LITE_MICRO_TEST()
65 NoiseReductionPopulateState(&config.config_, &state, kNumChannels)); in TF_LITE_MICRO_TEST()
Dpcan_gain_control_test.cc22 const int kNumChannels = 2; variable
48 &config.config_, &state, estimate, kNumChannels, kSmoothingBits, in TF_LITE_MICRO_TEST()
/external/tensorflow/tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/
Dnoise_reduction_test.cc22 const int kNumChannels = 2; variable
48 error_reporter, &config.config_, &state, kNumChannels)); in TF_LITE_MICRO_TEST()
69 error_reporter, &config.config_, &state, kNumChannels)); in TF_LITE_MICRO_TEST()
Dpcan_gain_control_test.cc22 const int kNumChannels = 2; variable
51 error_reporter, &config.config_, &state, estimate, kNumChannels, in TF_LITE_MICRO_TEST()
/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/grpc-grpc/test/cpp/end2end/
Dchannelz_service_test.cc284 const int kNumChannels = 4; in TEST_F() local
285 ConfigureProxy(kNumChannels); in TEST_F()
292 EXPECT_EQ(response.channel_size(), kNumChannels); in TEST_F()
297 const int kNumChannels = 4; in TEST_F() local
298 ConfigureProxy(kNumChannels); in TEST_F()
366 const int kNumChannels = 4; in TEST_F() local
367 ConfigureProxy(kNumChannels); in TEST_F()
385 EXPECT_EQ(gtc_response.channel_size(), kNumChannels); in TEST_F()
/external/adhd/cras/src/tests/
Dmix_unittest.cc18 static const size_t kNumChannels = 2; variable
19 static const size_t kNumSamples = kBufferFrames * kNumChannels;
288 fr_bytes_ = 4 * kNumChannels; in SetUp()
546 fr_bytes_ = 4 * kNumChannels; in SetUp()
804 fr_bytes_ = 3 * kNumChannels; in SetUp()
809 for (size_t i = 0; i < kBufferFrames * kNumChannels; i++) { in SetUp()
842 for (size_t i = 0; i < kBufferFrames * kNumChannels; i += 2) { in TestScaleStride()
869 for (size_t i = 0; i < kBufferFrames * kNumChannels; i++) { in ScaleIncrement()
906 for (size_t i = 0; i < kBufferFrames * kNumChannels; i++) { in TEST_F()
918 for (size_t i = 0; i < kBufferFrames * kNumChannels; i++) { in TEST_F()
[all …]
/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/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/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/agc/
Dagc_manager_direct_unittest.cc33 const int kNumChannels = 1; variable
90 manager_.AnalyzePreProcess(nullptr, kNumChannels, kSamplesPerChannel); in CallPreProc()

12