![]() |
Ark Server API (ASA) - Wiki
|
#include <Timecode.h>
Public Member Functions | |
| FTimecode () | |
| FTimecode (int32 InHours, int32 InMinutes, int32 InSeconds, int32 InFrames, bool InbDropFrame) | |
| FTimecode (double InSeconds, const FFrameRate &InFrameRate, bool InbDropFrame, bool InbRollover) | |
| FTimecode (double InSeconds, const FFrameRate &InFrameRate, bool InbRollover) | |
| FFrameNumber | ToFrameNumber (const FFrameRate &InFrameRate) const |
| FTimespan | ToTimespan (const FFrameRate &InFrameRate) const |
| FString | ToString (bool bForceSignDisplay=false) const |
Public Attributes | |
| int32 | Hours |
| int32 | Minutes |
| int32 | Seconds |
| int32 | Frames |
| bool | bDropFrameFormat |
Friends | |
| bool | operator== (const FFrameRate &A, const FFrameRate &B) |
| bool | operator!= (const FFrameRate &A, const FFrameRate &B) |
| bool | operator== (const FTimecode &A, const FTimecode &B) |
| bool | operator!= (const FTimecode &A, const FTimecode &B) |
A timecode that stores time in HH:MM:SS format with the remainder of time represented by an integer frame count.
Definition at line 17 of file Timecode.h.
|
inline |
Default construction for UObject purposes
Definition at line 22 of file Timecode.h.
Here is the caller graph for this function:
|
inlineexplicit |
User construction from a number of hours minutes seconds and frames.
| InbDropFrame | - If true, this Timecode represents a "Drop Frame Timecode" format which skips the first frames of every minute (except those ending in multiples of 10) to account for drift when using a fractional NTSC framerate. |
Definition at line 36 of file Timecode.h.
Here is the caller graph for this function:
|
inlineexplicit |
User construction from a time in seconds
| InbDropFrame | - If true, this Timecode represents a "Drop Frame Timecode" format which skips the first frames of every minute (except those ending in multiples of 10) to account for drift when using a fractional NTSC framerate. |
| InbRollover | - If true, the hours will be the modulo of 24. |
Definition at line 52 of file Timecode.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineexplicit |
User construction from a time in seconds
| InbRollover | - If true, the hours will be the modulo of 24. |
Definition at line 72 of file Timecode.h.
Here is the call graph for this function:
|
inlinestatic |
Create a FTimecode from a specific frame number at the given frame rate.
| InFrameNumber | - The frame number to convert into a timecode. This should already be converted to InFrameRate's resolution. |
| InFrameRate | - The framerate that this timecode is based in. This should be the playback framerate as it is used to determine when the Frame value wraps over. |
Definition at line 225 of file Timecode.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Create a FTimecode from a specific frame number at the given frame rate. Optionally supports creating a drop frame timecode, which drops certain timecode display numbers to help account for NTSC frame rates which are fractional.
| InFrameNumber | - The frame number to convert into a timecode. This should already be converted to InFrameRate's resolution. |
| InFrameRate | - The framerate that this timecode is based in. This should be the playback framerate as it is used to determine when the Frame value wraps over. |
| InbDropFrame | - If true, the returned timecode will drop the first two frames on every minute (except when Minute % 10 == 0) This is only valid for NTSC framerates (29.97, 59.94) and will assert if you try to create a drop-frame format from a non-valid framerate. All framerates can be represented when in non-drop frame format. |
Definition at line 140 of file Timecode.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Create a FTimecode from a timespan at the given frame rate. Optionally supports creating a drop frame timecode, which drops certain timecode display numbers to help account for NTSC frame rates which are fractional.
| InTimespan | - The timespan to convert into a timecode. |
| InFrameRate | - The framerate that this timecode is based in. This should be the playback framerate as it is used to determine when the Frame value wraps over. |
| InbDropFrame | - If true, the returned timecode will drop the first two frames on every minute (except when Minute % 10 == 0) This is only valid for NTSC framerates (29.97, 59.94) and will assert if you try to create a drop-frame format from a non-valid framerate. All framerates can be represented when in non-drop frame format. |
| InbRollover | - If true, the hours will be the modulo of 24. |
Definition at line 252 of file Timecode.h.
Here is the call graph for this function:
|
inlinestatic |
Create a FTimecode from a timespan at the given frame rate.
| InTimespan | - The timespan to convert into a timecode. |
| InFrameRate | - The framerate that this timecode is based in. This should be the playback framerate as it is used to determine when the Frame value wraps over. |
| InbRollover | - If true, the hours will be the modulo of 24. |
Definition at line 265 of file Timecode.h.
Here is the call graph for this function:
|
inlinestatic |
Drop frame is only support for frame rate of 29.97 or 59.94.
Definition at line 271 of file Timecode.h.
Here is the call graph for this function:
Here is the caller graph for this function:Returns true if the given frame rate string represents a supported drop frame timecode frame rate, or false otherwise.
Drop frame timecode is only supported for NTSC_30 (29.97 FPS) or NTSC_60 (59.94 FPS) frame rates.
Definition at line 293 of file Timecode.h.
Here is the call graph for this function:
|
inline |
Converts this Timecode back into a Frame Number at the given framerate, taking into account if this is a drop-frame format timecode.
Definition at line 87 of file Timecode.h.
Here is the call graph for this function:
Here is the caller graph for this function:Get the Qualified Timecode formatted in HH:MM:SS:FF or HH:MM:SS;FF depending on if this represents drop-frame timecode or not.
| bForceSignDisplay | - Forces the timecode to be prepended with a positive or negative sign. Standard behavior is to only show the sign when the value is negative. |
Definition at line 306 of file Timecode.h.
|
inline |
Converts this Timecode back into a timespan at the given framerate, taking into account if this is a drop-frame format timecode.
Definition at line 233 of file Timecode.h.
Here is the call graph for this function:
|
inlinestatic |
If the frame rate support drop frame format and the app wish to use drop frame format by default.
Definition at line 280 of file Timecode.h.
Here is the call graph for this function:
Here is the caller graph for this function:By default, should we generate a timecode in drop frame format when the frame rate does support it.
Here is the caller graph for this function:
|
friend |
Definition at line 355 of file Timecode.h.
|
friend |
Definition at line 350 of file Timecode.h.
| bool FTimecode::bDropFrameFormat |
If true, this Timecode represents a Drop Frame timecode used to account for fractional frame rates in NTSC play rates.
Definition at line 347 of file Timecode.h.
| int32 FTimecode::Frames |
How many frames does this timecode represent
Definition at line 344 of file Timecode.h.
| int32 FTimecode::Hours |
How many hours does this timecode represent
Definition at line 335 of file Timecode.h.
| int32 FTimecode::Minutes |
How many minutes does this timecode represent
Definition at line 338 of file Timecode.h.
| int32 FTimecode::Seconds |
How many seconds does this timecode represent
Definition at line 341 of file Timecode.h.