Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/time/formats.hpp"
Simple timecode specification as fractional seconds.
Similar to HMS, a specification of seconds is quantisation agnostic, but usually some implicit quantisation is used anyway, be it on actual data frames, audio frames, or just on some smaller time interval, e.g. full milliseconds.
Definition at line 135 of file formats.hpp.
Static Public Member Functions | |
static TimeValue | evaluate (Secs const &, QuantR) |
static TimeValue | parse (string const &, QuantR) |
try to parse a time specification in seconds or fractional seconds. More... | |
static void | rebuild (Secs &, QuantR, TimeValue const &) |
Additional Inherited Members | |
Public Member Functions inherited from NoInstance< X > | |
NoInstance (NoInstance const &) | |
|
static |
try to parse a time specification in seconds or fractional seconds.
The value is interpreted relative to the origin of a the given time grid This parser recognises full seconds, fractional seconds and both together. In any case, the actual number is required to end with a trailing 'sec'
12sec --> 12 * TimeValue::SCALE -4sec --> -4 * TimeValue::SCALE 5/4sec --> 1.25 * TimeValue::SCALE -5/25sec --> -0.2 * TimeValue::SCALE 1+1/2sec --> 1.5 * TimeValue::SCALE 1-1/25sec --> 0.96 * TimeValue::SCALE -12-1/4sec --> -11.75 * TimeValue::SCALE
seconds | string containing a time spec in seconds |
grid | coordinate system the parsed value is based on |
error::Invalid | in case of parsing failure |
Definition at line 122 of file timecode.cpp.