You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Before: 3648 unity files Total CPU Time: 47886.140625 s Total time in Parallel executor: 498.81 seconds After: 3548 unity files Total CPU Time: 46643.828125 s Total time in Parallel executor: 486.06 seconds #jira #preflight [CL 22173263 by marc audy in ue5-main branch]
74 lines
1.6 KiB
C++
74 lines
1.6 KiB
C++
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
#include "TimeSynchronizableMediaSource.h"
|
|
|
|
#include UE_INLINE_GENERATED_CPP_BY_NAME(TimeSynchronizableMediaSource)
|
|
|
|
|
|
|
|
UTimeSynchronizableMediaSource::UTimeSynchronizableMediaSource()
|
|
: bUseTimeSynchronization(false)
|
|
, FrameDelay(0)
|
|
, TimeDelay(0.0)
|
|
{ }
|
|
|
|
|
|
/*
|
|
* IMediaOptions interface
|
|
*/
|
|
|
|
bool UTimeSynchronizableMediaSource::GetMediaOption(const FName& Key, bool DefaultValue) const
|
|
{
|
|
if (Key == TimeSynchronizableMedia::UseTimeSynchronizatioOption)
|
|
{
|
|
return bUseTimeSynchronization;
|
|
}
|
|
|
|
if (Key == TimeSynchronizableMedia::AutoDetect)
|
|
{
|
|
return bAutoDetectInput;
|
|
}
|
|
|
|
return Super::GetMediaOption(Key, DefaultValue);
|
|
}
|
|
|
|
int64 UTimeSynchronizableMediaSource::GetMediaOption(const FName& Key, int64 DefaultValue) const
|
|
{
|
|
if (Key == TimeSynchronizableMedia::FrameDelay)
|
|
{
|
|
return FrameDelay;
|
|
}
|
|
|
|
return Super::GetMediaOption(Key, DefaultValue);
|
|
}
|
|
|
|
double UTimeSynchronizableMediaSource::GetMediaOption(const FName& Key, double DefaultValue) const
|
|
{
|
|
if (Key == TimeSynchronizableMedia::TimeDelay)
|
|
{
|
|
return TimeDelay;
|
|
}
|
|
|
|
return Super::GetMediaOption(Key, DefaultValue);
|
|
}
|
|
|
|
FString UTimeSynchronizableMediaSource::GetMediaOption(const FName& Key, const FString& DefaultValue) const
|
|
{
|
|
return Super::GetMediaOption(Key, DefaultValue);
|
|
}
|
|
|
|
bool UTimeSynchronizableMediaSource::HasMediaOption(const FName& Key) const
|
|
{
|
|
if (Key == TimeSynchronizableMedia::UseTimeSynchronizatioOption
|
|
|| Key == TimeSynchronizableMedia::FrameDelay
|
|
|| Key == TimeSynchronizableMedia::TimeDelay
|
|
|| Key == TimeSynchronizableMedia::AutoDetect)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
return Super::HasMediaOption(Key);
|
|
}
|
|
|
|
|