add support for QHD, HD and 4K
This commit is contained in:
		@ -2,6 +2,7 @@
 | 
			
		||||
# Computes fisheye removal parameters for GoPro 11+, 8:7 ratio, without hypersmooth,
 | 
			
		||||
# keeping the vertical FOV and widening the frame to preserve the diagonal FOV
 | 
			
		||||
 | 
			
		||||
# https://www.bobatkins.com/photography/technical/field_of_view.html
 | 
			
		||||
# https://community.gopro.com/s/article/HERO11-Black-Mini-Digital-Lenses-FOV-Information?language=fr
 | 
			
		||||
 | 
			
		||||
import math
 | 
			
		||||
@ -29,6 +30,7 @@ def width_rounded_8(height):
 | 
			
		||||
    width = int(round(height * output_ratio))
 | 
			
		||||
    return ((width + 4) // 8) * 8
 | 
			
		||||
 | 
			
		||||
print("HD             = %i x  720" % width_rounded_8(720))
 | 
			
		||||
print("QHD            = %i x 540" % width_rounded_8(540))
 | 
			
		||||
print("HD             = %i x 720" % width_rounded_8(720))
 | 
			
		||||
print("Full HD        = %i x 1080" % width_rounded_8(1080))
 | 
			
		||||
print("4K             = %i x 2160" % width_rounded_8(2160))
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user