ffmpeg.libavutil.mathematics

@file @addtogroup lavu_math Mathematical utilities for working with timestamp and time base.

Members

Enums

AVRounding
enum AVRounding

Rounding methods.

Functions

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.

Manifest constants

M_LOG2_10
enum M_LOG2_10;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
M_PHI
enum M_PHI;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Meta