121 "resample_out_buffer");
222 av_dlog(avr,
"[FIFO] add %s to out_fifo\n", converted->
name);
232 av_dlog(avr,
"[FIFO] read from out_fifo to output\n");
233 av_dlog(avr,
"[end conversion]\n");
237 }
else if (converted) {
240 av_dlog(avr,
"[copy] %s to output\n", converted->
name);
245 av_dlog(avr,
"[end conversion]\n");
248 av_dlog(avr,
"[end conversion]\n");
253 uint8_t **output,
int out_plane_size,
254 int out_samples,
uint8_t **input,
255 int in_plane_size,
int in_samples)
260 int ret, direct_output;
279 av_dlog(avr,
"[start conversion]\n");
299 current_buffer = &input_buffer;
305 av_dlog(avr,
"[copy] %s to output\n", current_buffer->
name);
309 current_buffer = &output_buffer;
318 av_dlog(avr,
"[convert] %s to in_buffer\n", current_buffer->
name);
324 av_dlog(avr,
"[copy] %s to in_buffer\n", current_buffer->
name);
331 av_dlog(avr,
"[downmix] in_buffer\n");
343 current_buffer =
NULL;
350 resample_out = &output_buffer;
353 av_dlog(avr,
"[resample] %s to %s\n", current_buffer->
name,
362 av_dlog(avr,
"[end conversion]\n");
366 current_buffer = resample_out;
370 av_dlog(avr,
"[upmix] %s\n", current_buffer->
name);
377 if (current_buffer == &output_buffer) {
378 av_dlog(avr,
"[end conversion]\n");
383 if (direct_output && out_samples >= current_buffer->
nb_samples) {
385 av_dlog(avr,
"[convert] %s to output\n", current_buffer->
name);
390 av_dlog(avr,
"[end conversion]\n");
397 av_dlog(avr,
"[convert] %s to out_buffer\n", current_buffer->
name);
413 int in_channels, out_channels, i, o;
432 for (o = 0; o < out_channels; o++)
433 for (i = 0; i < in_channels; i++)
434 matrix[o * stride + i] = avr->
mix_matrix[o * in_channels + i];
442 int in_channels, out_channels, i, o;
463 for (o = 0; o < out_channels; o++)
464 for (i = 0; i < in_channels; i++)
465 avr->
mix_matrix[o * in_channels + i] = matrix[o * stride + i];
489 #define LICENSE_PREFIX "libavresample license: "
495 return FFMPEG_CONFIGURATION;