Allow custom input FPS if FPS wasn't detected (or when using img input)

This commit is contained in:
N00MKRAD
2021-02-27 14:59:50 +01:00
parent b9688b90d3
commit 17a4bca660
2 changed files with 3 additions and 1 deletions

View File

@@ -102,6 +102,7 @@ namespace Flowframes
} }
public HTTabControl GetMainTabControl() { return mainTabControl; } public HTTabControl GetMainTabControl() { return mainTabControl; }
public TextBox GetInputFpsTextbox () { return fpsInTbox; }
public bool IsInFocus() { return (ActiveForm == this); } public bool IsInFocus() { return (ActiveForm == this); }
@@ -150,6 +151,7 @@ namespace Flowframes
public int currInFrames; public int currInFrames;
public long currInDuration; public long currInDuration;
public long currInDurationCut; public long currInDurationCut;
public void UpdateInputInfo () public void UpdateInputInfo ()
{ {
string str = $"Resolution: {(!currInRes.IsEmpty ? $"{currInRes.Width}x{currInRes.Height}" : "Unknown")} - "; string str = $"Resolution: {(!currInRes.IsEmpty ? $"{currInRes.Width}x{currInRes.Height}" : "Unknown")} - ";

View File

@@ -45,7 +45,7 @@ namespace Flowframes.UI
fpsStr = fps.ToString(); fpsStr = fps.ToString();
Logger.Log($"Video FPS: {fpsStr} - Total Number Of Frames: {frameCount}", false, true); Logger.Log($"Video FPS: {fpsStr} - Total Number Of Frames: {frameCount}", false, true);
Program.mainForm.GetInputFpsTextbox().ReadOnly = fps > 0;
Program.mainForm.currInFps = fps; Program.mainForm.currInFps = fps;
Program.mainForm.currInFrames = frameCount; Program.mainForm.currInFrames = frameCount;
Program.mainForm.UpdateInputInfo(); Program.mainForm.UpdateInputInfo();