Lines Matching defs:output

54         av_log(avr, AV_LOG_ERROR, "Invalid output channel layout: %"PRIu64"\n",
106 the output format is not planar */
145 av_log(avr, AV_LOG_TRACE, "output map: ");
288 AudioData *output, AudioData *converted)
292 if (!output || av_audio_fifo_size(avr->out_fifo) > 0 ||
293 (converted && output->allocated_samples < converted->nb_samples)) {
295 /* if there are any samples in the output FIFO or if the
296 user-supplied output buffer is not large enough for all samples,
297 we add to the output FIFO */
305 /* if the user specified an output buffer, read samples from the output
306 FIFO to the user output */
307 if (output && output->allocated_samples > 0) {
308 av_log(avr, AV_LOG_TRACE, "[FIFO] read from out_fifo to output\n");
310 return ff_audio_data_read_from_fifo(avr->out_fifo, output,
311 output->allocated_samples);
314 /* copy directly to output if it is large enough or there is not any
315 data in the output FIFO */
316 av_log(avr, AV_LOG_TRACE, "[copy] %s to output\n", converted->name);
317 output->nb_samples = 0;
318 ret = ff_audio_data_copy(output, converted,
324 return output->nb_samples;
331 uint8_t **output, int out_plane_size,
360 /* initialize output_buffer with output data */
361 direct_output = output && av_audio_fifo_size(avr->out_fifo) == 0;
362 if (output) {
363 ret = ff_audio_data_init(&output_buffer, output, out_plane_size,
365 avr->out_sample_fmt, 0, "output");
382 /* in some rare cases we can copy input to output and upmix
383 directly in the output buffer */
384 av_log(avr, AV_LOG_TRACE, "[copy] %s to output\n", current_buffer->name);
393 /* if remapping channels during output copy, we may need to
395 * samples to the output fifo */
433 /* flush resampling buffer and/or output FIFO if input is NULL */
435 return handle_buffered_output(avr, output ? &output_buffer : NULL,
471 /* if we resampled or upmixed directly to output, return here */
479 /* convert directly to output */
480 av_log(avr, AV_LOG_TRACE, "[convert] %s to output\n", current_buffer->name);
501 return handle_buffered_output(avr, output ? &output_buffer : NULL,
731 /* Fill-in unmapped input channels with unmapped output channels.
772 int avresample_read(AVAudioResampleContext *avr, uint8_t **output, int nb_samples)
774 if (!output)
776 return av_audio_fifo_read(avr->out_fifo, (void**)output, nb_samples);