pub unsafe extern "C" fn av_nearer_q(
q: AVRational,
q1: AVRational,
q2: AVRational,
) -> i32
Expand description
Find which of the two rationals is closer to another rational.
@param q Rational to be compared against
@param q1 Rational to be tested
@param q2 Rational to be tested
@return One of the following values:
- 1 if q1
is nearer to q
than q2
- -1 if q2
is nearer to q
than q1
- 0 if they have the same distance