FFmpeg  4.0
Macros | Functions | Variables
avresample.h File Reference

external API header More...

#include "libavutil/avutil.h"
#include "libavutil/channel_layout.h"
#include "libavutil/dict.h"
#include "libavutil/frame.h"
#include "libavutil/log.h"
#include "libavutil/mathematics.h"
#include "libavresample/version.h"

Go to the source code of this file.

Macros

#define AVRESAMPLE_MAX_CHANNELS   32
 

Functions

attribute_deprecated unsigned avresample_version (void)
 
attribute_deprecated const char * avresample_configuration (void)
 
attribute_deprecated const char * avresample_license (void)
 
attribute_deprecated const AVClassavresample_get_class (void)
 
attribute_deprecated AVAudioResampleContextavresample_alloc_context (void)
 
attribute_deprecated int avresample_open (AVAudioResampleContext *avr)
 
attribute_deprecated int avresample_is_open (AVAudioResampleContext *avr)
 
attribute_deprecated void avresample_close (AVAudioResampleContext *avr)
 
attribute_deprecated void avresample_free (AVAudioResampleContext **avr)
 
attribute_deprecated 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)
 
attribute_deprecated int avresample_get_matrix (AVAudioResampleContext *avr, double *matrix, int stride)
 
attribute_deprecated int avresample_set_matrix (AVAudioResampleContext *avr, const double *matrix, int stride)
 
attribute_deprecated int avresample_set_channel_mapping (AVAudioResampleContext *avr, const int *channel_map)
 
attribute_deprecated int avresample_set_compensation (AVAudioResampleContext *avr, int sample_delta, int compensation_distance)
 
attribute_deprecated int avresample_get_out_samples (AVAudioResampleContext *avr, int in_nb_samples)
 
attribute_deprecated int avresample_convert (AVAudioResampleContext *avr, uint8_t **output, int out_plane_size, int out_samples, uint8_t *const *input, int in_plane_size, int in_samples)
 
attribute_deprecated int avresample_get_delay (AVAudioResampleContext *avr)
 
attribute_deprecated int avresample_available (AVAudioResampleContext *avr)
 
attribute_deprecated int avresample_read (AVAudioResampleContext *avr, uint8_t **output, int nb_samples)
 
attribute_deprecated int avresample_convert_frame (AVAudioResampleContext *avr, AVFrame *output, AVFrame *input)
 
attribute_deprecated int avresample_config (AVAudioResampleContext *avr, AVFrame *out, AVFrame *in)
 

Variables

enum attribute_deprecated AVMixCoeffType
 
 AV_MIX_COEFF_TYPE_Q8
 
 AV_MIX_COEFF_TYPE_Q15
 16-bit 8.8 fixed-point More...
 
 AV_MIX_COEFF_TYPE_FLT
 32-bit 17.15 fixed-point More...
 
 AV_MIX_COEFF_TYPE_NB
 floating-point More...
 
enum attribute_deprecated AVResampleFilterType
 
 AV_RESAMPLE_FILTER_TYPE_CUBIC
 Cubic. More...
 
 AV_RESAMPLE_FILTER_TYPE_BLACKMAN_NUTTALL
 Blackman Nuttall Windowed Sinc. More...
 
 AV_RESAMPLE_FILTER_TYPE_KAISER
 Kaiser Windowed Sinc. More...
 
enum attribute_deprecated AVResampleDitherMethod
 
 AV_RESAMPLE_DITHER_NONE
 Do not use dithering. More...
 
 AV_RESAMPLE_DITHER_RECTANGULAR
 Rectangular Dither. More...
 
 AV_RESAMPLE_DITHER_TRIANGULAR
 Triangular Dither. More...
 
 AV_RESAMPLE_DITHER_TRIANGULAR_HP
 Triangular Dither with High Pass. More...
 
 AV_RESAMPLE_DITHER_TRIANGULAR_NS
 Triangular Dither with Noise Shaping. More...
 
 AV_RESAMPLE_DITHER_NB
 Number of dither types. More...
 

Detailed Description

external API header

Definition in file avresample.h.

Variable Documentation

◆ AV_MIX_COEFF_TYPE_Q8

AV_MIX_COEFF_TYPE_Q8

◆ AV_MIX_COEFF_TYPE_Q15

AV_MIX_COEFF_TYPE_Q15

16-bit 8.8 fixed-point

Definition at line 113 of file avresample.h.

Referenced by ff_audio_mix_get_matrix(), ff_audio_mix_set_matrix(), and mix_function_init().

◆ AV_MIX_COEFF_TYPE_FLT

AV_MIX_COEFF_TYPE_FLT

32-bit 17.15 fixed-point

Definition at line 113 of file avresample.h.

Referenced by ff_audio_mix_get_matrix(), ff_audio_mix_init_x86(), ff_audio_mix_set_matrix(), and mix_function_init().

◆ AV_MIX_COEFF_TYPE_NB

AV_MIX_COEFF_TYPE_NB

floating-point

Definition at line 113 of file avresample.h.

◆ AV_RESAMPLE_FILTER_TYPE_CUBIC

AV_RESAMPLE_FILTER_TYPE_CUBIC

Cubic.

Definition at line 124 of file avresample.h.

Referenced by build_filter().

◆ AV_RESAMPLE_FILTER_TYPE_BLACKMAN_NUTTALL

AV_RESAMPLE_FILTER_TYPE_BLACKMAN_NUTTALL

Blackman Nuttall Windowed Sinc.

Definition at line 124 of file avresample.h.

Referenced by build_filter().

◆ AV_RESAMPLE_FILTER_TYPE_KAISER

AV_RESAMPLE_FILTER_TYPE_KAISER

Kaiser Windowed Sinc.

Definition at line 124 of file avresample.h.

Referenced by build_filter().

◆ AV_RESAMPLE_DITHER_NONE

AV_RESAMPLE_DITHER_NONE

Do not use dithering.

Definition at line 133 of file avresample.h.

◆ AV_RESAMPLE_DITHER_RECTANGULAR

AV_RESAMPLE_DITHER_RECTANGULAR

Rectangular Dither.

Definition at line 133 of file avresample.h.

Referenced by dither_init(), ff_dither_init_x86(), and generate_dither_noise().

◆ AV_RESAMPLE_DITHER_TRIANGULAR

AV_RESAMPLE_DITHER_TRIANGULAR

Triangular Dither.

Definition at line 133 of file avresample.h.

◆ AV_RESAMPLE_DITHER_TRIANGULAR_HP

AV_RESAMPLE_DITHER_TRIANGULAR_HP

Triangular Dither with High Pass.

Definition at line 133 of file avresample.h.

Referenced by ff_dither_alloc(), and generate_dither_noise().

◆ AV_RESAMPLE_DITHER_TRIANGULAR_NS

AV_RESAMPLE_DITHER_TRIANGULAR_NS

Triangular Dither with Noise Shaping.

Definition at line 133 of file avresample.h.

Referenced by convert_samples(), ff_convert_dither(), and ff_dither_alloc().

◆ AV_RESAMPLE_DITHER_NB

AV_RESAMPLE_DITHER_NB

Number of dither types.

Not part of ABI.

Definition at line 133 of file avresample.h.