Add two rationals. @param b First rational @param c Second rational @return b+c
Compare two rationals.
Convert a double precision floating point number to a rational.
Divide one rational by another. @param b First rational @param c Second rational @return b/c
Find the value in a list of rationals nearest a given reference rational.
Invert a rational. @param q value @return 1 / q
Create an AVRational.
Multiply two rationals. @param b First rational @param c Second rational @return b*c
Find which of the two rationals is closer to another rational.
Convert an AVRational to a double. @param a AVRational to convert @return a in floating-point form @see av_d2q()
Convert an AVRational to a IEEE 32-bit float expressed in fixed-point format.
Reduce a fraction.
Subtract one rational from another. @param b First rational @param c Second rational @return b-c
Rational number (pair of numerator and denominator).
@file @ingroup lavu_math_rational Utilties for rational number calculation. @author Michael Niedermayer <michaelni@gmx.at>