35 #include <boost/lexical_cast.hpp> 38 using boost::lexical_cast;
63 random_or_get (Arg arg)
66 return 1 + (rand() % 10000);
68 return lexical_cast<
int> (arg[1]);
76 Time ref (0,random_or_get(arg),0,0);
79 checkSimpleUsage (ref);
80 check_theFullStory (ref);
81 checkMultipleGrids (ref);
82 checkGridBinding (ref);
91 QuTime qVal (org,
"my_simple_grid");
111 showTimeCode (smpteTCode);
114 showTimeCode (pureTimeCode);
117 showTimeCode (frameTCode);
120 showTimeCode (seconds);
125 showTimeCode (TC timecodeValue)
127 cout << timecodeValue.describe()
128 <<
" time = "<< timecodeValue.getTime()
129 <<
" code = "<< timecodeValue
139 QuTime palVal (org,
"my_simple_grid");
140 QuTime ntscVal (org,
"my_alternate_grid");
142 CHECK (org == palVal);
143 CHECK (org == ntscVal);
147 CHECK (palNr <= ntscNr);
159 QuTime funny (org,
"special_funny_grid");
163 CHECK (0 == smpte.frames);
164 CHECK (cnt % 60 == smpte.secs);
Classical Timecode value reminiscent to SMPTE format.
#define VERIFY_ERROR(ERROR_ID, ERRONEOUS_STATEMENT)
Macro to verify that a statement indeed raises an exception.
Implementation namespace for support and library code.
Lumiera's internal time value datatype.
format::Traits< FMT >::TimeCode formatAs() const
create new time code instance, then castInto
Simple test class runner.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
boost::rational< int64_t > FSecs
rational representation of fractional seconds
A collection of frequently used helper functions to support unit testing.
Support library to represent grid-aligned time specifications This is part of Lumiera's time and time...
To establish a reference scale for quantised time values.
bool supports() const
does our implicit time grid support building that timecode format?
A frame counting timecode value.
basic constant internal time value.
Simple stand-alone Quantiser implementation based on a constant sized gird.
bool contains(SEQ const &cont, typename SEQ::const_reference val)
shortcut for brute-force containment test in any sequential container
grid aligned time specification, referring to a specific scale.