SwrContext Struct Reference

#include <swresample_internal.h>


Data Fields

const AVClassav_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
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.
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 AudioConvertin_convert
 input conversion context
struct AudioConvertout_convert
 output conversion context
struct AudioConvertfull_convert
 full conversion context (single conversion for input and output)
struct ResampleContextresample
 resampling context
float matrix [SWR_CH_MAX][SWR_CH_MAX]
 floating point rematrixing coefficients
uint8_tnative_matrix
uint8_tnative_one
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_typemix_1_1_f
mix_2_1_func_typemix_2_1_f


Detailed Description

Definition at line 39 of file swresample_internal.h.


Field Documentation

AVClass used for AVOption and av_log().

Definition at line 40 of file swresample_internal.h.

Referenced by swr_alloc().

channel index (or -1 if muted channel) map

Definition at line 55 of file swresample_internal.h.

Referenced by swr_init(), and swr_set_channel_mapping().

center mixing level

Definition at line 52 of file swresample_internal.h.

Referenced by auto_matrix().

resampling cutoff frequency.

1.0 corresponds to half the output sample rate

Definition at line 63 of file swresample_internal.h.

Referenced by swr_init().

noise used for dithering

Definition at line 80 of file swresample_internal.h.

Referenced by swr_convert_internal(), swr_free(), and swr_init().

Definition at line 57 of file swresample_internal.h.

Referenced by swr_convert_internal(), swr_init(), and swri_get_dither().

Definition at line 58 of file swresample_internal.h.

Referenced by swr_convert_internal().

Definition at line 59 of file swresample_internal.h.

Referenced by swri_get_dither().

number of output samples to drop

Definition at line 86 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 60 of file swresample_internal.h.

Referenced by swr_init().

miscellaneous flags such as SWR_FLAG_RESAMPLE

Definition at line 50 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 84 of file swresample_internal.h.

Referenced by swr_convert(), and swr_init().

full conversion context (single conversion for input and output)

Definition at line 90 of file swresample_internal.h.

Referenced by swr_convert_internal(), swr_free(), and swr_init().

input audio data

Definition at line 74 of file swresample_internal.h.

Referenced by resample(), swr_convert(), swr_convert_internal(), and swr_init().

cached audio data (convert and resample purpose)

Definition at line 79 of file swresample_internal.h.

Referenced by resample(), swr_convert(), swr_free(), and swr_init().

cached buffer length

Definition at line 82 of file swresample_internal.h.

Referenced by resample(), swr_convert(), swr_get_delay(), and swr_init().

cached buffer position

Definition at line 81 of file swresample_internal.h.

Referenced by resample(), swr_convert(), and swr_init().

input channel layout

Definition at line 46 of file swresample_internal.h.

Referenced by auto_matrix(), swr_init(), swr_set_matrix(), and swri_rematrix_init().

input conversion context

Definition at line 88 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 43 of file swresample_internal.h.

Referenced by swr_convert_internal(), and swr_init().

input sample rate

Definition at line 48 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 44 of file swresample_internal.h.

Referenced by auto_matrix(), swr_convert_internal(), swr_init(), and swri_rematrix().

LFE mixing level.

Definition at line 53 of file swresample_internal.h.

Referenced by auto_matrix().

if 1 then the resampling FIR filter will be linearly interpolated

Definition at line 62 of file swresample_internal.h.

Referenced by swr_init().

parent logging context

Definition at line 42 of file swresample_internal.h.

Referenced by swr_alloc_set_opts().

logging level offset

Definition at line 41 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 93 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 96 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 97 of file swresample_internal.h.

Referenced by swri_rematrix(), and swri_rematrix_init().

maximum soft compensation in seconds over soft_compensation_duration

Definition at line 68 of file swresample_internal.h.

Referenced by swr_next_pts().

intermediate audio data (postin/preout)

Definition at line 76 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 65 of file swresample_internal.h.

Referenced by swr_next_pts().

minimum below which no silence inject / sample drop will happen

Definition at line 66 of file swresample_internal.h.

Referenced by swr_next_pts().

Definition at line 98 of file swresample_internal.h.

Referenced by swri_rematrix(), and swri_rematrix_init().

Definition at line 99 of file swresample_internal.h.

Referenced by swr_convert_internal(), swri_rematrix(), and swri_rematrix_init().

Definition at line 94 of file swresample_internal.h.

Referenced by swri_rematrix(), swri_rematrix_free(), and swri_rematrix_init().

converted output audio data

Definition at line 78 of file swresample_internal.h.

Referenced by resample(), swr_convert(), swr_convert_internal(), swr_init(), and swr_inject_silence().

output channel layout

Definition at line 47 of file swresample_internal.h.

Referenced by auto_matrix(), swr_alloc_set_opts(), swr_init(), swr_set_matrix(), swri_rematrix(), and swri_rematrix_init().

output conversion context

Definition at line 89 of file swresample_internal.h.

Referenced by swr_convert_internal(), swr_free(), and swr_init().

output sample format

Definition at line 45 of file swresample_internal.h.

Referenced by auto_matrix(), swr_convert_internal(), and swr_init().

output sample rate

Definition at line 49 of file swresample_internal.h.

Referenced by swr_init(), and swr_next_pts().

output PTS

Definition at line 85 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 61 of file swresample_internal.h.

Referenced by swr_init().

post-input audio data: used for rematrix/resample

Definition at line 75 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 77 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 71 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 72 of file swresample_internal.h.

Referenced by swr_init(), swr_set_matrix(), and swri_rematrix_init().

rematrixing volume coefficient

Definition at line 54 of file swresample_internal.h.

Referenced by auto_matrix(), and swr_init().

1 if resampling must come first, 0 if rematrixing

Definition at line 70 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 83 of file swresample_internal.h.

Referenced by resample(), swr_convert(), and swr_init().

surround mixing level

Definition at line 51 of file swresample_internal.h.

Referenced by auto_matrix().

duration over which soft compensation is applied

Definition at line 67 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 56 of file swresample_internal.h.

Referenced by swr_convert_internal(), and swr_init().


The documentation for this struct was generated from the following file:

Generated on Fri Oct 26 02:48:07 2012 for FFmpeg by  doxygen 1.5.8