Home
last modified time | relevance | path

Searched refs:output_samples (Results 1 – 8 of 8) sorted by relevance

/external/chromium_org/third_party/webrtc/common_audio/resampler/
Dpush_sinc_resampler_unittest.cc56 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 …]
Dsinc_resampler_unittest.cc254 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/
Dopus_demo.c769 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()
781output_samples = opus_decode(dec, lost ? NULL : data[toggle], len[toggle], out, output_samples, 1); in main()
784 output_samples = max_frame_size; in main()
785output_samples = opus_decode(dec, data[1-toggle], len[1-toggle], out, output_samples, 0); in main()
788output_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/
Dopus_demo.c769 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()
781output_samples = opus_decode(dec, lost ? NULL : data[toggle], len[toggle], out, output_samples, 1); in main()
784 output_samples = max_frame_size; in main()
785output_samples = opus_decode(dec, data[1-toggle], len[1-toggle], out, output_samples, 0); in main()
788output_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/
Dcras_unified.cc293 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()
Dcras_unified.h54 uint8* output_samples,
69 uint8* output_samples,
76 uint8* output_samples,
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/opus/
Dopus_interface.c277 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/
Dsinc_resampler_unittest.cc232 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()