Home
last modified time | relevance | path

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

12345

/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Daudio-resampler.c292 make_taps (GstAudioResampler * resampler, gdouble * res, gdouble x, gint n_taps) in make_taps() argument
294 gdouble weight = 0.0, *tmp_taps = resampler->tmp_taps; in make_taps()
297 switch (resampler->method) { in make_taps()
303 weight += tmp_taps[i] = get_linear_tap (x + i, resampler->n_taps); in make_taps()
308 weight += tmp_taps[i] = get_cubic_tap (x + i, resampler->n_taps, in make_taps()
309 resampler->b, resampler->c); in make_taps()
316 resampler->n_taps, resampler->cutoff); in make_taps()
322 get_kaiser_tap (x + i, resampler->n_taps, in make_taps()
323 resampler->cutoff, resampler->kaiser_beta); in make_taps()
326 resampler->convert_taps (tmp_taps, res, weight, n_taps); in make_taps()
[all …]
Daudio-resampler-macros.h32 get_taps_##type##_full (GstAudioResampler * resampler, \
43 get_taps_##type##_##inter (GstAudioResampler * resampler, \
59 resample_ ##type## _ ##inter## _ ##channels## _ ##arch (GstAudioResampler * resampler, \
67 gint n_taps = resampler->n_taps; \
68 gint blocks = resampler->blocks; \
69 gint ostride = resampler->ostride; \
70 gint taps_stride = resampler->taps_stride; \
78 samp_index = resampler->samp_index; \
79 samp_phase = resampler->samp_phase; \
87 (resampler, &samp_index, &samp_phase, icoeff); \
[all …]
Daudio-resampler.h231 void gst_audio_resampler_free (GstAudioResampler *resampler);
234 void gst_audio_resampler_reset (GstAudioResampler *resampler);
237 gboolean gst_audio_resampler_update (GstAudioResampler *resampler,
242 gsize gst_audio_resampler_get_out_frames (GstAudioResampler *resampler,
246 gsize gst_audio_resampler_get_in_frames (GstAudioResampler *resampler,
250 gsize gst_audio_resampler_get_max_latency (GstAudioResampler *resampler);
253 void gst_audio_resampler_resample (GstAudioResampler * resampler,
Dmeson.build10 'audio-resampler.c',
37 'audio-resampler.h',
104 ['audio-resampler-x86-sse.c', gstaudio_h],
117 ['audio-resampler-x86-sse2.c', gstaudio_h],
131 ['audio-resampler-x86-sse41.c', gstaudio_h],
Daudio-converter.c128 GstAudioResampler *resampler; member
364 if (convert->resampler) in gst_audio_converter_update_config()
365 gst_audio_resampler_update (convert->resampler, in_rate, out_rate, config); in gst_audio_converter_update_config()
546 gst_audio_resampler_resample (convert->resampler, in, in_frames, out, in do_resample()
911 convert->resampler = in chain_resample()
1293 gst_audio_resampler_resample (convert->resampler, in, in_frames, out, in converter_resample()
1384 if (convert->resampler == NULL) { in gst_audio_converter_new()
1400 if (convert->resampler == NULL && out_info->layout == in_info->layout) { in gst_audio_converter_new()
1474 if (convert->resampler) in gst_audio_converter_free()
1475 gst_audio_resampler_free (convert->resampler); in gst_audio_converter_free()
[all …]
Daudio-resampler-private.h47 typedef void (*ResampleFunc) (GstAudioResampler * resampler, gpointer in[],
49 typedef void (*DeinterleaveFunc) (GstAudioResampler * resampler,
/third_party/gstreamer/gstplugins_base/gst-libs/gst/video/
Dvideo-resampler.c92 GstVideoResampler *resampler; member
207 GstVideoResampler *resampler = params->resampler; in resampler_calculate_taps() local
216 in_size = resampler->in_size; in resampler_calculate_taps()
217 out_size = resampler->out_size; in resampler_calculate_taps()
219 max_taps = resampler->max_taps; in resampler_calculate_taps()
225 resampler->taps = g_malloc (sizeof (gdouble) * max_taps * out_size); in resampler_calculate_taps()
226 n_taps = resampler->n_taps = g_malloc (sizeof (guint32) * out_size); in resampler_calculate_taps()
227 offset = resampler->offset = g_malloc (sizeof (guint32) * out_size); in resampler_calculate_taps()
228 phase = resampler->phase = g_malloc (sizeof (guint32) * out_size); in resampler_calculate_taps()
249 taps = resampler->taps + j * max_taps; in resampler_calculate_taps()
[all …]
Dvideo-scaler.c90 GstVideoResampler resampler; member
109 resampler_zip (GstVideoResampler * resampler, const GstVideoResampler * r1, in resampler_zip() argument
125 resampler->in_size = r1->in_size + r2->in_size; in resampler_zip()
126 resampler->out_size = out_size; in resampler_zip()
127 resampler->max_taps = max_taps; in resampler_zip()
128 resampler->n_phases = n_phases; in resampler_zip()
129 resampler->offset = offset; in resampler_zip()
130 resampler->phase = phase; in resampler_zip()
131 resampler->n_taps = g_malloc (sizeof (guint32) * out_size); in resampler_zip()
132 resampler->taps = taps; in resampler_zip()
[all …]
Dvideo-resampler.h165 gboolean gst_video_resampler_init (GstVideoResampler *resampler,
174 void gst_video_resampler_clear (GstVideoResampler *resampler);
/third_party/skia/third_party/externals/oboe/src/flowgraph/resampler/
DREADME.md3 This folder contains a sample rate converter, or "resampler".
12 Include the [main header](MultiChannelResampler.h) for the resampler.
14 #include "resampler/MultiChannelResampler.h"
16 Here is an example of creating a stereo resampler that will convert from 44100 to 48000 Hz.
17 Only do this once, when you open your stream. Then use the sample resampler to process multiple buf…
19 MultiChannelResampler *resampler = MultiChannelResampler::make(
36 …. So the resampler will sometimes generate 1023 frames and sometimes 1024 frames. On average it wi…
49 The resampler has a method isWriteNeeded() that tells you whether to write to or read from the resa…
53 if(resampler->isWriteNeeded()) {
55 resampler->writeNextFrame(frame);
[all …]
/third_party/skia/third_party/externals/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()
/third_party/skia/third_party/externals/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
/third_party/gstreamer/gstplugins_bad/sys/decklink/
Dgstdecklinkaudiosink.cpp319 if (self->resampler) in gst_decklink_audio_sink_set_caps()
320 gst_audio_resampler_free (self->resampler); in gst_decklink_audio_sink_set_caps()
321 self->resampler = NULL; in gst_decklink_audio_sink_set_caps()
469 if (self->resampler && (self->resampler_out_rate != out_rate in gst_decklink_audio_sink_event()
471 gst_audio_resampler_update (self->resampler, self->info.rate, out_rate, in gst_decklink_audio_sink_event()
473 else if (!self->resampler) in gst_decklink_audio_sink_event()
474 self->resampler = in gst_decklink_audio_sink_event()
481 } else if (self->resampler) { in gst_decklink_audio_sink_event()
482 gst_audio_resampler_free (self->resampler); in gst_decklink_audio_sink_event()
483 self->resampler = NULL; in gst_decklink_audio_sink_event()
[all …]
/third_party/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",
/third_party/pulseaudio/src/pulsecore/
Dsink-input.c298 pa_resampler *resampler = NULL; in pa_sink_input_new() local
469 if (!(resampler = pa_resampler_new( in pa_sink_input_new()
502 … i->actual_resample_method = resampler ? pa_resampler_get_method(resampler) : PA_RESAMPLER_INVALID; in pa_sink_input_new()
554 i->thread_info.resampler = resampler; in pa_sink_input_new()
768 if (i->thread_info.resampler) in sink_input_free()
769 pa_resampler_free(i->thread_info.resampler); in sink_input_free()
888 block_size_max_sink_input = i->thread_info.resampler ? in pa_sink_input_peek()
889 pa_resampler_max_block_size(i->thread_info.resampler) : in pa_sink_input_peek()
901 if (i->thread_info.resampler) { in pa_sink_input_peek()
902 ilength = pa_resampler_request(i->thread_info.resampler, slength); in pa_sink_input_peek()
[all …]
Dsource-output.c235 pa_resampler *resampler = NULL; in pa_source_output_new() local
416 if (!(resampler = pa_resampler_new( in pa_source_output_new()
449 … o->actual_resample_method = resampler ? pa_resampler_get_method(resampler) : PA_RESAMPLER_INVALID; in pa_source_output_new()
485 o->thread_info.resampler = resampler; in pa_source_output_new()
655 if (o->thread_info.resampler) in source_output_free()
656 pa_resampler_free(o->thread_info.resampler); in source_output_free()
812 } else if (!o->thread_info.resampler && nvfs) { in pa_source_output_push()
831 if (!o->thread_info.resampler) in pa_source_output_push()
837 mbs = pa_resampler_max_block_size(o->thread_info.resampler); in pa_source_output_push()
842 pa_resampler_run(o->thread_info.resampler, &qchunk, &rchunk); in pa_source_output_push()
[all …]
Dmeson.build35 'resampler.c',
36 'resampler/ffmpeg.c',
37 'resampler/peaks.c',
38 'resampler/trivial.c',
95 'resampler.h',
137 libpulsecore_sources += ['resampler/libsamplerate.c']
141 libpulsecore_sources += ['resampler/soxr.c']
145 libpulsecore_sources += ['resampler/speex.c']
/third_party/skia/third_party/externals/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;
/third_party/ffmpeg/doc/
Dffmpeg-resampler.texi16 The FFmpeg resampler provides a high-level interface to the
23 @include resampler.texi
40 @setfilename ffmpeg-resampler
Dlibswresample.texi52 @url{ffmpeg-resampler.html,ffmpeg-resampler},
58 ffmpeg-resampler(1),
/third_party/ffmpeg/libswresample/
Dswresample.c141 if (s->resampler) in swr_free()
142 s->resampler->free(&s->resample); in swr_free()
198 case SWR_ENGINE_SOXR: s->resampler = &swri_soxr_resampler; break; in swr_init()
200 case SWR_ENGINE_SWR : s->resampler = &swri_resampler; break; in swr_init()
275 …s->resample = s->resampler->init(s->resample, s->out_sample_rate, s->in_sample_rate, s->filter_siz… in swr_init()
281 s->resampler->free(&s->resample); in swr_init()
501 border = s->resampler->invert_initial_buffer(s->resample, &s->in_buffer, in resample()
517 …ret= s->resampler->multiple_resample(s->resample, &out, out_count, &tmp, s->in_buffer_count, &cons… in resample()
537 …ret= s->resampler->multiple_resample(s->resample, &out, out_count, &in, FFMAX(in_count-padless, 0)… in resample()
754 s->resampler->flush(s); in swr_convert()
[all …]
/third_party/pulseaudio/ohosbuild/src/pulsecore/
DBUILD.gn81 "$pulseaudio_dir/src/pulsecore/resampler.c",
82 "$pulseaudio_dir/src/pulsecore/resampler/ffmpeg.c",
83 "$pulseaudio_dir/src/pulsecore/resampler/peaks.c",
84 "$pulseaudio_dir/src/pulsecore/resampler/trivial.c",
/third_party/skia/third_party/externals/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.
/third_party/pulseaudio/src/tests/
Dresampler-test.c411 pa_resampler *resampler; in main() local
421 … pa_assert_se(resampler = pa_resampler_new(pool, &a, NULL, &b, NULL, crossover_freq, method, 0)); in main()
430 pa_resampler_run(resampler, &i, &j); in main()
437 pa_resampler_free(resampler); in main()

12345