Lines Matching defs:forw_ctx
245 struct SwrContext * forw_ctx= NULL;
304 if (swr_alloc_set_opts2(&forw_ctx, &out_ch_layout, out_sample_fmt, out_sample_rate,
317 if(swr_init( forw_ctx) < 0)
335 mid_count= swr_convert(forw_ctx, amid, 3*SAMPLES, (const uint8_t **)ain, SAMPLES);
337 mid_count= swr_convert(forw_ctx, amid, 0, (const uint8_t **)ain, SAMPLES);
338 mid_count+=swr_convert(forw_ctx, amid, 3*SAMPLES, (const uint8_t **)ain, 0);
341 mid_count= swr_convert(forw_ctx, amid, 0, (const uint8_t **)ain, 1);
344 mid_count+=swr_convert(forw_ctx, amid, 3*SAMPLES, (const uint8_t **)ain, 0);
346 mid_count+=swr_convert(forw_ctx, amid, 2, (const uint8_t **)ain, 2);
349 mid_count+=swr_convert(forw_ctx, amid, 1, (const uint8_t **)ain, SAMPLES-3);
352 mid_count+=swr_convert(forw_ctx, amid, 3*SAMPLES, (const uint8_t **)ain, 0);