The libswresample context. More...
#include <swresample_internal.h>
The libswresample context.
Unlike libavcodec and libavformat, this structure is opaque. This means that if you would like to set options, you must use the AVOptions API and cannot directly set values to members of the structure.
Definition at line 93 of file swresample_internal.h.
AVClass used for AVOption and av_log()
Definition at line 94 of file swresample_internal.h.
Referenced by swr_alloc().
logging level offset
Definition at line 95 of file swresample_internal.h.
Referenced by swr_alloc_set_opts().
parent logging context
Definition at line 96 of file swresample_internal.h.
Referenced by swr_alloc_set_opts().
input sample format
Definition at line 97 of file swresample_internal.h.
Referenced by config_changed(), main(), swr_convert_internal(), and swr_init().
internal sample format (AV_SAMPLE_FMT_FLTP or AV_SAMPLE_FMT_S16P)
Definition at line 98 of file swresample_internal.h.
Referenced by auto_matrix(), swr_convert_internal(), swr_init(), and swri_rematrix().
output sample format
Definition at line 99 of file swresample_internal.h.
Referenced by auto_matrix(), config_changed(), swr_convert_internal(), and swr_init().
input channel layout
Definition at line 100 of file swresample_internal.h.
Referenced by auto_matrix(), config_changed(), swr_init(), swr_set_matrix(), and swri_rematrix_init().
output channel layout
Definition at line 101 of file swresample_internal.h.
Referenced by auto_matrix(), config_changed(), swr_alloc_set_opts(), swr_init(), swr_set_matrix(), swri_rematrix(), and swri_rematrix_init().
input sample rate
Definition at line 102 of file swresample_internal.h.
Referenced by config_changed(), get_delay(), swr_convert(), swr_convert_frame(), swr_get_delay(), swr_init(), and swr_next_pts().
output sample rate
Definition at line 103 of file swresample_internal.h.
Referenced by config_changed(), get_delay(), swr_convert_frame(), swr_init(), swr_next_pts(), and swri_dither_init().
miscellaneous flags such as SWR_FLAG_RESAMPLE
Definition at line 104 of file swresample_internal.h.
Referenced by swr_init(), and swr_set_compensation().
surround mixing level
Definition at line 105 of file swresample_internal.h.
Referenced by auto_matrix().
center mixing level
Definition at line 106 of file swresample_internal.h.
Referenced by auto_matrix().
LFE mixing level.
Definition at line 107 of file swresample_internal.h.
Referenced by auto_matrix().
rematrixing volume coefficient
Definition at line 108 of file swresample_internal.h.
Referenced by auto_matrix(), and swr_init().
maximum value for rematrixing output
Definition at line 109 of file swresample_internal.h.
Referenced by auto_matrix().
matrixed stereo encoding
Definition at line 110 of file swresample_internal.h.
Referenced by auto_matrix().
channel index (or -1 if muted channel) map
Definition at line 111 of file swresample_internal.h.
Referenced by ff_opus_parse_extradata(), swr_convert_internal(), swr_init(), and swr_set_channel_mapping().
number of used input channels (mapped channel count if channel_map, otherwise in.ch_count)
Definition at line 112 of file swresample_internal.h.
Referenced by swr_convert_internal(), and swr_init().
Definition at line 113 of file swresample_internal.h.
Referenced by resample(), and swr_init().
Definition at line 115 of file swresample_internal.h.
Referenced by clear_context(), swr_convert_internal(), swr_init(), swri_dither_init(), and swri_get_dither().
length of each FIR filter in the resampling filterbank relative to the cutoff frequency
Definition at line 117 of file swresample_internal.h.
Referenced by swr_init().
log2 of the number of entries in the resampling polyphase filterbank
Definition at line 118 of file swresample_internal.h.
Referenced by swr_init().
if 1 then the resampling FIR filter will be linearly interpolated
Definition at line 119 of file swresample_internal.h.
Referenced by swr_init().
resampling cutoff frequency (swr: 6dB point; soxr: 0dB point).
1.0 corresponds to half the output sample rate
Definition at line 120 of file swresample_internal.h.
Referenced by swr_init().
swr resampling filter type
Definition at line 121 of file swresample_internal.h.
Referenced by swr_init().
swr beta value for Kaiser window (only applicable if filter_type == AV_FILTER_TYPE_KAISER)
Definition at line 122 of file swresample_internal.h.
Referenced by swr_init().
soxr resampling precision (in bits)
Definition at line 123 of file swresample_internal.h.
Referenced by swr_init().
soxr: if 1 then passband rolloff will be none (Chebyshev) & irrational ratio approximation precision will be higher
Definition at line 124 of file swresample_internal.h.
Referenced by swr_init().
swr minimum below which no compensation will happen
Definition at line 126 of file swresample_internal.h.
Referenced by swr_init(), and swr_next_pts().
swr minimum below which no silence inject / sample drop will happen
Definition at line 127 of file swresample_internal.h.
Referenced by swr_next_pts().
swr duration over which soft compensation is applied
Definition at line 128 of file swresample_internal.h.
Referenced by swr_next_pts().
swr maximum soft compensation in seconds over soft_compensation_duration
Definition at line 129 of file swresample_internal.h.
Referenced by swr_init(), and swr_next_pts().
swr simple 1 parameter async, similar to ffmpegs -async
Definition at line 130 of file swresample_internal.h.
Referenced by swr_init().
swr first pts in samples
Definition at line 131 of file swresample_internal.h.
Referenced by swr_init().
1 if resampling must come first, 0 if rematrixing
Definition at line 133 of file swresample_internal.h.
Referenced by swr_convert_internal(), and swr_init().
flag to indicate if rematrixing is needed (basically if input and output layouts mismatch)
Definition at line 134 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 135 of file swresample_internal.h.
Referenced by swr_init(), swr_set_matrix(), and swri_rematrix_init().
input audio data
Definition at line 137 of file swresample_internal.h.
Referenced by clear_context(), swr_convert(), swr_convert_internal(), and swr_init().
post-input audio data: used for rematrix/resample
Definition at line 138 of file swresample_internal.h.
Referenced by clear_context(), swr_convert_internal(), and swr_init().
intermediate audio data (postin/preout)
Definition at line 139 of file swresample_internal.h.
Referenced by clear_context(), swr_convert_internal(), swr_init(), and swri_rematrix_init().
pre-output audio data: used for rematrix/resample
Definition at line 140 of file swresample_internal.h.
Referenced by clear_context(), swr_convert_internal(), swr_init(), and swri_dither_init().
converted output audio data
Definition at line 141 of file swresample_internal.h.
Referenced by clear_context(), swr_convert(), swr_convert_internal(), and swr_init().
cached audio data (convert and resample purpose)
Definition at line 142 of file swresample_internal.h.
Referenced by clear_context(), resample(), resample_flush(), swr_convert(), swr_init(), and swr_is_initialized().
temporary with silence
Definition at line 143 of file swresample_internal.h.
Referenced by clear_context(), swr_init(), and swr_inject_silence().
temporary used to discard output
Definition at line 144 of file swresample_internal.h.
Referenced by clear_context(), swr_convert(), and swr_init().
cached buffer position
Definition at line 145 of file swresample_internal.h.
Referenced by clear_context(), resample(), resample_flush(), and swr_convert().
cached buffer length
Definition at line 146 of file swresample_internal.h.
Referenced by clear_context(), get_delay(), resample(), resample_flush(), swr_convert(), and swr_get_delay().
1 if the input end was reach before the output end, 0 otherwise
Definition at line 147 of file swresample_internal.h.
Referenced by clear_context(), resample(), and swr_convert().
1 if data is to be flushed and no further input is expected
Definition at line 148 of file swresample_internal.h.
Referenced by clear_context(), resample(), and swr_convert().
output PTS
Definition at line 149 of file swresample_internal.h.
Referenced by filter_frame(), swr_convert(), swr_init(), and swr_next_pts().
first PTS
Definition at line 150 of file swresample_internal.h.
Referenced by swr_init(), and swr_next_pts().
number of output samples to drop
Definition at line 151 of file swresample_internal.h.
Referenced by swr_convert(), swr_drop_output(), and swr_next_pts().
input conversion context
Definition at line 153 of file swresample_internal.h.
Referenced by clear_context(), swr_convert_internal(), swr_init(), swr_set_channel_mapping(), and swr_set_matrix().
output conversion context
Definition at line 154 of file swresample_internal.h.
Referenced by clear_context(), swr_convert_internal(), and swr_init().
full conversion context (single conversion for input and output)
Definition at line 155 of file swresample_internal.h.
Referenced by clear_context(), swr_convert_internal(), and swr_init().
resampling context
Definition at line 156 of file swresample_internal.h.
Referenced by flush(), get_delay(), resample(), swr_convert(), swr_convert_internal(), swr_free(), swr_get_delay(), swr_init(), and swr_set_compensation().
resampler virtual function table
Definition at line 157 of file swresample_internal.h.
Referenced by resample(), swr_convert(), swr_free(), swr_get_delay(), swr_init(), and swr_set_compensation().
floating point rematrixing coefficients
Definition at line 159 of file swresample_internal.h.
Referenced by auto_matrix(), swr_set_matrix(), swri_rematrix(), and swri_rematrix_init().
Definition at line 160 of file swresample_internal.h.
Referenced by swri_rematrix(), swri_rematrix_free(), and swri_rematrix_init().
Definition at line 161 of file swresample_internal.h.
Referenced by swr_convert_internal(), swri_rematrix_free(), and swri_rematrix_init().
Definition at line 162 of file swresample_internal.h.
Referenced by swr_convert_internal(), and swri_rematrix_free().
Definition at line 163 of file swresample_internal.h.
Referenced by swri_rematrix(), and swri_rematrix_free().
17.15 fixed point rematrixing coefficients
Definition at line 164 of file swresample_internal.h.
Referenced by swri_rematrix(), and swri_rematrix_init().
Lists of input channels per output channel that have non zero rematrixing coefficients.
Definition at line 165 of file swresample_internal.h.
Referenced by swri_rematrix(), and swri_rematrix_init().
Definition at line 166 of file swresample_internal.h.
Referenced by swri_rematrix(), and swri_rematrix_init().
Definition at line 167 of file swresample_internal.h.
Referenced by swri_rematrix().
Definition at line 169 of file swresample_internal.h.
Referenced by swr_convert_internal(), swri_rematrix(), and swri_rematrix_init().
Definition at line 170 of file swresample_internal.h.
Referenced by swr_convert_internal(), and swri_rematrix().
Definition at line 172 of file swresample_internal.h.
Referenced by swri_rematrix(), and swri_rematrix_init().