Lumiera
0.pre.03
»edit your freedom«
|
#include "lib/time/timecode.hpp"
Classical Timecode value reminiscent to SMPTE format.
After quantisation, the resulting (materialised) time value is decimated into a hours, a minutes, a seconds part and the remainder is cast into a frame number relative to the seconds. Consequently, a SmpteTC representation is always linked implicitly to a specific framerate.
0
:0:0:0 minus 1 frame yields -0
:0:0:1Definition at line 150 of file timecode.hpp.
Public Types | |
typedef format::Smpte | Format |
Public Member Functions | |
SmpteTC (QuTime const &quantisedTime) | |
SmpteTC (SmpteTC const &) | |
void | clear () |
uint | getFps () const |
void | invertOrientation () |
flip the orientation of min, sec, and frames. More... | |
SmpteTC & | operator++ () |
SmpteTC & | operator-- () |
SmpteTC & | operator= (SmpteTC const &) |
void | rebuild () |
Public Member Functions inherited from TCode | |
string | describe () const |
Time | getTime () const |
operator string () const | |
Public Attributes | |
SexaDigit | frames |
HourDigit | hours |
SexaDigit | mins |
SexaDigit | secs |
Signum | sgn |
Private Member Functions | |
virtual string | show () const |
virtual Literal | tcID () const |
virtual TimeValue | value () const |
Private Attributes | |
uint | effectiveFramerate_ |
Additional Inherited Members | |
Protected Member Functions inherited from TCode | |
TCode (PQuant const &quant) | |
Protected Attributes inherited from TCode | |
PQuant | quantiser_ |
void invertOrientation | ( | ) |
flip the orientation of min, sec, and frames.
Besides changing the sign, this will flip the meaning of the component fields, which by definition are always oriented towards zero.
Normalised value fields are defined positive, with automatic overflow to next higher field. This might cause the hours to become negative. When invoked in this case, the meaning changes from -h + (m+s+f) to -(h+m+s+f)
Definition at line 398 of file timecode.cpp.
Referenced by Smpte::applyRangeLimitStrategy().