diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-03-06 00:09:14 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-03-06 00:09:14 +0000 |
commit | 08ffd3708bd15613e85e331b04c89fbde2054b30 (patch) | |
tree | 566ba900f4254f6649706275cda4ed93407177fc /libavformat/timefilter.h | |
parent | 28e947e458638aae240677b41905bc75bff725bd (diff) | |
download | ffmpeg-08ffd3708bd15613e85e331b04c89fbde2054b30.tar.gz |
Allow timespans to vary.
No change in performance if they do not vary.
Originally committed as revision 17840 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/timefilter.h')
-rw-r--r-- | libavformat/timefilter.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libavformat/timefilter.h b/libavformat/timefilter.h index c5252de3e8..85199fed34 100644 --- a/libavformat/timefilter.h +++ b/libavformat/timefilter.h @@ -37,10 +37,6 @@ typedef struct TimeFilter TimeFilter; /** * Create a new Delay Locked Loop time filter * - * period is the device cycle duration in seconds. For example, at - * 44.1Hz and a buffer size of 512 frames, period = 512 / 44100. The filter - * only works if the cycle duration is fixed. - * * feedback2_factor and feedback3_factor are the factors used for the * multiplications that are respectively performed in the second and third * feedback paths of the loop. @@ -58,19 +54,22 @@ typedef struct TimeFilter TimeFilter; * For more details about these parameters and background concepts please see: * http://www.kokkinizita.net/papers/usingdll.pdf */ -TimeFilter * ff_timefilter_new(double period, double feedback2_factor, double feedback3_factor); +TimeFilter * ff_timefilter_new(double feedback2_factor, double feedback3_factor); /** * Update the filter * * This function must be called in real time, at each process cycle. * + * period is the device cycle duration in seconds. For example, at + * 44.1Hz and a buffer size of 512 frames, period = 512 / 44100. + * * system_time, in seconds, should be the value of the system clock time, * at (or as close as possible to) the moment the device hardware interrupt * occured (or any other event the device clock raises at the beginning of a * cycle). */ -void ff_timefilter_update(TimeFilter *self, double system_time); +void ff_timefilter_update(TimeFilter *self, double system_time, double period); /** * Retrieve the filtered time |