ISOMedia.Timescale (ISOMedia v0.1.0)

Copy Markdown View Source

Integer timescale rescaling shared across editing operations.

Summary

Functions

Rescale value from from_ts to to_ts (integer, round-half-up; no float precision loss).

Functions

scale(value, from_ts, to_ts)

@spec scale(integer(), pos_integer(), pos_integer()) :: integer()

Rescale value from from_ts to to_ts (integer, round-half-up; no float precision loss).