Add update script and enhance cropping offset display with center/right columns
This commit is contained in:
@@ -541,13 +541,16 @@ try {
|
||||
$croppingOffsets = Get-CroppingOffsets -CroppingSection $croppingSection -TotalFrames $videoInfo.FrameCount -InputWidth $videoInfo.Width -OutputWidth $intermediateWidth -Position $position -Smoothing $smoothing -Speed $speed
|
||||
|
||||
Write-Host "`nCropping Offsets:"
|
||||
Write-Host ("Frame".PadRight(10) + "Left Offset")
|
||||
Write-Host ("-" * 21)
|
||||
Write-Host ("Frame".PadRight(10) + "Left".PadRight(10) + "Center".PadRight(10) + "Right")
|
||||
Write-Host ("-" * 40)
|
||||
$previousOffset = $null
|
||||
$halfWidth = [int]($intermediateWidth / 2)
|
||||
foreach ($frame in ($croppingOffsets.Keys | Sort-Object)) {
|
||||
$currentOffset = $croppingOffsets[$frame]
|
||||
if ($currentOffset -ne $previousOffset) {
|
||||
Write-Host ("{0,-10}{1}" -f $frame, $currentOffset)
|
||||
$centerOffset = $currentOffset + $halfWidth
|
||||
$rightOffset = $currentOffset + $intermediateWidth
|
||||
Write-Host ("{0,-10}{1,-10}{2,-10}{3}" -f $frame, $currentOffset, $centerOffset, $rightOffset)
|
||||
$previousOffset = $currentOffset
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user