More descriptive frame rate type. More...
#include <juce_AudioPlayHead.h>
Public Member Functions | |
FrameRate ()=default | |
Creates a frame rate with a base rate of 0. More... | |
FrameRate (FrameRateType type) | |
Creates a FrameRate instance from a FrameRateType. More... | |
int | getBaseRate () const |
Returns the plain rate, without taking pulldown into account. More... | |
double | getEffectiveRate () const |
Returns the actual rate described by this object, taking pulldown into account. More... | |
FrameRateType | getType () const |
Gets the FrameRateType that matches the state of this FrameRate. More... | |
bool | isDrop () const |
Returns true if drop-frame timecode is in use. More... | |
bool | isPullDown () const |
Returns true if the effective framerate is actually equal to the base rate divided by 1.001. More... | |
bool | operator!= (const FrameRate &other) const |
Returns true if this instance is not equal to other. More... | |
bool | operator== (const FrameRate &other) const |
Returns true if this instance is equal to other. More... | |
JUCE_NODISCARD FrameRate | withBaseRate (int x) const |
Returns a copy of this object with the specified base rate. More... | |
JUCE_NODISCARD FrameRate | withDrop (bool x=true) const |
Returns a copy of this object with drop frames enabled or disabled, as specified. More... | |
JUCE_NODISCARD FrameRate | withPullDown (bool x=true) const |
Returns a copy of this object with pulldown enabled or disabled, as specified. More... | |
Private Member Functions | |
template<typename Member , typename Value > | |
FrameRate | with (Member &&member, Value &&value) const |
Static Private Member Functions | |
static FrameRate | fromType (FrameRateType type) |
Private Attributes | |
int | base = 0 |
bool | drop = false |
bool | pulldown = false |
More descriptive frame rate type.
|
default |
Creates a frame rate with a base rate of 0.
|
inline |
Creates a FrameRate instance from a FrameRateType.
|
inlinestaticprivate |
References juce::gl::type, withBaseRate(), withDrop(), and withPullDown().
|
inline |
Returns the plain rate, without taking pulldown into account.
|
inline |
Returns the actual rate described by this object, taking pulldown into account.
|
inline |
|
inline |
Returns true if drop-frame timecode is in use.
|
inline |
Returns true if the effective framerate is actually equal to the base rate divided by 1.001.
Returns true if this instance is not equal to other.
Returns true if this instance is equal to other.
References juce::gl::x.
|
inlineprivate |
References juce::StandardApplicationCommandIDs::copy, and juce::gl::value.
|
inline |
Returns a copy of this object with the specified base rate.
References juce::gl::x.
Referenced by fromType().
|
inline |
Returns a copy of this object with drop frames enabled or disabled, as specified.
References juce::gl::x.
Referenced by fromType().
|
inline |
Returns a copy of this object with pulldown enabled or disabled, as specified.
References juce::gl::x.
Referenced by fromType().
|
private |
|
private |
|
private |