- av_add_stable
long av_add_stable(AVRational ts_tb, long ts, AVRational inc_tb, long inc)
Add a value to a timestamp.
- av_compare_mod
long av_compare_mod(ulong a, ulong b, ulong mod)
Compare the remainders of two integer operands divided by a common divisor.
- av_compare_ts
int av_compare_ts(long ts_a, AVRational tb_a, long ts_b, AVRational tb_b)
Compare two timestamps each in its own time base.
- av_gcd
long av_gcd(long a, long b)
Compute the greatest common divisor of two integer operands.
- av_rescale
long av_rescale(long a, long b, long c)
Rescale a 64-bit integer with rounding to nearest.
- av_rescale_delta
long av_rescale_delta(AVRational in_tb, long in_ts, AVRational fs_tb, int duration, long* last, AVRational out_tb)
Rescale a timestamp while preserving known durations.
- av_rescale_q
long av_rescale_q(long a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
- av_rescale_q_rnd
long av_rescale_q_rnd(long a, AVRational bq, AVRational cq, AVRounding rnd)
Rescale a 64-bit integer by 2 rational numbers with specified rounding.
- av_rescale_rnd
long av_rescale_rnd(long a, long b, long c, AVRounding rnd)
Rescale a 64-bit integer with specified rounding.
@file @addtogroup lavu_math Mathematical utilities for working with timestamp and time base.