Vtc.Timecode.with_premiere_ticks
You're seeing just the function
with_premiere_ticks
, go back to Vtc.Timecode module for more information.
Specs
with_premiere_ticks( Vtc.Source.PremiereTicks.t(), Vtc.Framerate.t(), opts :: [{:round, maybe_round()}] ) :: parse_result()
Returns a new Timecode
with a premiere_ticks/1
return value equal
to the ticks arg.
Arguments
ticks: Any value that can represent the number of ticks for a given timecode. Must implement the
PremiereTicks
protocol.rate: Frame-per-second playback value of the timecode.
Options
- round: How to round the result with regards to whole-frames.
Examples
Accetps integers.
iex> Timecode.with_premiere_ticks(254_016_000_000, Rates.f23_98) |> inspect()
"{:ok, <00:00:01:00 @ <23.98 NTSC NDF>>}"