Home
last modified time | relevance | path

Searched refs:resampler (Results 1 – 25 of 60) sorted by relevance

123

/external/webrtc/common_audio/resampler/
Dsinc_resampler_unittest.cc64 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 …]
Dpush_resampler_unittest.cc27 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()
Dpush_resampler.cc96 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()
Dpush_sinc_resampler_unittest.cc98 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/
DREADME.md3 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 …]
DPolyphaseResamplerMono.h24 namespace resampler {
DSincResamplerStereo.h24 namespace resampler {
DPolyphaseResamplerStereo.h24 namespace resampler {
DPolyphaseResampler.h26 namespace resampler {
DLinearResampler.h25 namespace resampler {
DSincResampler.h25 namespace resampler {
DIntegerRatio.h22 namespace resampler {
/external/webrtc/common_audio/
DBUILD.gn26 "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/
DSampleBuffer.cpp24 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/
Dremix_resample.cc22 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()
Dremix_resample.h28 PushResampler<int16_t>* resampler,
38 PushResampler<int16_t>* resampler,
Daudio_transport_impl.cc70 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/
DCMakeLists.txt43 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
DAndroid.bp90 "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/
DBUILD.gn68 "../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/
DSampleRateConverter.cpp20 using namespace resampler;
22 SampleRateConverter::SampleRateConverter(int32_t channelCount, MultiChannelResampler &resampler) in SampleRateConverter() argument
24 , mResampler(resampler) { in SampleRateConverter()
DSampleRateConverter.h31 … explicit SampleRateConverter(int32_t channelCount, resampler::MultiChannelResampler &mResampler);
51 resampler::MultiChannelResampler &mResampler;
/external/adhd/cras/src/server/
Dcras_fmt_conv.c42 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/
Drnn_vad_tool.cc64 PushSincResampler resampler(frame_size_10ms, kFrameSize10ms24kHz); in main() local
78 resampler.Resample(samples_10ms.data(), samples_10ms.size(), in main()
/external/oboe/src/common/
DREADME.md5 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.

123