Go to the documentation of this file.
21 #ifndef AVRESAMPLE_INTERNAL_H
22 #define AVRESAMPLE_INTERNAL_H
enum AVSampleFormat in_sample_fmt
input sample format
double * mix_matrix
mix matrix only used if avresample_set_matrix() is called before avresample_open()
int in_convert_needed
input sample format conversion is needed
int filter_size
length of each FIR filter in the resampling filterbank relative to the cutoff frequency
double lfe_mix_level
lfe mix level
int downmix_needed
downmixing is needed
#define AVRESAMPLE_MAX_CHANNELS
void ff_audio_resample_init_aarch64(ResampleContext *c, enum AVSampleFormat sample_fmt)
int out_channels
number of output channels
enum AVMatrixEncoding matrix_encoding
matrixed stereo encoding
void ff_audio_resample_init_arm(ResampleContext *c, enum AVSampleFormat sample_fmt)
Audio buffer used for intermediate storage between conversion phases.
Context for an Audio FIFO Buffer.
ChannelMapInfo ch_map_info
int linear_interp
if 1 then the resampling FIR filter will be linearly interpolated
double cutoff
resampling cutoff frequency.
enum attribute_deprecated AVMixCoeffType
AudioData * in_buffer
buffer for converted input
AudioConvert * ac_out
output sample format conversion context
int channel_map[AVRESAMPLE_MAX_CHANNELS]
source index of each output channel, -1 if not remapped
enum AVResampleFilterType filter_type
resampling filter type
AudioConvert * ac_in
input sample format conversion context
const AVClass * av_class
AVClass for logging and AVOptions
int in_copy_needed
input data copy is needed
int upmix_needed
upmixing is needed
Describe the class of an AVClass context structure.
int out_convert_needed
output sample format conversion is needed
double surround_mix_level
surround mix level
AudioData * resample_out_buffer
buffer for output from resampler
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
enum attribute_deprecated AVResampleFilterType
ResampleContext * resample
resampling context
int channel_copy[AVRESAMPLE_MAX_CHANNELS]
dest index to copy from
int force_resampling
force resampling
int out_sample_rate
output sample rate
AudioMix * am
channel mixing context
enum AVResampleDitherMethod dither_method
dither method
int kaiser_beta
beta value for Kaiser window (only applicable if filter_type == AV_FILTER_TYPE_KAISER)
enum AVSampleFormat out_sample_fmt
output sample format
uint64_t in_channel_layout
input channel layout
int in_channels
number of input channels
int in_sample_rate
input sample rate
double center_mix_level
center mix level
AVSampleFormat
Audio sample formats.
int resample_needed
resampling is needed
int input_map[AVRESAMPLE_MAX_CHANNELS]
dest index of each input channel
AVAudioFifo * out_fifo
FIFO for output samples
AudioData * out_buffer
buffer for converted output
enum AVSampleFormat internal_sample_fmt
internal sample format
enum RemapPoint remap_point
int phase_shift
log2 of the number of entries in the resampling polyphase filterbank
enum attribute_deprecated AVResampleDitherMethod
int mixing_needed
either upmixing or downmixing is needed
int channel_zero[AVRESAMPLE_MAX_CHANNELS]
dest index to zero
enum AVMixCoeffType mix_coeff_type
mixing coefficient type
int resample_channels
number of channels used for resampling
int do_zero
zeroing needed
int normalize_mix_level
enable mix level normalization
uint64_t out_channel_layout
output channel layout