Lines Matching refs:swr
89 ret = swr_convert(s->swr, in opus_flush_resample()
134 av_opt_set_int(s->swr, "in_sample_rate", s->silk_samplerate, 0); in opus_init_resample()
135 ret = swr_init(s->swr); in opus_init_resample()
141 ret = swr_convert(s->swr, in opus_init_resample()
187 if (!swr_is_initialized(s->swr)) { in opus_decode_frame()
201 samples = swr_convert(s->swr, in opus_decode_frame()
345 if (swr_is_initialized(s->swr)) { in opus_decode_subpacket()
348 av_opt_get_int(s->swr, "in_sample_rate", 0, &cur_samplerate); in opus_decode_subpacket()
378 swr_close(s->swr); in opus_decode_subpacket()
581 swr_close(s->swr); in opus_decode_flush()
606 swr_free(&s->swr); in opus_decode_close()
659 s->swr =swr_alloc(); in opus_decode_init()
660 if (!s->swr) in opus_decode_init()
664 av_opt_set_int(s->swr, "in_sample_fmt", avctx->sample_fmt, 0); in opus_decode_init()
665 av_opt_set_int(s->swr, "out_sample_fmt", avctx->sample_fmt, 0); in opus_decode_init()
666 av_opt_set_int(s->swr, "in_channel_layout", layout, 0); in opus_decode_init()
667 av_opt_set_int(s->swr, "out_channel_layout", layout, 0); in opus_decode_init()
668 av_opt_set_int(s->swr, "out_sample_rate", avctx->sample_rate, 0); in opus_decode_init()
669 av_opt_set_int(s->swr, "filter_size", 16, 0); in opus_decode_init()