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_FLT or AV_SAMPLE_FMT_S16)
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 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)
int int_bps
 internal bytes per sample
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)
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)
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
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
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.


Detailed Description

Definition at line 35 of file swresample_internal.h.


Field Documentation

AVClass used for AVOption and av_log().

Definition at line 36 of file swresample_internal.h.

Referenced by swr_alloc().

channel index (or -1 if muted channel) map

Definition at line 50 of file swresample_internal.h.

Referenced by swr_init(), and swr_set_channel_mapping().

center mixing level

Definition at line 48 of file swresample_internal.h.

Referenced by swri_rematrix_init().

miscellaneous flags such as SWR_FLAG_RESAMPLE

Definition at line 46 of file swresample_internal.h.

Referenced by swr_init().

full conversion context (single conversion for input and output)

Definition at line 69 of file swresample_internal.h.

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

input audio data

Definition at line 57 of file swresample_internal.h.

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

cached audio data (convert and resample purpose)

Definition at line 62 of file swresample_internal.h.

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

cached buffer length

Definition at line 64 of file swresample_internal.h.

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

cached buffer position

Definition at line 63 of file swresample_internal.h.

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

input channel layout

Definition at line 42 of file swresample_internal.h.

Referenced by swr_init(), and swri_rematrix_init().

input conversion context

Definition at line 67 of file swresample_internal.h.

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

input sample format

Definition at line 39 of file swresample_internal.h.

Referenced by swr_convert(), and swr_init().

input sample rate

Definition at line 44 of file swresample_internal.h.

Referenced by swr_init().

internal bytes per sample

Definition at line 53 of file swresample_internal.h.

Referenced by swr_init().

internal sample format (AV_SAMPLE_FMT_FLT or AV_SAMPLE_FMT_S16)

Definition at line 40 of file swresample_internal.h.

Referenced by swr_convert(), swr_init(), swri_rematrix(), and swri_rematrix_init().

parent logging context

Definition at line 38 of file swresample_internal.h.

Referenced by swr_alloc_set_opts().

logging level offset

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

Referenced by 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 73 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 74 of file swresample_internal.h.

Referenced by swri_rematrix(), and swri_rematrix_init().

intermediate audio data (postin/preout)

Definition at line 59 of file swresample_internal.h.

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

converted output audio data

Definition at line 61 of file swresample_internal.h.

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

output channel layout

Definition at line 43 of file swresample_internal.h.

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

output conversion context

Definition at line 68 of file swresample_internal.h.

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

output sample format

Definition at line 41 of file swresample_internal.h.

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

output sample rate

Definition at line 45 of file swresample_internal.h.

Referenced by swr_init().

post-input audio data: used for rematrix/resample

Definition at line 58 of file swresample_internal.h.

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

pre-output audio data: used for rematrix/resample

Definition at line 60 of file swresample_internal.h.

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

flag to indicate if rematrixing is needed (basically if input and output layouts mismatch)

Definition at line 55 of file swresample_internal.h.

Referenced by swr_convert(), and swr_init().

rematrixing volume coefficient

Definition at line 49 of file swresample_internal.h.

Referenced by swr_init(), and swri_rematrix_init().

resampling context

Definition at line 70 of file swresample_internal.h.

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

1 if resampling must come first, 0 if rematrixing

Definition at line 54 of file swresample_internal.h.

Referenced by swr_convert(), and swr_init().

1 if the input end was reach before the output end, 0 otherwise

Definition at line 65 of file swresample_internal.h.

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

surround mixing level

Definition at line 47 of file swresample_internal.h.

Referenced by swri_rematrix_init().

number of used input channels (mapped channel count if channel_map, otherwise in.ch_count)

Definition at line 51 of file swresample_internal.h.

Referenced by swr_convert(), and swr_init().


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

Generated on Fri Oct 26 02:43:57 2012 for FFmpeg by  doxygen 1.5.8