diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-13 15:35:00 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-20 15:08:40 -0500 |
commit | 0b42a9388c98c8669811d4e7e5da7240e6707a41 (patch) | |
tree | 97898f00de8874229f6ba8ff2e077ce221b6d513 /libavutil/mathematics.h | |
parent | 0996f406c4d32858e00637206fff7c435b51488c (diff) | |
download | ffmpeg-0b42a9388c98c8669811d4e7e5da7240e6707a41.tar.gz |
avutil: add av_rescale_q_rnd() to allow different rounding
Diffstat (limited to 'libavutil/mathematics.h')
-rw-r--r-- | libavutil/mathematics.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h index 0b072ebe63..ec27979bc9 100644 --- a/libavutil/mathematics.h +++ b/libavutil/mathematics.h @@ -96,6 +96,12 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding) av_cons int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const; /** + * Rescale a 64-bit integer by 2 rational numbers with specified rounding. + */ +int64_t av_rescale_q_rnd(int64_t a, AVRational bq, AVRational cq, + enum AVRounding) av_const; + +/** * Compare 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. |