summaryrefslogtreecommitdiff
path: root/libswresample/swresample_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-05-19 18:44:34 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-05-19 19:23:37 +0200
commit72a242c99832b9ef312222ac9181634f14963107 (patch)
tree8adc3da12c6b1fc9b7db909efec365111cc99582 /libswresample/swresample_internal.h
parentf88f705abcb925cede3ffa392156489956e8c0b9 (diff)
swr: add swr_next_pts()
parameter descriptions partly reuse text from af_asyncts Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswresample/swresample_internal.h')
-rw-r--r--libswresample/swresample_internal.h6
1 files changed, 6 insertions, 0 deletions
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