Navigation
API > API/Plugins > API/Plugins/ElectraBase
References
| Module | ElectraBase |
| Header | /Engine/Plugins/Media/ElectraUtil/Source/ElectraBase/Public/PlayerTime.h |
| Include | #include "PlayerTime.h" |
Syntax
class FTimeValue
Remarks
Keeps a time value in hundred nanoseconds (HNS).
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTimeValue () |
|||
FTimeValue
(
const FTimeValue& rhs |
|||
FTimeValue
(
int64 InHNS, |
|||
FTimeValue
(
double Seconds, |
|||
FTimeValue
(
int64 Numerator, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| int64 | GetAs90kHz
(
int64 DefaultIfInvalid |
||
| int64 | GetAsHNS
(
int64 DefaultIfInvalid |
||
| int64 | GetAsMicroseconds
(
int64 DefaultIfInvalid |
||
| int64 | GetAsMilliseconds
(
int64 DefaultIfInvalid |
||
| double | GetAsSeconds
(
double DefaultIfInvalid |
||
| int64 | GetAsTimebase
(
uint32 CustomTimebase |
Returns this time value in a custom timebase. Requires internal bigint conversion and is therefor SLOW! | |
| FTimespan | |||
| FTimeValue | GetInvalid () |
||
| FTimeValue | |||
| int64 | |||
| FTimeValue | GetZero () |
||
| bool | IsInfinity () |
||
| bool | |||
| bool | |||
| bool | IsValid () |
||
| bool | IsZero () |
||
| int64 | MicrosecondsToHNS
(
int64 InMicroseconds |
||
| int64 | MillisecondsToHNS
(
int64 InMilliseconds |
||
| int64 | NinetykHzToHNS
(
int64 In90kHz |
||
| FTimeValue & | SetFrom90kHz
(
int64 Ticks, |
||
| FTimeValue & | SetFromHNS
(
int64 InHNS, |
||
| FTimeValue & | SetFromMicroseconds
(
int64 Microseconds, |
||
| FTimeValue & | SetFromMilliseconds
(
int64 Milliseconds, |
||
| FTimeValue & | SetFromND
(
int64 Numerator, |
||
| FTimeValue & | SetFromSeconds
(
double Seconds, |
||
| FTimeValue & | SetFromTimeFraction
(
const FTimeFraction& TimeFraction, |
||
| FTimeValue & | SetFromTimespan
(
const FTimespan& InTimespan, |
||
| void | SetSequenceIndex
(
int64 InSequenceIndex |
||
| FTimeValue & | SetToInvalid () |
||
| FTimeValue & | SetToPositiveInfinity
(
int64 InSequenceIndex |
||
| FTimeValue & | SetToZero
(
int64 InSequenceIndex |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FTimeValue | operator-
(
const FTimeValue& rhs |
||
| bool | operator!=
(
const FTimeValue& rhs |
||
| FTimeValue | operator*
(
int32 Scale |
||
| FTimeValue & | operator*=
(
int32 Scale |
||
| FTimeValue | operator/
(
int32 Scale |
||
| FTimeValue & | operator/=
(
int32 Scale |
||
| FTimeValue | operator+
(
const FTimeValue& rhs |
||
| FTimeValue & | operator+=
(
const FTimeValue& rhs |
||
| bool | operator<
(
const FTimeValue& rhs |
||
| FTimeValue | operator<<
(
int32 Shift |
||
| bool | operator<=
(
const FTimeValue& rhs |
||
| FTimeValue & | operator=
(
const FTimeValue& rhs |
||
| FTimeValue & | operator-=
(
const FTimeValue& rhs |
||
| bool | operator==
(
const FTimeValue& rhs |
Note: We MUST NOT compare the SequenceIndex in any of the relational operators! It is considered to be a kind of "user value". | |
| bool | operator>
(
const FTimeValue& rhs |
||
| bool | operator>=
(
const FTimeValue& rhs |
||
| FTimeValue | operator>>
(
int32 Shift |