2021-01-30 01:37:36 +01:00
|
|
|
|
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 ()
|
|
|
|
|
|
{
|
2021-02-01 18:05:50 +01:00
|
|
|
|
string s = $"AUTOENC|{autoEncode}\n";
|
2021-01-30 01:37:36 +01:00
|
|
|
|
|
|
|
|
|
|
if (!autoEncode)
|
|
|
|
|
|
{
|
2021-02-01 18:05:50 +01:00
|
|
|
|
s += $"LASTINPUTFRAME|{lastInterpolatedInputFrame}";
|
2021-01-30 01:37:36 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return s;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|