summaryrefslogtreecommitdiff
path: root/libavformat/timefilter.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-03-06 00:14:44 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-03-06 00:14:44 +0000
commit55b58598676d192d62ceb54a4be173ea22c0739e (patch)
treeb4cfb381f8859190774c36ee6abb72583ad21e76 /libavformat/timefilter.h
parent08ffd3708bd15613e85e331b04c89fbde2054b30 (diff)
Merge ff_timefilter_read() and ff_timefilter_update(), this simplifies API and
avoids calling them in the wrong order. Originally committed as revision 17841 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/timefilter.h')
-rw-r--r--libavformat/timefilter.h16
1 files changed, 2 insertions, 14 deletions
diff --git a/libavformat/timefilter.h b/libavformat/timefilter.h
index 85199fed34..3532aede18 100644
--- a/libavformat/timefilter.h
+++ b/libavformat/timefilter.h
@@ -68,22 +68,10 @@ TimeFilter * ff_timefilter_new(double feedback2_factor, double feedback3_factor)
* 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, double period);
-
-/**
- * Retrieve the filtered time
- *
- * The returned value represents the filtered time, in seconds, of the
- * beginning of the current cycle as updated by the last call to
- * ff_timefilter_update()
- *
- * This is the value that should be used for timestamping.
*
- * Warning: you must call ff_timefilter_update() before this, otherwise the
- * result is undetermined.
+ * @return the filtered time, in seconds
*/
-double ff_timefilter_read(TimeFilter *);
+double ff_timefilter_update(TimeFilter *self, double system_time, double period);
/**
* Reset the filter