|
LMMS
|
#include <juce_AudioPlayHead.h>
Public Member Functions | |
| FrameRate ()=default | |
| FrameRate (FrameRateType type) | |
| FrameRateType | getType () const |
| int | getBaseRate () const |
| bool | isDrop () const |
| bool | isPullDown () const |
| double | getEffectiveRate () const |
| JUCE_NODISCARD FrameRate | withBaseRate (int x) const |
| JUCE_NODISCARD FrameRate | withDrop (bool x=true) const |
| JUCE_NODISCARD FrameRate | withPullDown (bool x=true) const |
| bool | operator== (const FrameRate &other) const |
| bool | operator!= (const FrameRate &other) const |
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 |
|
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.
|
inlineprivate |
|
inline |
Returns a copy of this object with the specified base rate.
|
inline |
Returns a copy of this object with drop frames enabled or disabled, as specified.
|
inline |
Returns a copy of this object with pulldown enabled or disabled, as specified.
|
private |
|
private |
|
private |