Home
last modified time | relevance | path

Searched refs:CheckedDivExact (Results 1 – 25 of 58) sorted by relevance

123

/external/webrtc/modules/audio_processing/agc2/
Dfixed_digital_level_estimator_unittest.cc38 num_channels, rtc::CheckedDivExact(sample_rate_hz, 100), in TestLevelEstimator()
67 num_channels, rtc::CheckedDivExact(sample_rate_hz, 100), input_level); in TimeMsToDecreaseLevel()
82 num_channels, rtc::CheckedDivExact(sample_rate_hz, 100), 0); in TimeMsToDecreaseLevel()
Dfixed_digital_level_estimator.cc101 samples_in_frame_ = rtc::CheckedDivExact(sample_rate_hz * kFrameDurationMs, in SetSampleRate()
104 rtc::CheckedDivExact(samples_in_frame_, kSubFramesInFrame); in SetSampleRate()
Dnoise_level_estimator_unittest.cc35 rtc::CheckedDivExact(rate, kFramesPerSecond); in RunEstimator()
Dsignal_classifier_unittest.cc35 const size_t samples_per_channel = rtc::CheckedDivExact(rate, 100); in RunClassifier()
Ddown_sampler.cc60 down_sampling_factor_ = rtc::CheckedDivExact(sample_rate_hz_, 8000); in Initialize()
/external/webrtc/modules/audio_coding/codecs/opus/
Dopus_unittest.cc97 const int samples_per_ms = rtc::CheckedDivExact(sample_rate_hz, 1000); in SamplesPerChannel()
184 rtc::CheckedDivExact(encoder_sample_rate_hz_, 1000); in PrepareSpeechData()
217 rtc::CheckedDivExact(input_audio.size(), channels_); in EncodeDecode()
251 rtc::CheckedDivExact(encoder_sample_rate_hz_, 1000) * block_length_ms; in TestDtxEffect()
253 rtc::CheckedDivExact(decoder_sample_rate_hz_, 1000) * block_length_ms; in TestDtxEffect()
420 rtc::CheckedDivExact(decoder_sample_rate_hz_, 1000) * block_length_ms; in TestCbrEffect()
855 rtc::CheckedDivExact(speech_block.size(), 2 * channels_), kMaxBytes, in TEST_P()
866 rtc::CheckedDivExact(speech_block.size(), channels_), in TEST_P()
918 rtc::CheckedDivExact(speech_block.size(), channels_), in TEST_P()
Daudio_encoder_opus_unittest.cc73 config.frame_size_ms = rtc::CheckedDivExact(kDefaultOpusPacSize, 48); in CreateCodec()
123 rtc::CheckedDivExact(encoder->SampleRateHz(), 1000); in Create10msAudioBlocks()
391 int packet_rate = rtc::CheckedDivExact(48000, kDefaultOpusPacSize); in TEST_P()
409 int packet_rate = rtc::CheckedDivExact(48000, kDefaultOpusPacSize); in TEST_P()
452 const size_t opus_rate_khz = rtc::CheckedDivExact(sample_rate_hz_, 1000); in TEST_P()
475 rtc::CheckedDivExact(silence.size(), config.num_channels), in TEST_P()
491 rtc::CheckedDivExact(silence.size(), config.num_channels), in TEST_P()
532 const size_t opus_rate_khz = rtc::CheckedDivExact(sample_rate_hz_, 1000); in TEST_P()
Daudio_encoder_multi_channel_opus_impl.cc298 return static_cast<size_t>(rtc::CheckedDivExact(config_.frame_size_ms, 10)); in Num10msFramesPerPacket()
301 return rtc::CheckedDivExact(48000, 100) * config_.num_channels; in SamplesPer10msFrame()
340 rtc::CheckedDivExact(input_buffer_.size(), config_.num_channels), in EncodeImpl()
/external/webrtc/modules/audio_processing/agc2/rnn_vad/
Dtest_utils.cc65 return {std::move(ptr), rtc::CheckedDivExact(ptr->data_length(), cols)}; in CreatePitchBuffer24kHzReader()
74 rtc::CheckedDivExact(ptr->data_length(), 2 + num_lp_residual_coeffs)}; in CreateLpResidualAndPitchPeriodGainReader()
Drnn_unittest.cc47 rtc::CheckedDivExact(input_sequence.size(), gru->input_size()); in TestGatedRecurrentLayer()
49 rtc::CheckedDivExact(expected_output_sequence.size(), gru->output_size()); in TestGatedRecurrentLayer()
/external/webrtc/modules/audio_processing/test/
Decho_canceller_test_tools_unittest.cc31 for (size_t k = 0; k < rtc::CheckedDivExact(v.size(), kBlockSize); ++k) { in TEST()
50 for (size_t k = 0; k < rtc::CheckedDivExact(v.size(), kBlockSize); ++k) { in TEST()
Daudio_processing_simulator.cc316 rtc::CheckedDivExact(input_sample_rate_hz, kChunksPerSecond), in SetupBuffersConfigsOutputs()
322 rtc::CheckedDivExact(reverse_input_sample_rate_hz, kChunksPerSecond), in SetupBuffersConfigsOutputs()
327 rtc::CheckedDivExact(output_sample_rate_hz, kChunksPerSecond), in SetupBuffersConfigsOutputs()
333 rtc::CheckedDivExact(reverse_output_sample_rate_hz, kChunksPerSecond), in SetupBuffersConfigsOutputs()
Dsimulator_buffers.cc60 int samples_per_channel = rtc::CheckedDivExact(sample_rate_hz, 100); in CreateConfigAndBuffer()
/external/webrtc/test/fuzzers/
Daudio_processing_fuzzer_helper.cc34 rtc::CheckedDivExact(input_rate, static_cast<size_t>(100)); in GenerateFloatFrame()
59 rtc::CheckedDivExact(input_rate, static_cast<size_t>(100)); in GenerateFixedFrame()
/external/webrtc/audio/
Dremix_resample_unittest.cc53 frame->samples_per_channel_ = rtc::CheckedDivExact(sample_rate_hz, 100); in SetMonoFrame()
74 frame->samples_per_channel_ = rtc::CheckedDivExact(sample_rate_hz, 100); in SetStereoFrame()
98 frame->samples_per_channel_ = rtc::CheckedDivExact(sample_rate_hz, 100); in SetQuadFrame()
/external/webrtc/modules/audio_coding/acm2/
Dacm_send_test.cc77 format.parameters["ptime"] = rtc::ToString(rtc::CheckedDivExact( in RegisterCodec()
78 frame_size_samples, rtc::CheckedDivExact(clockrate_hz, 1000))); in RegisterCodec()
/external/webrtc/modules/audio_coding/neteq/tools/
Dfake_decode_from_file.cc140 samples_to_decode % rtc::CheckedDivExact(SampleRateHz(), 100) != 0) { in PacketDuration()
147 return rtc::CheckedDivExact(SampleRateHz(), 100); in PacketDuration()
Dencode_neteq_input.cc75 const size_t num_samples = rtc::CheckedDivExact( in CreatePacket()
/external/webrtc/modules/audio_coding/codecs/isac/
Daudio_encoder_isac_t_impl.h70 return static_cast<size_t>(rtc::CheckedDivExact( in Num10MsFramesInNextPacket()
71 samples_in_next_packet, rtc::CheckedDivExact(SampleRateHz(), 100))); in Num10MsFramesInNextPacket()
/external/webrtc/modules/audio_coding/neteq/
Dnormal.h43 samples_per_ms_(rtc::CheckedDivExact(fs_hz_, 1000)), in Normal()
/external/webrtc/modules/audio_coding/codecs/pcm16b/
Daudio_decoder_pcm16b.cc53 const int samples_per_ms = rtc::CheckedDivExact(sample_rate_hz_, 1000); in ParsePayload()
/external/webrtc/modules/audio_processing/
Dlevel_estimator_unittest.cc30 int samples_per_channel = rtc::CheckedDivExact(sample_rate_hz, 100); in RunBitexactnessTest()
Dvoice_detection_unittest.cc44 int samples_per_channel = rtc::CheckedDivExact(sample_rate_hz, 100); in RunBitexactnessTest()
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Dapm_vad.cc48 const size_t audio_frame_len = rtc::CheckedDivExact( in main()
Dvad.cc50 const size_t audio_frame_length = rtc::CheckedDivExact( in main()

123