Dithering algorithms
Resampling Engines
Resampling Filter Types
Allocate SwrContext.
Allocate SwrContext if needed and set/reset common parameters.
Generate a channel mixing matrix.
Closes the context so that swr_is_initialized() returns 0.
Configure or reconfigure the SwrContext using the information provided by the AVFrames.
Convert audio.
Convert the samples in the input AVFrame and write them to the output AVFrame.
Drops the specified number of output samples.
Free the given SwrContext and set the pointer to NULL.
Get the AVClass for SwrContext. It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.
Gets the delay the next input sample will experience relative to the next output sample.
Find an upper bound on the number of samples that the next swr_convert call will output, if called with in_samples of input samples. This depends on the internal state, and anything changing the internal state (like further swr_convert() calls) will may change the number of samples swr_get_out_samples() returns for the same number of input samples.
Initialize context after user parameters have been set. @note The context must be configured using the AVOption API.
Injects the specified number of silence samples.
Check whether an swr context has been initialized or not.
Convert the next timestamp from input to output timestamps are in 1/(in_sample_rate * out_sample_rate) units.
Set a customized input channel mapping.
Activate resampling compensation ("soft" compensation). This function is internally called when needed in swr_next_pts().
Set a customized remix matrix.
Return the swr build-time configuration.
Return the swr license.
Return the @ref LIBSWRESAMPLE_VERSION_INT constant.
* @name Option constants * These constants are used for the @ref avoptions interface for lswr. * @{ * *////< Force resampling even if equal sample rat
The libswresample context. Unlike libavcodec and libavformat, this structure is opaque. This means that if you would like to set options, you must use the @ref avoptions API and cannot directly set values to members of the structure.