2020-01-29 18:45:15 -05:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
#include "ITimedDataInput.h"
|
|
|
|
|
|
2022-09-24 13:57:58 -04:00
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(ITimedDataInput)
|
|
|
|
|
|
2020-01-29 18:45:15 -05:00
|
|
|
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));
|
|
|
|
|
}
|
2022-07-14 22:37:57 -04:00
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
}
|