Function rsmpeg::ffi::av_nearer_q[][src]

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,q2 Rationals 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