/external/webrtc/common_audio/resampler/ |
D | sinc_resampler_unittest.cc | 64 SincResampler resampler(kSampleRateRatio, SincResampler::kDefaultRequestSize, in TEST() local 68 size_t max_chunk_size = resampler.ChunkSize() * kChunks; in TEST() 73 resampler.Resample(resampler.ChunkSize(), resampled_destination.get()); in TEST() 80 resampler.Resample(max_chunk_size, resampled_destination.get()); in TEST() 86 SincResampler resampler(kSampleRateRatio, SincResampler::kDefaultRequestSize, in TEST() local 89 new float[resampler.ChunkSize()]); in TEST() 93 resampler.Resample(resampler.ChunkSize() / 2, resampled_destination.get()); in TEST() 97 resampler.Flush(); in TEST() 100 resampler.Resample(resampler.ChunkSize() / 2, resampled_destination.get()); in TEST() 101 for (size_t i = 0; i < resampler.ChunkSize() / 2; ++i) in TEST() [all …]
|
D | push_resampler_unittest.cc | 27 PushResampler<int16_t> resampler; in TEST() local 28 EXPECT_EQ(0, resampler.InitializeIfNeeded(16000, 16000, 1)); in TEST() 29 EXPECT_EQ(0, resampler.InitializeIfNeeded(16000, 16000, 2)); in TEST() 30 EXPECT_EQ(0, resampler.InitializeIfNeeded(16000, 16000, 8)); in TEST() 35 PushResampler<int16_t> resampler; in TEST() local 36 RTC_EXPECT_DEATH(resampler.InitializeIfNeeded(-1, 16000, 1), in TEST() 41 PushResampler<int16_t> resampler; in TEST() local 42 RTC_EXPECT_DEATH(resampler.InitializeIfNeeded(16000, -1, 1), in TEST() 47 PushResampler<int16_t> resampler; in TEST() local 48 RTC_EXPECT_DEATH(resampler.InitializeIfNeeded(16000, 16000, 0), in TEST()
|
D | push_resampler.cc | 96 channel_resampler->resampler = std::make_unique<PushSincResampler>( in InitializeIfNeeded() 133 for (auto& resampler : channel_resamplers_) { in Resample() local 134 dst_length_mono = resampler.resampler->Resample( in Resample() 135 resampler.source.data(), src_length_mono, resampler.destination.data(), in Resample()
|
D | push_sinc_resampler_unittest.cc | 98 PushSincResampler resampler(input_samples, output_samples); in ResampleBenchmarkTest() local 103 resampler.Resample(source_int.get(), input_samples, in ResampleBenchmarkTest() 108 EXPECT_EQ(output_samples, resampler.Resample(source.get(), input_samples, in ResampleBenchmarkTest() 152 PushSincResampler resampler(input_block_size, output_block_size); in ResampleTest() local 169 output_block_size - resampler.get_resampler_for_testing()->ChunkSize(); in ResampleTest() 180 resampler.Resample(source_int.get(), input_block_size, in ResampleTest() 189 resampler.Resample(&source[i * input_block_size], input_block_size, in ResampleTest()
|
/external/oboe/src/flowgraph/resampler/ |
D | README.md | 3 This folder contains a sample rate converter, or "resampler". 15 1. Copy the "resampler" folder to a folder in your project that is in the include path. 16 2. Add all of the \*.cpp files in the resampler folder to your project IDE or Makefile. 20 Include the [main header](MultiChannelResampler.h) for the resampler. 22 #include "resampler/MultiChannelResampler.h" 24 Here is an example of creating a stereo resampler that will convert from 44100 to 48000 Hz. 25 Only do this once, when you open your stream. Then use the sample resampler to process multiple buf… 27 MultiChannelResampler *resampler = MultiChannelResampler::make( 44 …. So the resampler will sometimes generate 1044 frames and sometimes 1045 frames. On average it wi… 57 The resampler has a method isWriteNeeded() that tells you whether to write to or read from the resa… [all …]
|
D | PolyphaseResamplerMono.h | 24 namespace resampler {
|
D | SincResamplerStereo.h | 24 namespace resampler {
|
D | PolyphaseResamplerStereo.h | 24 namespace resampler {
|
D | PolyphaseResampler.h | 26 namespace resampler {
|
D | LinearResampler.h | 25 namespace resampler {
|
D | SincResampler.h | 25 namespace resampler {
|
D | IntegerRatio.h | 22 namespace resampler {
|
/external/webrtc/common_audio/ |
D | BUILD.gn | 26 "resampler/include/push_resampler.h", 27 "resampler/include/resampler.h", 28 "resampler/push_resampler.cc", 29 "resampler/push_sinc_resampler.cc", 30 "resampler/push_sinc_resampler.h", 31 "resampler/resampler.cc", 32 "resampler/sinc_resampler.cc", 206 sources = [ "resampler/sinc_resampler.h" ] 249 "resampler/sinc_resampler_sse.cc", 271 "resampler/sinc_resampler_neon.cc", [all …]
|
/external/oboe/samples/iolib/src/main/cpp/player/ |
D | SampleBuffer.cpp | 24 using namespace resampler; 67 MultiChannelResampler *resampler = MultiChannelResampler::make( in resampleData() local 80 if(resampler->isWriteNeeded()) { in resampleData() 81 resampler->writeNextFrame(inputBuffer); in resampleData() 85 resampler->readNextFrame(outputBuffer); in resampleData() 92 delete resampler; in resampleData()
|
/external/webrtc/audio/ |
D | remix_resample.cc | 22 PushResampler<int16_t>* resampler, in RemixAndResample() argument 26 resampler, dst_frame); in RemixAndResample() 37 PushResampler<int16_t>* resampler, in RemixAndResample() argument 57 if (resampler->InitializeIfNeeded(sample_rate_hz, dst_frame->sample_rate_hz_, in RemixAndResample() 70 resampler->Resample(audio_ptr, src_length, dst_frame->mutable_data(), in RemixAndResample()
|
D | remix_resample.h | 28 PushResampler<int16_t>* resampler, 38 PushResampler<int16_t>* resampler,
|
D | audio_transport_impl.cc | 70 PushResampler<int16_t>* resampler, in Resample() argument 75 resampler->InitializeIfNeeded(frame.sample_rate_hz_, destination_sample_rate, in Resample() 80 return resampler->Resample( in Resample()
|
/external/oboe/ |
D | CMakeLists.txt | 43 src/flowgraph/resampler/IntegerRatio.cpp 44 src/flowgraph/resampler/LinearResampler.cpp 45 src/flowgraph/resampler/MultiChannelResampler.cpp 46 src/flowgraph/resampler/PolyphaseResampler.cpp 47 src/flowgraph/resampler/PolyphaseResamplerMono.cpp 48 src/flowgraph/resampler/PolyphaseResamplerStereo.cpp 49 src/flowgraph/resampler/SincResampler.cpp 50 src/flowgraph/resampler/SincResamplerStereo.cpp
|
D | Android.bp | 90 "src/flowgraph/resampler/IntegerRatio.cpp", 91 "src/flowgraph/resampler/LinearResampler.cpp", 92 "src/flowgraph/resampler/MultiChannelResampler.cpp", 93 "src/flowgraph/resampler/PolyphaseResampler.cpp", 94 "src/flowgraph/resampler/PolyphaseResamplerMono.cpp", 95 "src/flowgraph/resampler/PolyphaseResamplerStereo.cpp", 96 "src/flowgraph/resampler/SincResampler.cpp", 97 "src/flowgraph/resampler/SincResamplerStereo.cpp",
|
/external/skia/third_party/oboe/ |
D | BUILD.gn | 68 "../externals/oboe/src/flowgraph/resampler/IntegerRatio.cpp", 69 "../externals/oboe/src/flowgraph/resampler/LinearResampler.cpp", 70 "../externals/oboe/src/flowgraph/resampler/MultiChannelResampler.cpp", 71 "../externals/oboe/src/flowgraph/resampler/PolyphaseResampler.cpp", 72 "../externals/oboe/src/flowgraph/resampler/PolyphaseResamplerMono.cpp", 73 "../externals/oboe/src/flowgraph/resampler/PolyphaseResamplerStereo.cpp", 74 "../externals/oboe/src/flowgraph/resampler/SincResampler.cpp", 75 "../externals/oboe/src/flowgraph/resampler/SincResamplerStereo.cpp",
|
/external/oboe/src/flowgraph/ |
D | SampleRateConverter.cpp | 20 using namespace resampler; 22 SampleRateConverter::SampleRateConverter(int32_t channelCount, MultiChannelResampler &resampler) in SampleRateConverter() argument 24 , mResampler(resampler) { in SampleRateConverter()
|
D | SampleRateConverter.h | 31 … explicit SampleRateConverter(int32_t channelCount, resampler::MultiChannelResampler &mResampler); 51 resampler::MultiChannelResampler &mResampler;
|
/external/adhd/cras/src/server/ |
D | cras_fmt_conv.c | 42 struct linear_resampler *resampler; member 504 conv->resampler = in cras_fmt_conv_create() 508 if (conv->resampler == NULL) { in cras_fmt_conv_create() 541 if (conv->resampler) in cras_fmt_conv_destroy() 542 linear_resampler_destroy(conv->resampler); in cras_fmt_conv_destroy() 624 in_frames = linear_resampler_in_frames_to_out(conv->resampler, in cras_fmt_conv_in_frames_to_out() 629 in_frames = linear_resampler_in_frames_to_out(conv->resampler, in cras_fmt_conv_in_frames_to_out() 640 out_frames = linear_resampler_out_frames_to_in(conv->resampler, in cras_fmt_conv_out_frames_to_in() 645 out_frames = linear_resampler_out_frames_to_in(conv->resampler, in cras_fmt_conv_out_frames_to_in() 653 linear_resampler_set_rates(conv->resampler, from, to); in cras_fmt_conv_set_linear_resample_rates() [all …]
|
/external/webrtc/modules/audio_processing/agc2/rnn_vad/ |
D | rnn_vad_tool.cc | 64 PushSincResampler resampler(frame_size_10ms, kFrameSize10ms24kHz); in main() local 78 resampler.Resample(samples_10ms.data(), samples_10ms.size(), in main()
|
/external/oboe/src/common/ |
D | README.md | 5 There are two components of the latency. The resampler itself, and a buffer that 8 1) The resampler is an FIR running at the target sample rate. So its latency is the number of taps.
|