Home
last modified time | relevance | path

Searched refs:out_rate (Results 1 – 14 of 14) sorted by relevance

/third_party/gstreamer/gstplugins_base/gst-libs/gst/audio/
Daudio-resampler.c488 gint out_rate = resampler->out_rate; \
491 if (*samp_phase >= out_rate) { \
492 *samp_phase -= out_rate; \
511 gint out_rate = resampler->out_rate; \
513 gint phase = (n_phases == out_rate ? *samp_phase : \
514 ((gint64)*samp_phase * n_phases) / out_rate); \
560 if (*samp_phase >= out_rate) { \
561 *samp_phase -= out_rate; \
575 gint out_rate = resampler->out_rate; \
581 offset = (oversample - 1) - pos / out_rate; \
[all …]
Daudio-resampler.h220 gint in_rate, gint out_rate,
227 gint in_rate, gint out_rate,
238 gint in_rate, gint out_rate,
Daudio-converter.h142 gint in_rate, gint out_rate,
147 gint *in_rate, gint *out_rate);
Daudio-converter.c348 gint in_rate, gint out_rate, GstStructure * config) in gst_audio_converter_update_config() argument
351 g_return_val_if_fail ((in_rate == 0 && out_rate == 0) || in gst_audio_converter_update_config()
354 GST_LOG ("new rate %d -> %d", in_rate, out_rate); in gst_audio_converter_update_config()
358 if (out_rate <= 0) in gst_audio_converter_update_config()
359 out_rate = convert->out.rate; in gst_audio_converter_update_config()
362 convert->out.rate = out_rate; in gst_audio_converter_update_config()
365 gst_audio_resampler_update (convert->resampler, in_rate, out_rate, config); in gst_audio_converter_update_config()
389 gint * in_rate, gint * out_rate) in gst_audio_converter_get_config() argument
395 if (out_rate) in gst_audio_converter_get_config()
396 *out_rate = convert->out.rate; in gst_audio_converter_get_config()
Daudio-resampler-private.h61 gint out_rate; member
/third_party/ffmpeg/libavfilter/
Daf_aresample.c83 int64_t out_rate, out_layout; in query_formats() local
94 av_opt_get_int(aresample->swr, "osr", 0, &out_rate); in query_formats()
109 if(out_rate > 0) { in query_formats()
110 int ratelist[] = { out_rate, -1 }; in query_formats()
143 int64_t out_rate, out_layout; in config_output() local
162 av_opt_get_int(aresample->swr, "osr", 0, &out_rate); in config_output()
165 outlink->time_base = (AVRational) {1, out_rate}; in config_output()
167 av_assert0(outlink->sample_rate == out_rate); in config_output()
/third_party/ffmpeg/libavresample/tests/
Davresample.c209 int out_rate; in main() local
280 out_rate = rates[n]; in main()
284 in_channels, out_channels, in_rate, out_rate); in main()
288 out_rate * 6, out_fmt, 0); in main()
299 av_opt_set_int(s, "out_sample_rate", out_rate, 0); in main()
309 ret = avresample_convert(s, out_data, out_linesize, out_rate * 6, in main()
/third_party/ffmpeg/libswresample/
Dsoxr_resample.c32 static struct ResampleContext *create(struct ResampleContext *c, int out_rate, int in_rate, int fil… in create() argument
58 soxr_create(in_rate, out_rate, 0, &error, &io_spec, &q_spec, 0); in create()
Dresample.c287 static ResampleContext *resample_init(ResampleContext *c, int out_rate, int in_rate, int filter_siz… in resample_init() argument
292 double factor= FFMIN(out_rate * cutoff / in_rate, 1.0); in resample_init()
303 av_reduce(&phase_count_exact, &phase_count_exact_den, out_rate, in_rate, INT_MAX); in resample_init()
361 … if(!av_reduce(&c->src_incr, &c->dst_incr, out_rate, in_rate * (int64_t)phase_count, INT32_MAX/2)) in resample_init()
Dswresample_internal.h71 typedef struct ResampleContext * (* resample_init_func)(struct ResampleContext *c, int out_rate, in…
/third_party/pulseaudio/src/pulsecore/ffmpeg/
Dresample2.c177 AVResampleContext *av_resample_init(int out_rate, int in_rate, int filter_size, int phase_shift, in… in av_resample_init() argument
179 double factor= FFMIN(out_rate * cutoff / in_rate, 1.0); in av_resample_init()
192 c->src_incr= out_rate; in av_resample_init()
Davcodec.h68 struct AVResampleContext *av_resample_init(int out_rate, int in_rate, int filter_length, int log2_p…
/third_party/gstreamer/gstplugins_bad/sys/decklink/
Dgstdecklinkaudiosink.cpp467 guint out_rate = self->info.rate / ABS (new_segment->rate); in gst_decklink_audio_sink_event() local
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()
477 self->info.channels, self->info.rate, out_rate, NULL); in gst_decklink_audio_sink_event()
480 self->resampler_out_rate = out_rate; in gst_decklink_audio_sink_event()
/third_party/ffmpeg/libavresample/
Dresample.c123 int out_rate = avr->out_sample_rate; in ff_audio_resample_init() local
125 double factor = FFMIN(out_rate * avr->cutoff / in_rate, 1.0); in ff_audio_resample_init()
192 if (!av_reduce(&c->src_incr, &c->dst_incr, out_rate, in ff_audio_resample_init()