UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TimecodeEstimator.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "Misc/App.h"
7#include "Misc/FrameRate.h"
9
10#define UE_API TIMEMANAGEMENT_API
11
15
17{
24
65{
66public:
67
76 );
77
85
88
89private:
90
103 TOptional<double> StartClockTime;
104
106 UTimecodeProvider& TimecodeProvider;
108 IClockedTimeStep& EngineCustomTimeStep;
109
111 FLinearFunction LinearRegressionFunction;
112
113 using FClockTimecodeSample = FVector2d; // X = clock time, Y = timecode converted using FFrameRate::AsSeconds.
120 FCachedLinearRegressionSums ClockToTimecodeSamples;
121
126 FFrameRate LastFrameRate;
127};
128}
129
130#undef UE_API
#define UE_LIFETIMEBOUND
Definition Platform.h:812
FPlatformTypes::SIZE_T SIZE_T
An unsigned integer the same size as a pointer, the same as UPTRINT.
Definition Platform.h:1150
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE::Math::TVector2< double > FVector2d
Definition MathFwd.h:61
#define UE_API
Definition SColorGradingComponentViewer.h:12
Definition IClockedTimeStep.h:19
UE_API FQualifiedFrameTime EstimateFrameTime() const
Definition TimecodeEstimator.cpp:142
UE_API TOptional< FFetchAndUpdateStats > FetchAndUpdate()
Definition TimecodeEstimator.cpp:99
Definition TimecodeProvider.h:41
Definition TimecodeEstimator.cpp:12
Definition FrameRate.h:21
Definition QualifiedFrameTime.h:13
Definition Optional.h:131
Definition CachedLinearRegressionSums.h:17
Definition LinearFunction.h:9
FQualifiedFrameTime UnderlyingFrameTime
Definition TimecodeEstimator.h:22