|
TracktionEngine
|
A timecode display mode, e.g. More...
#include <tracktion_TimecodeDisplayFormat.h>
Public Member Functions | |
| TimecodeDisplayFormat () noexcept | |
| TimecodeDisplayFormat (TimecodeType t) noexcept | |
| bool | operator== (const TimecodeDisplayFormat &other) const |
| bool | operator!= (const TimecodeDisplayFormat &other) const |
| bool | isBarsBeats () const |
| bool | isMilliseconds () const |
| bool | isSMPTE () const |
| int | getFPS () const |
| juce::String | getRoundingDescription () const |
| juce::String | getString (const TempoSequence &, TimePosition, bool isRelative) const |
| juce::String | getStartLabel () const |
| int | getNumParts () const |
| number of sections in the timecode string | |
| juce::String | getSeparator (int part) const |
| int | getMaxCharsInPart (int part, bool canBeNegative) const |
| int | getMaxValueOfPart (const TempoSequence &, TimecodeDuration currentTime, int part, bool isRelative) const |
| int | getMinValueOfPart (int part, bool isRelative) const |
| void | getPartStrings (TimecodeDuration duration, const TempoSequence &, bool isRelative, juce::String results[4]) const |
| TimecodeDuration | getNewTimeWithPartValue (TimecodeDuration oldTime, const TempoSequence &, int part, int newValue, bool isRelative) const |
| TimecodeSnapType | getBestSnapType (const TempoSetting &, TimeDuration onScreenTimePerPixel, bool isTripletOverride) const |
| int | getNumSnapTypes () const |
| TimecodeSnapType | getSnapType (int index) const |
| int | getSubSecondDivisions () const |
Static Public Member Functions | |
| static juce::String | toFullTimecode (TimePosition, const int subSecondDivisions=1000, bool showHours=false) |
| this will format the time as "hh:mm:ss.xxx". | |
Public Attributes | |
| TimecodeType | type |
A timecode display mode, e.g.
bars/beats, seconds/frames, etc.
|
noexcept |
|
noexcept |
| bool tracktion::engine::TimecodeDisplayFormat::operator== | ( | const TimecodeDisplayFormat & | other | ) | const |
References type.
| bool tracktion::engine::TimecodeDisplayFormat::operator!= | ( | const TimecodeDisplayFormat & | other | ) | const |
References type.
| bool tracktion::engine::TimecodeDisplayFormat::isBarsBeats | ( | ) | const |
| bool tracktion::engine::TimecodeDisplayFormat::isMilliseconds | ( | ) | const |
| bool tracktion::engine::TimecodeDisplayFormat::isSMPTE | ( | ) | const |
| int tracktion::engine::TimecodeDisplayFormat::getFPS | ( | ) | const |
| juce::String tracktion::engine::TimecodeDisplayFormat::getRoundingDescription | ( | ) | const |
| juce::String tracktion::engine::TimecodeDisplayFormat::getString | ( | const TempoSequence & | , |
| TimePosition | , | ||
| bool | isRelative | ||
| ) | const |
| juce::String tracktion::engine::TimecodeDisplayFormat::getStartLabel | ( | ) | const |
| int tracktion::engine::TimecodeDisplayFormat::getNumParts | ( | ) | const |
number of sections in the timecode string
| juce::String tracktion::engine::TimecodeDisplayFormat::getSeparator | ( | int | part | ) | const |
| int tracktion::engine::TimecodeDisplayFormat::getMaxCharsInPart | ( | int | part, |
| bool | canBeNegative | ||
| ) | const |
| int tracktion::engine::TimecodeDisplayFormat::getMaxValueOfPart | ( | const TempoSequence & | , |
| TimecodeDuration | currentTime, | ||
| int | part, | ||
| bool | isRelative | ||
| ) | const |
| int tracktion::engine::TimecodeDisplayFormat::getMinValueOfPart | ( | int | part, |
| bool | isRelative | ||
| ) | const |
| void tracktion::engine::TimecodeDisplayFormat::getPartStrings | ( | TimecodeDuration | duration, |
| const TempoSequence & | , | ||
| bool | isRelative, | ||
| juce::String | results[4] | ||
| ) | const |
| TimecodeDuration tracktion::engine::TimecodeDisplayFormat::getNewTimeWithPartValue | ( | TimecodeDuration | oldTime, |
| const TempoSequence & | , | ||
| int | part, | ||
| int | newValue, | ||
| bool | isRelative | ||
| ) | const |
| TimecodeSnapType tracktion::engine::TimecodeDisplayFormat::getBestSnapType | ( | const TempoSetting & | , |
| TimeDuration | onScreenTimePerPixel, | ||
| bool | isTripletOverride | ||
| ) | const |
| int tracktion::engine::TimecodeDisplayFormat::getNumSnapTypes | ( | ) | const |
| TimecodeSnapType tracktion::engine::TimecodeDisplayFormat::getSnapType | ( | int | index | ) | const |
| int tracktion::engine::TimecodeDisplayFormat::getSubSecondDivisions | ( | ) | const |
|
static |
this will format the time as "hh:mm:ss.xxx".
The xxx depends on the subSecondDivisor value - e.g. 1000 will show xxx as milliseconds, if subSecondDivisor is 25 xxx will be 0 to 24 (for frames). If subSecondDivisor is 0, no sub-second portion will be produced.
| TimecodeType tracktion::engine::TimecodeDisplayFormat::type |
Referenced by operator!=(), and operator==().