Vtc.Source.PremiereTicks protocol (vtc v0.2.6) View Source

Protocol which types can implement to be passed as the main value of Vtc.Timecode.with_premiere_ticks/2.

Implementations

Out of the box, this protocol is implemented for the following types:

Link to this section Summary

Types

Result type of ticks/2.

t()

Functions

Returns the number of Adobe Premiere Pro ticks as an integer.

Link to this section Types

Specs

result() :: {:ok, integer()} | {:error, Vtc.Timecode.ParseError.t()}

Result type of ticks/2.

Specs

t() :: term()

Link to this section Functions

Specs

ticks(t(), Vtc.Framerate.t()) :: result()

Returns the number of Adobe Premiere Pro ticks as an integer.

Arguments

  • value: The source value.

  • rate: The framerate of the timecode being parsed.

Returns

A result tuple with a rational representation of the seconds value using Ratio on success.