From 72a242c99832b9ef312222ac9181634f14963107 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 19 May 2012 18:44:34 +0200 Subject: swr: add swr_next_pts() parameter descriptions partly reuse text from af_asyncts Signed-off-by: Michael Niedermayer --- libswresample/swresample_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libswresample/swresample_internal.h') diff --git a/libswresample/swresample_internal.h b/libswresample/swresample_internal.h index 30ab6cd1a1..b0e7423773 100644 --- a/libswresample/swresample_internal.h +++ b/libswresample/swresample_internal.h @@ -62,6 +62,11 @@ struct SwrContext { 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 */ + 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 @@ -77,6 +82,7 @@ struct SwrContext { 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 -- cgit v1.2.3