21 #ifndef AVRESAMPLE_AVRESAMPLE_H
22 #define AVRESAMPLE_AVRESAMPLE_H
103 #define AVRESAMPLE_MAX_CHANNELS 32
289 const int *channel_map);
305 int compensation_distance);
351 int out_plane_size,
int out_samples,
uint8_t **input,
352 int in_plane_size,
int in_samples);
int avresample_read(AVAudioResampleContext *avr, uint8_t **output, int nb_samples)
Read samples from the output FIFO.
int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta, int compensation_distance)
Set compensation for resampling.
int avresample_set_channel_mapping(AVAudioResampleContext *avr, const int *channel_map)
Set a customized input channel mapping.
void avresample_free(AVAudioResampleContext **avr)
Free AVAudioResampleContext and associated AVOption values.
Triangular Dither with Noise Shaping.
double surround_mix_level
surround mix level
const AVClass * avresample_get_class(void)
Get the AVClass for AVAudioResampleContext.
Triangular Dither with High Pass.
const char * avresample_license(void)
Return the libavresample license.
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, enum AVMatrixEncoding matrix_encoding)
Generate a channel mixing matrix.
void avresample_close(AVAudioResampleContext *avr)
Close AVAudioResampleContext.
double center_mix_level
center mix level
AVResampleFilterType
Resampling Filter Types.
audio channel layout utility functions
int avresample_set_matrix(AVAudioResampleContext *avr, const double *matrix, int stride)
Set channel mixing matrix.
int avresample_get_delay(AVAudioResampleContext *avr)
Return the number of samples currently in the resampling delay buffer.
int avresample_get_matrix(AVAudioResampleContext *avr, double *matrix, int stride)
Get the current channel mixing matrix.
int avresample_available(AVAudioResampleContext *avr)
Return the number of available samples in the output FIFO.
const char * avresample_configuration(void)
Return the libavresample build-time configuration.
Describe the class of an AVClass context structure.
Blackman Nuttall Windowed Sinc.
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.
AVAudioResampleContext * avresample_alloc_context(void)
Allocate AVAudioResampleContext and set options.
enum AVMatrixEncoding matrix_encoding
matrixed stereo encoding
AVMixCoeffType
Mixing Coefficient Types.
unsigned avresample_version(void)
Return the LIBAVRESAMPLE_VERSION_INT constant.
Libavresample version macros.
double lfe_mix_level
lfe mix level
int avresample_open(AVAudioResampleContext *avr)
Initialize AVAudioResampleContext.