跳到主要内容

av_gcd_q

搜索

函数 av_gcd_q 

源代码
pub unsafe extern "C" fn av_gcd_q(
    a: AVRational,
    b: AVRational,
    max_den: c_int,
    def: AVRational,
) -> AVRational
展开描述

Return the best rational so that a and b are multiple of it. If the resulting denominator is larger than max_den, return def.