Mercurial > libavutil.hg
diff mathematics.h @ 830:a6eab70dd366 libavutil
av_compare_ts()
author | michael |
---|---|
date | Sun, 07 Feb 2010 16:26:50 +0000 |
parents | e6e8b4319086 |
children | d1890ea2aa5c |
line wrap: on
line diff
--- a/mathematics.h Sun Jan 31 17:13:57 2010 +0000 +++ b/mathematics.h Sun Feb 07 16:26:50 2010 +0000 @@ -80,4 +80,13 @@ */ int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const; +/** + * Compares 2 timestamps each in its own timebases. + * The result of the function is undefined if one of the timestamps + * is outside the int64_t range when represented in the others timebase. + * @returns -1 if ts_a is before ts_b, 1 if ts_a is after ts_b or 0 if they represent the same position + */ +int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b); + + #endif /* AVUTIL_MATHEMATICS_H */