Lines Matching refs:swr
51 * SwrContext *swr = swr_alloc();
52 * av_opt_set_channel_layout(swr, "in_channel_layout", AV_CH_LAYOUT_5POINT1, 0);
53 * av_opt_set_channel_layout(swr, "out_channel_layout", AV_CH_LAYOUT_STEREO, 0);
54 * av_opt_set_int(swr, "in_sample_rate", 48000, 0);
55 * av_opt_set_int(swr, "out_sample_rate", 44100, 0);
56 * av_opt_set_sample_fmt(swr, "in_sample_fmt", AV_SAMPLE_FMT_FLTP, 0);
57 * av_opt_set_sample_fmt(swr, "out_sample_fmt", AV_SAMPLE_FMT_S16, 0);
62 * SwrContext *swr = NULL;
63 * int ret = swr_alloc_set_opts2(&swr, // we're allocating a new context
81 * Note that the samples may get buffered in swr if you provide insufficient
103 * int out_samples = av_rescale_rnd(swr_get_delay(swr, 48000) +
107 * out_samples = swr_convert(swr, &output, out_samples,
229 * Check whether an swr context has been initialized or not.
521 * @param s swr context
572 * Return the swr build-time configuration.
579 * Return the swr license.
620 * @param swr audio resample context
626 int swr_convert_frame(SwrContext *swr,
638 * @param swr audio resample context
643 int swr_config_frame(SwrContext *swr, const AVFrame *out, const AVFrame *in);