Allow fractional factor input (WIP: Disallow for FLAVR/RIFE-CUDA)

This commit is contained in:
n00mkrad
2022-04-05 23:22:09 +02:00
parent 9690101f13
commit 2db247f8ec
4 changed files with 18 additions and 48 deletions

View File

@@ -153,12 +153,12 @@ namespace Flowframes.Ui
}
}
public static int ValidateInterpFactor (int factor)
public static float ValidateInterpFactor (float factor)
{
AI ai = Program.mainForm.GetAi();
if (factor > 256)
return 256;
if (factor > 256f)
return 256f;
// NO LONGER NEEDED WITH RIFE 3.9
//if (ai.aiName == Implementations.rifeCuda.aiName)