mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-21 10:49:25 +01:00
Implemented state saving for resuming (WIP)
This commit is contained in:
@@ -9,6 +9,7 @@ namespace Flowframes.IO
|
||||
public const string framesDir = "frames";
|
||||
public const string interpDir = "interp";
|
||||
public const string chunksDir = "vchunks";
|
||||
public const string resumeDir = "resumedata";
|
||||
public const string scenesDir = "scenes";
|
||||
public const string alphaSuffix = "-a";
|
||||
|
||||
|
||||
32
Code/Data/ResumeState.cs
Normal file
32
Code/Data/ResumeState.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Flowframes.Data
|
||||
{
|
||||
public struct ResumeState
|
||||
{
|
||||
bool autoEncode;
|
||||
int lastInterpolatedInputFrame;
|
||||
|
||||
public ResumeState (bool autoEncArg, int lastInterpInFrameArg)
|
||||
{
|
||||
autoEncode = autoEncArg;
|
||||
lastInterpolatedInputFrame = lastInterpInFrameArg;
|
||||
}
|
||||
|
||||
public override string ToString ()
|
||||
{
|
||||
string s = $"AUTOENC|{autoEncode}";
|
||||
|
||||
if (!autoEncode)
|
||||
{
|
||||
s += $"\nLASTINPUTFRAME|{lastInterpolatedInputFrame}";
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user