/external/chromium_org/third_party/webrtc/common_audio/resampler/ |
D | push_sinc_resampler_unittest.cc | 56 const int output_samples = output_rate_ / 100; in ResampleBenchmarkTest() local 62 scoped_ptr<float[]> resampled_destination(new float[output_samples]); in ResampleBenchmarkTest() 65 scoped_ptr<int16_t[]> destination_int(new int16_t[output_samples]); in ResampleBenchmarkTest() 79 sinc_resampler.Resample(output_samples, resampled_destination.get()); in ResampleBenchmarkTest() 85 PushSincResampler resampler(input_samples, output_samples); in ResampleBenchmarkTest() 89 EXPECT_EQ(output_samples, in ResampleBenchmarkTest() 93 output_samples)); in ResampleBenchmarkTest() 97 EXPECT_EQ(output_samples, in ResampleBenchmarkTest() 101 output_samples)); in ResampleBenchmarkTest() 129 const int output_samples = kTestDurationSecs * output_rate_; in ResampleTest() local [all …]
|
D | sinc_resampler_unittest.cc | 254 const int output_samples = kTestDurationSecs * output_rate_; in TEST_P() local 281 scoped_ptr<float[]> resampled_destination(new float[output_samples]); in TEST_P() 282 scoped_ptr<float[]> pure_destination(new float[output_samples]); in TEST_P() 285 resampler.Resample(output_samples, resampled_destination.get()); in TEST_P() 289 output_rate_, output_samples, input_nyquist_freq, 0); in TEST_P() 290 pure_source.Run(output_samples, pure_destination.get()); in TEST_P() 304 for (int i = 0; i < output_samples; ++i) { in TEST_P() 319 double rms_error = sqrt(sum_of_squares / output_samples); in TEST_P()
|
/external/chromium_org/third_party/opus/src/src/ |
D | opus_demo.c | 769 int output_samples; in main() local 772 opus_decoder_ctl(dec, OPUS_GET_LAST_PACKET_DURATION(&output_samples)); in main() 774 output_samples = max_frame_size; in main() 780 opus_decoder_ctl(dec, OPUS_GET_LAST_PACKET_DURATION(&output_samples)); in main() 781 …output_samples = opus_decode(dec, lost ? NULL : data[toggle], len[toggle], out, output_samples, 1); in main() 784 output_samples = max_frame_size; in main() 785 … output_samples = opus_decode(dec, data[1-toggle], len[1-toggle], out, output_samples, 0); in main() 788 …output_samples = opus_decode(dec, lost ? NULL : data[toggle], len[toggle], out, output_samples, 0); in main() 790 if (output_samples>0) in main() 792 if (!decode_only && tot_out + output_samples > tot_in) in main() [all …]
|
/external/libopus/src/ |
D | opus_demo.c | 769 int output_samples; in main() local 772 opus_decoder_ctl(dec, OPUS_GET_LAST_PACKET_DURATION(&output_samples)); in main() 774 output_samples = max_frame_size; in main() 780 opus_decoder_ctl(dec, OPUS_GET_LAST_PACKET_DURATION(&output_samples)); in main() 781 …output_samples = opus_decode(dec, lost ? NULL : data[toggle], len[toggle], out, output_samples, 1); in main() 784 output_samples = max_frame_size; in main() 785 … output_samples = opus_decode(dec, data[1-toggle], len[1-toggle], out, output_samples, 0); in main() 788 …output_samples = opus_decode(dec, lost ? NULL : data[toggle], len[toggle], out, output_samples, 0); in main() 790 if (output_samples>0) in main() 792 if (!decode_only && tot_out + output_samples > tot_in) in main() [all …]
|
/external/chromium_org/media/audio/cras/ |
D | cras_unified.cc | 293 uint8* output_samples, in UnifiedCallback() argument 301 output_samples, in UnifiedCallback() 319 uint8* output_samples, in DispatchCallback() argument 324 return WriteAudio(frames, output_samples, output_ts); in DispatchCallback() 329 return ReadWriteAudio(frames, input_samples, output_samples, in DispatchCallback() 341 uint8* output_samples, in ReadWriteAudio() argument 364 output_bus_->ToInterleaved(frames_filled, bytes_per_sample, output_samples); in ReadWriteAudio()
|
D | cras_unified.h | 54 uint8* output_samples, 69 uint8* output_samples, 76 uint8* output_samples,
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/opus/ |
D | opus_interface.c | 277 int16_t output_samples; in WebRtcOpus_Resample48to32() local 294 output_samples = (int16_t) (blocks * 2); in WebRtcOpus_Resample48to32() 295 WebRtcSpl_VectorBitShiftW32ToW16(samples_out, output_samples, buffer32, 15); in WebRtcOpus_Resample48to32() 297 return output_samples; in WebRtcOpus_Resample48to32() 387 int16_t output_samples; in WebRtcOpus_Decode() local 415 output_samples = WebRtcOpus_Resample48to32(buffer16, decoded_samples, in WebRtcOpus_Decode() 421 return output_samples; in WebRtcOpus_Decode() 431 int16_t output_samples; in WebRtcOpus_DecodeSlave() local 455 output_samples = WebRtcOpus_Resample48to32(buffer16, decoded_samples, in WebRtcOpus_DecodeSlave() 458 return output_samples; in WebRtcOpus_DecodeSlave()
|
/external/chromium_org/media/base/ |
D | sinc_resampler_unittest.cc | 232 int output_samples = kTestDurationSecs * output_rate_; in TEST_P() local 261 scoped_ptr<float[]> resampled_destination(new float[output_samples]); in TEST_P() 262 scoped_ptr<float[]> pure_destination(new float[output_samples]); in TEST_P() 265 resampler.Resample(output_samples, resampled_destination.get()); in TEST_P() 269 output_rate_, output_samples, input_nyquist_freq); in TEST_P() 270 pure_source.ProvideInput(output_samples, pure_destination.get()); in TEST_P() 284 for (int i = 0; i < output_samples; ++i) { in TEST_P() 299 double rms_error = sqrt(sum_of_squares / output_samples); in TEST_P()
|