updating black bars to not count x/y when determining threshold

This commit is contained in:
reven
2022-01-14 17:47:58 +13:00
parent 176f006e47
commit 40bf3b529e

View File

@@ -108,7 +108,7 @@ namespace FileFlows.VideoNodes
args.Logger?.DLog($"Video dimensions: {vidWidth}x{vidHeight}");
int diff = x + y + (vidWidth - width) + (vidHeight - height);
int diff = (vidWidth - width) + (vidHeight - height);
bool willCrop = diff > CroppingThreshold;
args.Logger?.ILog($"Crop detection, x:{x}, y:{y}, width: {width}, height: {height}, total:{diff}, threshold:{CroppingThreshold}, above threshold: {willCrop}");