Files
UnrealEngineUWP/Engine/Source/Runtime/TimeManagement/Private/ITimedDataInput.cpp
jeremie roy e30fcb8112 TDM Improvements -
Put channels in alphabetical order in buffer visualizer
Fix uninitialized argument for buffer visualizer
Add buttons to increment/decrement frame offset and time evaluation offset
Add dropdown to select evaluation offset type (frame vs seconds)
Fix style not being registered resulting in white texture
Changed progress bar to custom frame time widget
Fix  borders in timed data monitor panel

#rb simon.therriault
#preflight 62d0c601a66919b670fbc0d5
#jira UE-145857

[CL 21102927 by jeremie roy in ue5-main branch]
2022-07-14 22:37:57 -04:00

29 lines
859 B
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#include "ITimedDataInput.h"
FFrameRate ITimedDataInput::UnknownFrameRate = FFrameRate(-1, -1);
double ITimedDataInput::ConvertSecondOffsetInFrameOffset(double Seconds, FFrameRate Rate)
{
return Rate.AsFrameTime(Seconds).AsDecimal();
}
double ITimedDataInput::ConvertFrameOffsetInSecondOffset(double Frames, FFrameRate Rate)
{
return Rate.AsSeconds(FFrameTime::FromDecimal(Frames));
}
double ITimedDataInput::ConvertSecondOffsetInFrameOffset(double Seconds) const
{
const FFrameRate FrameRate = GetFrameRate();
return ITimedDataInput::ConvertSecondOffsetInFrameOffset(Seconds, FrameRate);
}
double ITimedDataInput::ConvertFrameOffsetInSecondOffset(double Frames) const
{
const FFrameRate FrameRate = GetFrameRate();
return ITimedDataInput::ConvertFrameOffsetInSecondOffset(Frames, FrameRate);
}