Vtc.Framerate.ParseError exception (vtc v0.2.1) View Source
Exception returned when a framerate cannot be parsed.
Link to this section Summary
Functions
Returns a message for the error reason.
Link to this section Types
Specs
t() :: %Vtc.Framerate.ParseError{ __exception__: true, reason: :bad_drop_rate | :invalid_ntsc | :unrecognized_format | :imprecise }
Type of ParseError
Fields
:reason
: The reason the error occurred must be one of the following::bad_drop_rate
: Returned when the playback speed of a framerate with an ntsc value of :drop is not divisible by 3000/1001 (29.97), for more on why drop-frame framerates must be a multiple of 29.97, see: https://www.davidheidelberger.com/2010/06/10/drop-frame-timecode/:invalid_ntsc
: Returned when the ntsc value is not one of the allowed atom values.:unrecognized_format
: Returned when a string value is not a recognized format.:imprecise
- Returned when a float was passed with an NTSC value of nil. Without the ability to round to the nearest valid NTSC value, floats are not precise enough to build an arbitrary framerate.
Link to this section Functions
Specs
Returns a message for the error reason.