mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-31 02:09:30 -06:00
updating black bars to not count x/y when determining threshold
This commit is contained in:
@@ -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}");
|
||||
|
||||
Reference in New Issue
Block a user