• Home
  • Raw
  • Download

Lines Matching +full:set +full:- +full:output

2  * Copyright (C) 2011-2013 Michael Niedermayer (michaelni@gmx.at)
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
38 * must be set with the @ref avoptions API.
42 * are using the former, you must set options through the @ref avoptions API.
43 * The latter function provides the same feature, but it allows you to set some
47 * format to interleaved signed 16-bit integer, downsampling from 48kHz to
73 * Once all values have been set, it must be initialized with swr_init(). If
81 * output space or if sample rate conversion is done, which requires "future"
83 * time by using swr_convert() (in_count can be set to 0).
91 * The delay between input and output, can at any time be found by using
95 * from above and caller-defined functions get_input() and handle_output():
101 * uint8_t *output;
104 * av_samples_alloc(&output, NULL, 2, out_samples,
106 * out_samples = swr_convert(swr, &output, out_samples,
108 * handle_output(output, out_samples);
109 * av_freep(&output);
178 * is opaque. This means that if you would like to set options, you must use
179 * the @ref avoptions API and cannot directly set values to members of the
201 * If you use this function you will need to set the parameters (manually or
210 * Initialize context after user parameters have been set.
231 * Allocate SwrContext if needed and set/reset common parameters.
234 * other hand, swr_alloc() can use swr_alloc_set_opts() to set the parameters
238 * @param out_ch_layout output channel layout (AV_CH_LAYOUT_*)
239 * @param out_sample_fmt output sample format (AV_SAMPLE_FMT_*).
240 * @param out_sample_rate output sample rate (frequency in Hz)
263 * Free the given SwrContext and set the pointer to NULL.
290 * in and in_count can be set to 0 to flush the last few samples out at the
293 * If more input is provided than output space, then the input will be buffered.
295 * upper bound on the required number of output samples for the given number of
298 * @param s allocated Swr context, with parameters set
299 * @param out output buffers, only the first one need be set in case of packed audio
300 * @param out_count amount of space available for output in samples per channel
301 * @param in input buffers, only the first one need to be set in case of packed audio
304 * @return number of samples output per channel, negative value on error
310 * Convert the next timestamp from input to output
317 * in this case the output timestamps will match output sample numbers.
318 * See ffmpeg-resampler(1) for the two modes of compensation.
324 * @return the output timestamp for the next output sample
331 * @name Low-level option setting functions
332 * These functons provide a means to set low-level options that is not possible
342 * or SWR_FLAG_RESAMPLE is not set, swr_init() is
343 * called with the flag set.
356 * Set a customized input channel mapping.
360 * indexes, -1 for a muted channel)
373 * @param out_layout output channel layout
376 * @param lfe_mix_level mix level for the low-frequency effects channel
381 * the weight of input channel i in output channel o.
396 * Set a customized remix matrix.
400 * the weight of input channel i in output channel o
414 * Drops the specified number of output samples.
440 * Gets the delay the next input sample will experience relative to the next output sample.
443 * output space, also converting between sample rates needs a delay.
446 * output sample rate. Especially when downsampling by a large value, the
447 * output sample rate may be a poor choice to represent the delay, similarly
452 * @li if it's set to 1 the returned delay is in seconds
453 * @li if it's set to 1000 the returned delay is in milliseconds
454 * @li if it's set to the input sample rate then the returned
456 * @li if it's set to the output sample rate then the returned
457 * delay is in output samples
459 * out_sample_rate then an exact rounding-free delay will be
467 * call will output, if called with in_samples of input samples. This
479 * will output or a negative value to indicate an error
493 * This is useful to check if the build-time libswresample has the same version
494 * as the run-time one.
496 * @returns the unsigned int-typed version
501 * Return the swr build-time configuration.
503 * @returns the build-time @c ./configure flags
510 * @returns the license of libswresample, determined at build-time
522 * Convert the samples in the input AVFrame and write them to the output AVFrame.
524 * Input and output AVFrames must have channel_layout, sample_rate and format set.
526 * If the output AVFrame does not have the data pointers allocated the nb_samples
527 * field will be set using av_frame_get_buffer()
530 * The output AVFrame can be NULL or have fewer allocated samples than required.
531 * In this case, any remaining samples not written to the output will be added
537 * remaining samples. To get this data as output, call this function or
540 * If the SwrContext configuration does not match the output and
543 * or the result of a bitwise-OR of them is returned.
550 * @param output output AVFrame
556 AVFrame *output, const AVFrame *input);
568 * @param output output AVFrame