aboutsummaryrefslogtreecommitdiffstats
path: root/libswresample/swresample_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-04-26 01:35:22 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-04-26 01:35:22 +0200
commitda9587952a855db0e03f90f1f0d86f60318acc24 (patch)
treed2756ddf90028d51710cbd50150485d8a2e6bc2f /libswresample/swresample_internal.h
parenta522e03754943ee7d8c898ee1afd10aa107ca7f2 (diff)
downloadffmpeg-da9587952a855db0e03f90f1f0d86f60318acc24.tar.gz
swr: pass resample parameters from the user to the resampler.
doxy and names stolen from avr Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample_internal.h')
-rw-r--r--libswresample/swresample_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libswresample/swresample_internal.h b/libswresample/swresample_internal.h
index 0575cece29..06578b8ee5 100644
--- a/libswresample/swresample_internal.h
+++ b/libswresample/swresample_internal.h
@@ -52,6 +52,10 @@ struct SwrContext {
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. 1.0 corresponds to half the output sample rate */
int int_bps; ///< internal bytes per sample
int resample_first; ///< 1 if resampling must come first, 0 if rematrixing