/external/webrtc/webrtc/common_audio/ |
D | audio_util_unittest.cc | 110 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 …]
|
D | audio_ring_buffer_unittest.cc | 93 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()
|
D | wav_file_unittest.cc | 139 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/ |
D | time_stretch_unittest.cc | 29 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/ |
D | vad_filterbank_unittest.cc | 29 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()
|
D | vad_core.c | 20 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 …]
|
D | vad_core.h | 22 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];
|
D | vad_sp_unittest.cc | 64 for (int j = 0; j < kNumChannels; ++j) { in TEST_F()
|
D | vad_sp.c | 75 assert(channel < kNumChannels); in WebRtcVad_FindMinimum()
|
D | vad_filterbank.c | 265 assert(4 < kNumChannels - 1); // Checking maximum |frequency_band|. in WebRtcVad_CalculateFeatures()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | scale_and_translate_op_test.cc | 278 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/ |
D | resampler_unittest.cc | 20 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/ |
D | intelligibility_proc.cc | 71 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/ |
D | noise_reduction_test.cc | 22 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()
|
D | pcan_gain_control_test.cc | 22 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/ |
D | noise_reduction_test.cc | 22 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()
|
D | pcan_gain_control_test.cc | 22 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/ |
D | audio_common.h | 17 const int kNumChannels = 1; variable 20 const size_t kBytesPerFrame = kNumChannels * (16 / 8);
|
D | opensles_common.cc | 17 using webrtc::kNumChannels; 24 configuration.numChannels = kNumChannels; in CreatePcmConfiguration()
|
/external/grpc-grpc/test/cpp/end2end/ |
D | channelz_service_test.cc | 284 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/ |
D | mix_unittest.cc | 18 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/ |
D | voice_activity_detector.cc | 21 const size_t kNumChannels = 1; variable 46 resampler_.ResetIfNeeded(sample_rate_hz, kSampleRateHz, kNumChannels), in ProcessChunk()
|
/external/webrtc/webrtc/modules/audio_processing/intelligibility/ |
D | intelligibility_enhancer_unittest.cc | 79 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/ |
D | transient_suppressor_unittest.cc | 19 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/ |
D | agc_manager_direct_unittest.cc | 33 const int kNumChannels = 1; variable 90 manager_.AnalyzePreProcess(nullptr, kNumChannels, kSamplesPerChannel); in CallPreProc()
|