This page is documenting a work in progress feature do not assume it is available on the mainline branch.
AVResample is getting extended and some resamplers and mixers have additional parameters that can be user-tuned. In order to match AVScale an AVFrame-based API will be introduced.
The API extension includes
- A new function, with slightly different semantics, to configure/reconfigure the resampling context passing extended options.
- A set of AVFrame based function to have a simplified setup.
The new avresample_open2() will match the similarly-named functions in AVCodec and AVFormat.
int avresample_open2(AVAudioResampleContext *avr, AVDictionary **opts);
AVFrame based API
The main focus had been to simplify the setup and make AVResample simpler to use.
int avresample_open_frame(AVAudioResampleContext *avr, AVFrame *out, AVFrame *in, AVDictionary **opts); int avresample_convert_frame(AVAudioResampleContext *avr, AVFrame *out, AVFrame *in);