跳到主要内容

av_rescale_q_rnd

搜索

函数 av_rescale_q_rnd 

源代码
pub unsafe extern "C" fn av_rescale_q_rnd(
    a: i64,
    bq: AVRational,
    cq: AVRational,
    rnd: AVRounding,
) -> i64
展开描述

Rescale a 64-bit integer by 2 rational numbers with specified rounding.

The operation is mathematically equivalent to a * bq / cq.

@see av_rescale(), av_rescale_rnd(), av_rescale_q()