Function rsmpeg::ffi::av_rescale [−][src]
pub unsafe extern "C" fn av_rescale(a: i64, b: i64, c: i64) -> i64
Expand description
Rescale a 64-bit integer with rounding to nearest.
The operation is mathematically equivalent to a * b / c
, but writing that
directly can overflow.
This function is equivalent to av_rescale_rnd() with #AV_ROUND_NEAR_INF.
@see av_rescale_rnd(), av_rescale_q(), av_rescale_q_rnd()