util_uint64_scale_int_ceil
function util_uint64_scale_int_ceil(val:Number, num:Number, denom:Number):Number { // Gjs wrapper for gst_util_uint64_scale_int_ceil() }
Scale val by the rational number num / denom, avoiding overflows and underflows and without loss of precision. num must be non-negative and denom must be positive.
- val
guint64 (such as a Gst.ClockTime) to scale.
- num
numerator of the scale factor.
- denom
denominator of the scale factor.
- Returns
val * num / denom. In the case of an overflow, this function returns G_MAXUINT64. If the result is not exactly representable as an integer, it is rounded up. See also util_uint64_scale_int, util_uint64_scale_int_round, util_uint64_scale, util_uint64_scale_round, util_uint64_scale_ceil.