View Source ExMP4.Helper (MP4 Reader and Writer v0.6.0)

Helper functions.

Summary

Functions

Convert duration between different timescales.

Types

@type timescale() ::
  :nanosecond | :microsecond | :millisecond | :second | integer() | Ratio.t()

Functions

Link to this function

timescalify(time, timescale, timescale)

View Source
@spec timescalify(Ratio.t() | integer(), timescale(), timescale()) :: integer()

Convert duration between different timescales.