Fix VS scaling and realtime pix_fmt

This commit is contained in:
n00mkrad
2023-01-31 11:41:39 +01:00
parent 0e21b4f65c
commit e314ad8639
7 changed files with 40 additions and 19 deletions

View File

@@ -256,6 +256,7 @@ namespace Flowframes.Main
Logger.Log($"Un-rounded downscaled size: {(res.Width * factor).ToString("0.###")}x{(res.Height * factor).ToString("0.###")}", true);
int width = RoundDivisibleBy((res.Width * factor).RoundToInt(), mod);
int height = RoundDivisibleBy((res.Height * factor).RoundToInt(), mod);
res = new Size(width, height);
if (print && factor < 1f)
Logger.Log($"Video is bigger than the maximum - Downscaling to {width}x{height}.");