/external/webrtc/webrtc/modules/audio_coding/neteq/ |
statistics_calculator.h | 40 // Reports that |num_samples| samples were produced through expansion, and 42 void ExpandedVoiceSamples(size_t num_samples); 44 // Reports that |num_samples| samples were produced through expansion, and 46 void ExpandedNoiseSamples(size_t num_samples); 48 // Reports that |num_samples| samples were produced through preemptive 50 void PreemptiveExpandedSamples(size_t num_samples); 52 // Reports that |num_samples| samples were removed through accelerate. 53 void AcceleratedSamples(size_t num_samples); 55 // Reports that |num_samples| zeros were inserted into the output. 56 void AddZeros(size_t num_samples); [all...] |
statistics_calculator.cc | 143 void StatisticsCalculator::ExpandedVoiceSamples(size_t num_samples) { 144 expanded_speech_samples_ += num_samples; 147 void StatisticsCalculator::ExpandedNoiseSamples(size_t num_samples) { 148 expanded_noise_samples_ += num_samples; 151 void StatisticsCalculator::PreemptiveExpandedSamples(size_t num_samples) { 152 preemptive_samples_ += num_samples; 155 void StatisticsCalculator::AcceleratedSamples(size_t num_samples) { 156 accelerate_samples_ += num_samples; 159 void StatisticsCalculator::AddZeros(size_t num_samples) { 160 added_zero_samples_ += num_samples; [all...] |
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/ |
audio_sink.h | 28 // Writes |num_samples| from |audio| to the AudioSink. Returns true if 30 virtual bool WriteArray(const int16_t* audio, size_t num_samples) = 0; 50 bool WriteArray(const int16_t* audio, size_t num_samples) override { 51 return left_sink_->WriteArray(audio, num_samples) && 52 right_sink_->WriteArray(audio, num_samples);
|
output_audio_file.h | 37 bool WriteArray(const int16_t* audio, size_t num_samples) override { 39 return fwrite(audio, sizeof(*audio), num_samples, out_file_) == num_samples;
|
audio_checksum.h | 29 bool WriteArray(const int16_t* audio, size_t num_samples) override { 36 checksum_.Update(audio, num_samples * sizeof(*audio));
|
output_wav_file.h | 30 bool WriteArray(const int16_t* audio, size_t num_samples) override { 31 wav_writer_.WriteSamples(audio, num_samples);
|
/external/webrtc/webrtc/modules/video_coding/utility/ |
moving_average.h | 24 bool GetAverage(size_t num_samples, T* average); 44 bool MovingAverage<T>::GetAverage(size_t num_samples, T* avg) { 45 if (num_samples > samples_.size()) 49 while (num_samples < samples_.size()) { 54 *avg = sum_ / static_cast<T>(num_samples);
|
/external/webrtc/webrtc/common_audio/ |
wav_file.cc | 45 << (1.f * num_samples()) / (num_channels() * sample_rate()) << " s"; 67 size_t WavReader::ReadSamples(size_t num_samples, int16_t* samples) { 72 num_samples = std::min(num_samples, num_samples_remaining_); 74 fread(samples, sizeof(*samples), num_samples, file_handle_); 76 RTC_CHECK(read == num_samples || feof(file_handle_)); 82 size_t WavReader::ReadSamples(size_t num_samples, float* samples) { 85 for (size_t i = 0; i < num_samples; i += kChunksize) { 87 size_t chunk = std::min(kChunksize, num_samples - i); 121 void WavWriter::WriteSamples(const int16_t* samples, size_t num_samples) { [all...] |
wav_file.h | 31 virtual size_t num_samples() const = 0; 50 void WriteSamples(const float* samples, size_t num_samples); 51 void WriteSamples(const int16_t* samples, size_t num_samples); 55 size_t num_samples() const override { return num_samples_; } 78 size_t ReadSamples(size_t num_samples, float* samples); 79 size_t ReadSamples(size_t num_samples, int16_t* samples); 83 size_t num_samples() const override { return num_samples_; } 109 size_t num_samples);
|
wav_header.h | 39 size_t num_samples); 50 size_t num_samples); 60 size_t* num_samples);
|
wav_header.cc | 66 size_t num_samples) { 104 if (num_samples > max_samples) 108 if (num_samples % num_channels != 0) 153 size_t num_samples) { 155 bytes_per_sample, num_samples)); 158 const size_t bytes_in_payload = bytes_per_sample * num_samples; 188 size_t* num_samples) { 217 *num_samples = bytes_in_payload / *bytes_per_sample; 239 *bytes_per_sample, *num_samples);
|
wav_header_unittest.cc | 98 size_t num_samples = 0; local 123 &bytes_per_sample, &num_samples)); 144 &bytes_per_sample, &num_samples)); 165 &bytes_per_sample, &num_samples)); 187 &bytes_per_sample, &num_samples)); 210 &bytes_per_sample, &num_samples)); 229 &bytes_per_sample, &num_samples)); 241 &bytes_per_sample, &num_samples)); 275 size_t num_samples = 0; local 279 &bytes_per_sample, &num_samples)); 311 size_t num_samples = 0; local [all...] |
/external/opencv3/modules/ml/src/ |
testset.cpp | 59 void createConcentricSpheresTestSet( int num_samples, int num_features, int num_classes, 62 if( num_samples < 1 ) 63 CV_Error( CV_StsBadArg, "num_samples parameter must be positive" ); 73 _samples.create( num_samples, num_features, CV_32F ); 74 _responses.create( 1, num_samples, CV_32S ); 82 randMVNormal( mean, cov, num_samples, _samples ); 99 num_classes = std::min( num_samples, num_classes ); 100 for( i = 0, cur_class = 0; i < num_samples; ++cur_class ) 102 int last_idx = num_samples * (cur_class + 1) / num_classes - 1; 106 for( ; i < num_samples && dis[i].d <= max_dst; ++i [all...] |
/development/ndk/sources/android/ndk_helper/ |
perfMonitor.cpp | 28 for( int32_t i = 0; i < NUM_SAMPLES; ++i ) 41 tickindex_ = (tickindex_ + 1) % NUM_SAMPLES; 43 return ((double) ticksum_ / NUM_SAMPLES);
|
perfMonitor.h | 28 const int32_t NUM_SAMPLES = 100; 42 double ticklist_[NUM_SAMPLES];
|
/system/extras/memtrack/ |
memtrack.h | 55 size_t num_samples; member in struct:__anon74858 117 size_t num_samples) { 118 *running_avg = (*running_avg/(num_samples+1))*num_samples 119 + (double)cur_avg/(num_samples+1);
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
gen6_multisample_state.c | 35 unsigned num_samples) 43 switch (num_samples) { 98 assert(!"Unrecognized num_samples in gen6_emit_3dstate_multisample"); 118 unsigned num_samples, float coverage, 125 if (num_samples > 1) { 126 int coverage_int = (int) (num_samples * coverage + 0.5); 129 coverage_bits ^= (1 << num_samples) - 1; 146 unsigned num_samples = ctx->DrawBuffer->Visual.samples; local 157 gen6_emit_3dstate_multisample(brw, num_samples); 158 gen6_emit_3dstate_sample_mask(brw, num_samples, coverage, coverage_invert) [all...] |
/external/opencv/ml/src/ |
mltestset.cpp | 60 int num_samples, 87 if( num_samples < 1 ) 88 CV_ERROR( CV_StsBadArg, "num_samples parameter must be positive" ); 105 CV_CALL( *samples = cvCreateMat( num_samples, num_features, CV_32FC1 ) ); 106 CV_CALL( *responses = cvCreateMat( 1, num_samples, CV_32SC1 ) ); 133 num_classes = MIN( num_samples, num_classes ); 136 for( i = 0, cur_class = 0; i < num_samples; ++cur_class ) 141 last_idx = num_samples * (cur_class + 1) / num_classes - 1; 145 for( ; elem.d <= max_dst && i < num_samples; ++i ) 148 if( i < num_samples - 1 [all...] |
/external/webrtc/webrtc/common_audio/vad/ |
vad.cc | 29 size_t num_samples, 31 int ret = WebRtcVad_Process(handle_, sample_rate_hz, audio, num_samples);
|
/external/webrtc/webrtc/modules/utility/source/ |
file_player_unittests.cc | 64 size_t num_samples; local 66 player_->Get10msAudioFromFile(out, num_samples, kSampleRateHz)); 67 checksum.Update(out, num_samples * sizeof(out[0])); 69 ASSERT_EQ(num_samples, 70 fwrite(out, sizeof(out[0]), num_samples, output_file_));
|
/external/webrtc/webrtc/modules/audio_processing/logging/ |
aec_logging.h | 21 #define RTC_AEC_DEBUG_WAV_WRITE(file, data, num_samples) \ 23 rtc_WavWriteSamples(file, data, num_samples); \ 73 #define RTC_AEC_DEBUG_WAV_WRITE(file, data, num_samples) \
|
/external/webrtc/webrtc/common_audio/vad/mock/ |
mock_vad.h | 27 size_t num_samples,
|
/external/webrtc/webrtc/modules/audio_coding/neteq/mock/ |
mock_dtmf_tone_generator.h | 29 int(size_t num_samples, AudioMultiVector* output));
|
/external/webrtc/webrtc/video/ |
send_statistics_proxy.h | 101 SampleCounter() : sum(0), num_samples(0) {} 108 int num_samples; member in class:webrtc::SendStatisticsProxy::SampleCounter 112 BoolSampleCounter() : sum(0), num_samples(0) {} 121 int num_samples; member in class:webrtc::SendStatisticsProxy::BoolSampleCounter
|
send_statistics_proxy.cc | 404 ++num_samples; 408 if (num_samples < min_required_samples || num_samples == 0) 410 return (sum + (num_samples / 2)) / num_samples; 416 ++num_samples; 431 if (num_samples < min_required_samples || num_samples == 0) 433 return static_cast<int>((sum * multiplier / num_samples) + 0.5f);
|