#include <swresample_internal.h>
Data Fields | |
| const AVClass * | av_class |
| AVClass used for AVOption and av_log(). | |
| int | log_level_offset |
| logging level offset | |
| void * | log_ctx |
| parent logging context | |
| enum AVSampleFormat | in_sample_fmt |
| input sample format | |
| enum AVSampleFormat | int_sample_fmt |
| internal sample format (AV_SAMPLE_FMT_FLTP or AV_SAMPLE_FMT_S16P) | |
| enum AVSampleFormat | out_sample_fmt |
| output sample format | |
| int64_t | in_ch_layout |
| input channel layout | |
| int64_t | out_ch_layout |
| output channel layout | |
| int | in_sample_rate |
| input sample rate | |
| int | out_sample_rate |
| output sample rate | |
| int | flags |
| miscellaneous flags such as SWR_FLAG_RESAMPLE | |
| float | slev |
| surround mixing level | |
| float | clev |
| center mixing level | |
| float | lfe_mix_level |
| LFE mixing level. | |
| float | rematrix_volume |
| rematrixing volume coefficient | |
| enum AVMatrixEncoding | matrix_encoding |
| matrixed stereo encoding | |
| const int * | channel_map |
| channel index (or -1 if muted channel) map | |
| int | used_ch_count |
| number of used input channels (mapped channel count if channel_map, otherwise in.ch_count) | |
| enum SwrDitherType | dither_method |
| int | dither_pos |
| float | dither_scale |
| int | filter_size |
| length of each FIR filter in the resampling filterbank relative to the cutoff frequency | |
| int | phase_shift |
| log2 of the number of entries in the resampling polyphase filterbank | |
| int | linear_interp |
| if 1 then the resampling FIR filter will be linearly interpolated | |
| double | cutoff |
| resampling cutoff frequency. | |
| enum SwrFilterType | filter_type |
| resampling filter type | |
| int | kaiser_beta |
| beta value for Kaiser window (only applicable if filter_type == AV_FILTER_TYPE_KAISER) | |
| float | min_compensation |
| minimum below which no compensation will happen | |
| float | min_hard_compensation |
| minimum below which no silence inject / sample drop will happen | |
| float | soft_compensation_duration |
| duration over which soft compensation is applied | |
| float | max_soft_compensation |
| maximum soft compensation in seconds over soft_compensation_duration | |
| int | resample_first |
| 1 if resampling must come first, 0 if rematrixing | |
| int | rematrix |
| flag to indicate if rematrixing is needed (basically if input and output layouts mismatch) | |
| int | rematrix_custom |
| flag to indicate that a custom matrix has been defined | |
| AudioData | in |
| input audio data | |
| AudioData | postin |
| post-input audio data: used for rematrix/resample | |
| AudioData | midbuf |
| intermediate audio data (postin/preout) | |
| AudioData | preout |
| pre-output audio data: used for rematrix/resample | |
| AudioData | out |
| converted output audio data | |
| AudioData | in_buffer |
| cached audio data (convert and resample purpose) | |
| AudioData | dither |
| noise used for dithering | |
| int | in_buffer_index |
| cached buffer position | |
| int | in_buffer_count |
| cached buffer length | |
| int | resample_in_constraint |
| 1 if the input end was reach before the output end, 0 otherwise | |
| int | flushed |
| 1 if data is to be flushed and no further input is expected | |
| int64_t | outpts |
| output PTS | |
| int | drop_output |
| number of output samples to drop | |
| struct AudioConvert * | in_convert |
| input conversion context | |
| struct AudioConvert * | out_convert |
| output conversion context | |
| struct AudioConvert * | full_convert |
| full conversion context (single conversion for input and output) | |
| struct ResampleContext * | resample |
| resampling context | |
| float | matrix [SWR_CH_MAX][SWR_CH_MAX] |
| floating point rematrixing coefficients | |
| uint8_t * | native_matrix |
| uint8_t * | native_one |
| uint8_t * | native_simd_matrix |
| int32_t | matrix32 [SWR_CH_MAX][SWR_CH_MAX] |
| 17.15 fixed point rematrixing coefficients | |
| uint8_t | matrix_ch [SWR_CH_MAX][SWR_CH_MAX+1] |
| Lists of input channels per output channel that have non zero rematrixing coefficients. | |
| mix_1_1_func_type * | mix_1_1_f |
| mix_1_1_func_type * | mix_1_1_simd |
| mix_2_1_func_type * | mix_2_1_f |
| mix_2_1_func_type * | mix_2_1_simd |
| mix_any_func_type * | mix_any_f |
Definition at line 44 of file swresample_internal.h.
| const AVClass* SwrContext::av_class |
AVClass used for AVOption and av_log().
Definition at line 45 of file swresample_internal.h.
Referenced by swr_alloc().
| const int* SwrContext::channel_map |
channel index (or -1 if muted channel) map
Definition at line 61 of file swresample_internal.h.
Referenced by swr_convert_internal(), swr_init(), and swr_set_channel_mapping().
| float SwrContext::clev |
center mixing level
Definition at line 57 of file swresample_internal.h.
Referenced by auto_matrix().
| double SwrContext::cutoff |
resampling cutoff frequency.
1.0 corresponds to half the output sample rate
Definition at line 69 of file swresample_internal.h.
Referenced by swr_init().
noise used for dithering
Definition at line 88 of file swresample_internal.h.
Referenced by swr_convert_internal(), swr_free(), and swr_init().
Definition at line 63 of file swresample_internal.h.
Referenced by swr_convert_internal(), swr_init(), and swri_get_dither().
| float SwrContext::dither_scale |
number of output samples to drop
Definition at line 94 of file swresample_internal.h.
Referenced by swr_convert(), and swr_drop_output().
length of each FIR filter in the resampling filterbank relative to the cutoff frequency
Definition at line 66 of file swresample_internal.h.
Referenced by swr_init().
resampling filter type
Definition at line 70 of file swresample_internal.h.
Referenced by swr_init().
miscellaneous flags such as SWR_FLAG_RESAMPLE
Definition at line 55 of file swresample_internal.h.
Referenced by swr_init(), and swr_set_compensation().
1 if data is to be flushed and no further input is expected
Definition at line 92 of file swresample_internal.h.
Referenced by swr_convert(), and swr_init().
struct AudioConvert* SwrContext::full_convert [read] |
full conversion context (single conversion for input and output)
Definition at line 98 of file swresample_internal.h.
Referenced by swr_convert_internal(), swr_free(), and swr_init().
input audio data
Definition at line 82 of file swresample_internal.h.
Referenced by resample(), swr_convert(), swr_convert_internal(), swr_init(), and swr_inject_silence().
cached audio data (convert and resample purpose)
Definition at line 87 of file swresample_internal.h.
Referenced by resample(), swr_convert(), swr_free(), and swr_init().
cached buffer length
Definition at line 90 of file swresample_internal.h.
Referenced by resample(), swr_convert(), swr_get_delay(), and swr_init().
cached buffer position
Definition at line 89 of file swresample_internal.h.
Referenced by resample(), swr_convert(), and swr_init().
| int64_t SwrContext::in_ch_layout |
input channel layout
Definition at line 51 of file swresample_internal.h.
Referenced by auto_matrix(), swr_init(), swr_set_matrix(), and swri_rematrix_init().
struct AudioConvert* SwrContext::in_convert [read] |
input conversion context
Definition at line 96 of file swresample_internal.h.
Referenced by swr_convert_internal(), swr_free(), swr_init(), swr_set_channel_mapping(), and swr_set_matrix().
input sample format
Definition at line 48 of file swresample_internal.h.
Referenced by swr_convert_internal(), and swr_init().
input sample rate
Definition at line 53 of file swresample_internal.h.
Referenced by swr_convert(), swr_get_delay(), swr_init(), and swr_next_pts().
internal sample format (AV_SAMPLE_FMT_FLTP or AV_SAMPLE_FMT_S16P)
Definition at line 49 of file swresample_internal.h.
Referenced by auto_matrix(), swr_convert_internal(), swr_init(), and swri_rematrix().
beta value for Kaiser window (only applicable if filter_type == AV_FILTER_TYPE_KAISER)
Definition at line 71 of file swresample_internal.h.
Referenced by swr_init().
if 1 then the resampling FIR filter will be linearly interpolated
Definition at line 68 of file swresample_internal.h.
Referenced by swr_init().
| void* SwrContext::log_ctx |
parent logging context
Definition at line 47 of file swresample_internal.h.
Referenced by swr_alloc_set_opts().
logging level offset
Definition at line 46 of file swresample_internal.h.
Referenced by swr_alloc_set_opts().
| float SwrContext::matrix[SWR_CH_MAX][SWR_CH_MAX] |
floating point rematrixing coefficients
Definition at line 101 of file swresample_internal.h.
Referenced by auto_matrix(), swr_set_matrix(), swri_rematrix(), and swri_rematrix_init().
| int32_t SwrContext::matrix32[SWR_CH_MAX][SWR_CH_MAX] |
17.15 fixed point rematrixing coefficients
Definition at line 105 of file swresample_internal.h.
Referenced by swri_rematrix(), and swri_rematrix_init().
| uint8_t SwrContext::matrix_ch[SWR_CH_MAX][SWR_CH_MAX+1] |
Lists of input channels per output channel that have non zero rematrixing coefficients.
Definition at line 106 of file swresample_internal.h.
Referenced by swri_rematrix(), and swri_rematrix_init().
matrixed stereo encoding
Definition at line 60 of file swresample_internal.h.
Referenced by auto_matrix().
maximum soft compensation in seconds over soft_compensation_duration
Definition at line 76 of file swresample_internal.h.
Referenced by swr_next_pts().
intermediate audio data (postin/preout)
Definition at line 84 of file swresample_internal.h.
Referenced by swr_convert_internal(), swr_free(), swr_init(), and swri_rematrix_init().
minimum below which no compensation will happen
Definition at line 73 of file swresample_internal.h.
Referenced by swr_next_pts().
minimum below which no silence inject / sample drop will happen
Definition at line 74 of file swresample_internal.h.
Referenced by swr_next_pts().
Definition at line 107 of file swresample_internal.h.
Referenced by swri_rematrix(), and swri_rematrix_init().
Definition at line 110 of file swresample_internal.h.
Referenced by swr_convert_internal(), swri_rematrix(), and swri_rematrix_init().
Definition at line 113 of file swresample_internal.h.
Referenced by swri_rematrix(), and swri_rematrix_init().
Definition at line 102 of file swresample_internal.h.
Referenced by swri_rematrix(), swri_rematrix_free(), and swri_rematrix_init().
Definition at line 103 of file swresample_internal.h.
Referenced by swr_convert_internal(), swri_rematrix_free(), and swri_rematrix_init().
Definition at line 104 of file swresample_internal.h.
Referenced by swri_rematrix(), and swri_rematrix_free().
converted output audio data
Definition at line 86 of file swresample_internal.h.
Referenced by resample(), swr_convert(), swr_convert_internal(), and swr_init().
| int64_t SwrContext::out_ch_layout |
output channel layout
Definition at line 52 of file swresample_internal.h.
Referenced by auto_matrix(), swr_alloc_set_opts(), swr_init(), swr_set_matrix(), swri_rematrix(), and swri_rematrix_init().
struct AudioConvert* SwrContext::out_convert [read] |
output conversion context
Definition at line 97 of file swresample_internal.h.
Referenced by swr_convert_internal(), swr_free(), and swr_init().
output sample format
Definition at line 50 of file swresample_internal.h.
Referenced by auto_matrix(), swr_convert_internal(), and swr_init().
output sample rate
Definition at line 54 of file swresample_internal.h.
Referenced by swr_init(), and swr_next_pts().
| int64_t SwrContext::outpts |
output PTS
Definition at line 93 of file swresample_internal.h.
Referenced by filter_samples(), swr_convert(), and swr_next_pts().
log2 of the number of entries in the resampling polyphase filterbank
Definition at line 67 of file swresample_internal.h.
Referenced by swr_init().
post-input audio data: used for rematrix/resample
Definition at line 83 of file swresample_internal.h.
Referenced by swr_convert_internal(), swr_free(), and swr_init().
pre-output audio data: used for rematrix/resample
Definition at line 85 of file swresample_internal.h.
Referenced by swr_convert_internal(), swr_free(), and swr_init().
flag to indicate if rematrixing is needed (basically if input and output layouts mismatch)
Definition at line 79 of file swresample_internal.h.
Referenced by swr_convert_internal(), and swr_init().
flag to indicate that a custom matrix has been defined
Definition at line 80 of file swresample_internal.h.
Referenced by swr_init(), swr_set_matrix(), and swri_rematrix_init().
rematrixing volume coefficient
Definition at line 59 of file swresample_internal.h.
Referenced by auto_matrix(), and swr_init().
struct ResampleContext* SwrContext::resample [read] |
resampling context
Definition at line 99 of file swresample_internal.h.
Referenced by resample(), swr_convert(), swr_convert_internal(), swr_free(), swr_get_delay(), swr_init(), and swr_set_compensation().
1 if resampling must come first, 0 if rematrixing
Definition at line 78 of file swresample_internal.h.
Referenced by swr_convert_internal(), and swr_init().
1 if the input end was reach before the output end, 0 otherwise
Definition at line 91 of file swresample_internal.h.
Referenced by resample(), swr_convert(), and swr_init().
| float SwrContext::slev |
surround mixing level
Definition at line 56 of file swresample_internal.h.
Referenced by auto_matrix().
duration over which soft compensation is applied
Definition at line 75 of file swresample_internal.h.
Referenced by swr_next_pts().
number of used input channels (mapped channel count if channel_map, otherwise in.ch_count)
Definition at line 62 of file swresample_internal.h.
Referenced by swr_convert_internal(), and swr_init().
1.5.8