Lines Matching +full:- +full:- +full:output +full:- +full:on +full:- +full:failure
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
42 * format to interleaved signed 16-bit integer, downsampling from 48kHz to
62 * is the output FIFO, where the samples end up if the output buffer is not
71 * from above and caller-defined functions get_input() and handle_output():
77 * uint8_t *output
81 * av_samples_alloc(&output, &out_linesize, 2, out_samples,
83 * out_samples = avresample_convert(avr, &output, out_linesize, out_samples,
85 * handle_output(output, out_linesize, out_samples);
86 * av_freep(&output);
113 AV_MIX_COEFF_TYPE_Q8, /** 16-bit 8.8 fixed-point */
114 AV_MIX_COEFF_TYPE_Q15, /** 32-bit 17.15 fixed-point */
115 AV_MIX_COEFF_TYPE_FLT, /** floating-point */
154 * Return the libavresample build-time configuration.
191 * @return allocated audio resample context, or NULL on failure
211 * @return 0 on success, negative AVERROR code on failure
235 * can be reopened with avresample_open(). It does, however, clear the output
271 * @param out_layout output channel layout
274 * @param lfe_mix_level mix level for the low-frequency effects channel
279 * the weight of input channel i in output channel o.
283 * @return 0 on success, negative AVERROR code on failure
302 * input channel i in output channel o.
304 * @return 0 on success, negative AVERROR code on failure
318 * anytime on an allocated context, either before or after calling
321 * Calling avresample_close() on the context will clear the current matrix.
327 * input channel i in output channel o.
329 * @return 0 on success, negative AVERROR code on failure
344 * Calling avresample_close() on the context will clear the channel mapping.
347 * use for that particular channel, or -1 to mute the channel. Source channels
355 * Muting the 3rd channel in 4-channel input:
356 * { 0, 1, -1, 3 }
363 * @return 0 on success, negative AVERROR code on failure
383 * @return 0 on success, negative AVERROR code on failure
393 * Provide the upper bound on the number of samples the configured
394 * conversion would output.
409 * Convert input samples and write them to the output FIFO.
411 * The upper bound on the number of output samples can be obtained through
414 * The output data can be NULL or have fewer allocated samples than required.
415 * In this case, any remaining samples not written to the output will be added
421 * samples. To get this data as output, call avresample_convert() with NULL
426 * samples. To get this data as output, either call avresample_convert() with
434 * @param output output data pointers
435 * @param out_plane_size output plane size, in bytes.
437 * optimized functions not being used directly on the
438 * output, which could slow down some conversions.
439 * @param out_samples maximum number of samples that the output buffer can hold
443 * optimized functions not being used directly on the
446 * @return number of samples written to the output buffer,
448 * output FIFO
451 int avresample_convert(AVAudioResampleContext *avr, uint8_t **output,
462 * When resampling, there may be a delay between the input and output. Any
479 * Return the number of available samples in the output FIFO.
481 * During conversion, if the user does not specify an output buffer or
482 * specifies an output buffer that is smaller than what is needed, remaining
483 * samples that are not written to the output are stored to an internal FIFO
500 * Read samples from the output FIFO.
502 * During conversion, if the user does not specify an output buffer or
503 * specifies an output buffer that is smaller than what is needed, remaining
504 * samples that are not written to the output are stored to an internal FIFO
511 * @param output output data pointers. May be NULL, in which case
512 * nb_samples of data is discarded from output FIFO.
514 * @return the number of samples written to output
517 int avresample_read(AVAudioResampleContext *avr, uint8_t **output, int nb_samples);
523 * Convert the samples in the input AVFrame and write them to the output AVFrame.
525 * Input and output AVFrames must have channel_layout, sample_rate and format set.
527 * The upper bound on the number of output samples is obtained through
530 * If the output AVFrame does not have the data pointers allocated the nb_samples
534 * The output AVFrame can be NULL or have fewer allocated samples than required.
535 * In this case, any remaining samples not written to the output will be added
541 * remaining samples. To get this data as output, call this function or
546 * samples. To get this data as output, either call this function or
549 * If the AVAudioResampleContext configuration does not match the output and
550 * input AVFrame settings the conversion does not take place and depending on
561 * @param output output AVFrame
563 * @return 0 on success, AVERROR on failure or nonmatching
568 AVFrame *output, AVFrame *input);
577 * The original resampling context is reset even on failure.
584 * @param out output AVFrame
586 * @return 0 on success, AVERROR on failure.