Basic CLI/batch support

-start - Auto-start interpolation if file was also given
-quit-when-done - Auto-quit after task or queue
-factor - Interpolation factor (2/4/8)
-ai - Interpolation AI by dropdown index
-output-mode - Export mode by dropdown index
-model - AI model by dropdown index
This commit is contained in:
n00mkrad
2021-08-02 15:08:19 +02:00
parent e2cdb791fd
commit c3bdc27b94
7 changed files with 61 additions and 21 deletions

View File

@@ -17,7 +17,7 @@ namespace Flowframes.UI
{
class MainUiFunctions
{
public static async Task InitInput (TextBox outputTbox, TextBox inputTbox, TextBox fpsInTbox)
public static async Task InitInput (TextBox outputTbox, TextBox inputTbox, TextBox fpsInTbox, bool start = false)
{
Program.mainForm.SetTab("interpolate");
Program.mainForm.ResetInputInfo();
@@ -60,6 +60,10 @@ namespace Flowframes.UI
Dedupe.ClearCache();
await Task.Delay(10);
InterpolationProgress.SetPreviewImg(await GetThumbnail(path));
if (start)
Program.mainForm.runBtn_Click(null, null);
}
static void CheckExistingFolder (string inpath, string outpath)