ffmpeg.libavresample.avresample

Undocumented in source.

Members

Enums

AVMixCoeffType
enum AVMixCoeffType

Mixing Coefficient Types

AVResampleDitherMethod
enum AVResampleDitherMethod
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
AVResampleFilterType
enum AVResampleFilterType

Resampling Filter Types

Functions

avresample_alloc_context
AVAudioResampleContext* avresample_alloc_context()

Allocate AVAudioResampleContext and set options.

avresample_available
int avresample_available(AVAudioResampleContext* avr)

Return the number of available samples in the output FIFO.

avresample_build_matrix
int avresample_build_matrix(uint64_t in_layout, uint64_t out_layout, double center_mix_level, double surround_mix_level, double lfe_mix_level, int normalize, double* matrix, int stride, AVMatrixEncoding matrix_encoding)

Generate a channel mixing matrix.

avresample_close
void avresample_close(AVAudioResampleContext* avr)

Close AVAudioResampleContext.

avresample_config
int avresample_config(AVAudioResampleContext* avr, AVFrame* output, AVFrame* input)

Configure or reconfigure the AVAudioResampleContext using the information provided by the AVFrames.

avresample_configuration
char* avresample_configuration()

Return the libavresample build-time configuration. @return configure string

avresample_convert
int avresample_convert(AVAudioResampleContext* avr, uint8_t** output, int out_plane_size, int out_samples, uint8_t** input, int in_plane_size, int in_samples)

Convert input samples and write them to the output FIFO.

avresample_convert_frame
int avresample_convert_frame(AVAudioResampleContext* avr, AVFrame* output, AVFrame* input)

Convert the samples in the input AVFrame and write them to the output AVFrame.

avresample_free
void avresample_free(AVAudioResampleContext** avr)

Free AVAudioResampleContext and associated AVOption values.

avresample_get_class
AVClass* avresample_get_class()

Get the AVClass for AVAudioResampleContext.

avresample_get_delay
int avresample_get_delay(AVAudioResampleContext* avr)

Return the number of samples currently in the resampling delay buffer.

avresample_get_matrix
int avresample_get_matrix(AVAudioResampleContext* avr, double* matrix, int stride)

Get the current channel mixing matrix.

avresample_get_out_samples
int avresample_get_out_samples(AVAudioResampleContext* avr, int in_nb_samples)

Provide the upper bound on the number of samples the configured conversion would output.

avresample_is_open
int avresample_is_open(AVAudioResampleContext* avr)

Check whether an AVAudioResampleContext is open or closed.

avresample_license
char* avresample_license()

Return the libavresample license.

avresample_open
int avresample_open(AVAudioResampleContext* avr)

Initialize AVAudioResampleContext. @note The context must be configured using the AVOption API. @note The fields "in_channel_layout", "out_channel_layout", "in_sample_rate", "out_sample_rate", "in_sample_fmt", "out_sample_fmt" must be set.

avresample_read
int avresample_read(AVAudioResampleContext* avr, uint8_t** output, int nb_samples)

Read samples from the output FIFO.

avresample_set_channel_mapping
int avresample_set_channel_mapping(AVAudioResampleContext* avr, int* channel_map)

Set a customized input channel mapping.

avresample_set_compensation
int avresample_set_compensation(AVAudioResampleContext* avr, int sample_delta, int compensation_distance)

Set compensation for resampling.

avresample_set_matrix
int avresample_set_matrix(AVAudioResampleContext* avr, double* matrix, int stride)

Set channel mixing matrix.

avresample_version
uint avresample_version()

@defgroup libavresample Color conversion and scaling @{

Manifest constants

AVRESAMPLE_MAX_CHANNELS
enum AVRESAMPLE_MAX_CHANNELS;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

AVAudioResampleContext
struct AVAudioResampleContext
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta