|
Photosine 0.5
|
#include <Timecode.h>
Classes | |
| struct | SimpleTimecode |
Public Member Functions | |
| Timecode (int64_t frameNumber, FrameRate newFrameRate) | |
| Timecode () | |
| Timecode (juce::ValueTree tree) | |
| Timecode (const Timecode &t) | |
| FrameRate | getFrameRate () |
| int64_t | getFrameCount () const |
| int | getHours () |
| int | getMinutes () |
| int | getSeconds () |
| int | getFrames () |
| int64_t | getFrameOffset () |
| bool | getDropFrame () |
| bool | isThisFirstFrameOfSecond () |
| juce::String | toString () |
| Timecode | getLocalTime () |
| juce::ValueTree | toValueTree () |
| bool | operator> (Timecode const &comparisonTimecode) |
| bool | operator>= (Timecode const &comparisonTimecode) |
| bool | operator< (Timecode const &comparisonTimecode) |
| bool | operator<= (Timecode const &comparisonTimecode) |
| Timecode | operator- (Timecode const &comparisonTimecode) |
| Timecode | operator+ (Timecode const &comparisonTimecode) |
| Timecode | operator+= (Timecode const &comparisonTimecode) |
| Timecode | operator+ (int const &comparisonInt) |
| Timecode | operator+= (int const &comparisonInt) |
| Timecode | operator++ (int) |
Private Member Functions | |
| void | initializeFromFrameNumber (int64_t frameNumber, FrameRate newFrameRate) |
| SimpleTimecode | calculateFromFrameNumber (int64_t frameNumber, FrameRate newFrameRate) |
| void | fromValueTree (juce::ValueTree treeToUse) |
| juce::ValueTree | createNewValueTree () |
Private Attributes | |
| SimpleTimecode | tcData |
| FrameRate | frData |
| bool | dropFrame |
| int64_t | offset |
| int64_t | count |
| int64_t | dfCount |
| juce::Identifier | nominalFrameRateID = "nominalFrameRate" |
| juce::Identifier | trueFrameRateID = "trueFrameRate" |
| juce::Identifier | trueFrameCountID = "trueFrameCount" |
| juce::Identifier | dropFrameCountID = "dropFrameCount" |
| juce::Identifier | isDropFrameID = "isDropFrame" |
| juce::Identifier | frameOffsetID = "frameOffset" |
| juce::Identifier | hhValueID = "hhValue" |
| juce::Identifier | mmValueID = "mmValue" |
| juce::Identifier | ssValueID = "ssValue" |
| juce::Identifier | ffValueID = "ffValue" |
All-encapsulating class for video timecode and related functions.
| Time::Timecode::Timecode | ( | int64_t | frameNumber, |
| FrameRate | newFrameRate ) |
Initialize a Timecode object from absolue frame number and frame rate
| Time::Timecode::Timecode | ( | ) |
Creates a new empty Timecode
| Time::Timecode::Timecode | ( | juce::ValueTree | tree | ) |
Creates a new Timecode from juce::ValueTree
| Time::Timecode::Timecode | ( | const Timecode & | t | ) |
|
private |
Generates simple timecode values (HH:MM:SS:FF) given frame number. Requires less processing than creating an additional Timecode object and used to do the calculations called from initializeFromFrameNumber()
|
private |
Create value tree from default
|
private |
| bool Time::Timecode::getDropFrame | ( | ) |
True if timecode is Drop Frame (DF)
| int64_t Time::Timecode::getFrameCount | ( | ) | const |
Total number of elapsed frames since time address 00:00:00:00
| int64_t Time::Timecode::getFrameOffset | ( | ) |
Offsets frameCount from address 00:00:00:00 allowing for a separate clip timecode
| Time::FrameRate Time::Timecode::getFrameRate | ( | ) |
Frame rate of the timecode
| int Time::Timecode::getFrames | ( | ) |
Int value of FF on the timecode address
| int Time::Timecode::getHours | ( | ) |
Int value of HH on the timecode address
| Time::Timecode Time::Timecode::getLocalTime | ( | ) |
Gets a Timecode without the offset, adjusting the absoluteFrame calculations. Good to get local timecode for a clip
| int Time::Timecode::getMinutes | ( | ) |
Int value of MM on the timecode address
| int Time::Timecode::getSeconds | ( | ) |
Int value of SS on the timecode address
|
private |
Initializes this Timecode from frame number and frame rate. Called from constructor.
| bool Time::Timecode::isThisFirstFrameOfSecond | ( | ) |
Check if frame is dropped.
| Time::Timecode Time::Timecode::operator+ | ( | int const & | comparisonInt | ) |
| Time::Timecode Time::Timecode::operator+ | ( | Timecode const & | comparisonTimecode | ) |
| Time::Timecode Time::Timecode::operator++ | ( | int | ) |
| Time::Timecode Time::Timecode::operator+= | ( | int const & | comparisonInt | ) |
| Time::Timecode Time::Timecode::operator+= | ( | Timecode const & | comparisonTimecode | ) |
| Time::Timecode Time::Timecode::operator- | ( | Timecode const & | comparisonTimecode | ) |
| bool Time::Timecode::operator< | ( | Timecode const & | comparisonTimecode | ) |
| bool Time::Timecode::operator<= | ( | Timecode const & | comparisonTimecode | ) |
| bool Time::Timecode::operator> | ( | Timecode const & | comparisonTimecode | ) |
| bool Time::Timecode::operator>= | ( | Timecode const & | comparisonTimecode | ) |
| juce::String Time::Timecode::toString | ( | ) |
Get Timecode formatted as hh:mm::ss::ff as a juce::String
| juce::ValueTree Time::Timecode::toValueTree | ( | ) |
|
private |
|
private |
|
private |
|
private |
ValueTree identifier for Drop frame count (not often used) (int64_t)
|
private |
ValueTree identifier for Frames value (int)
|
private |
ValueTree identifier for Frame offset of this timecode (int64_t)
|
private |
|
private |
ValueTree identifier for Hours value (int)
|
private |
ValueTree identifier for Is this drop frame timecode or simple? (bool)
|
private |
ValueTree identifier for Minutes value (int)
|
private |
ValueTree identifier for ceil framerate (int)
|
private |
|
private |
ValueTree identifier for Seconds value (int)
|
private |
|
private |
ValueTree identifier for true total frame count (int64_t)
|
private |
ValueTree identifier for true framerate (double)