User01 wrote:But how does one calculate the hex codes for any given resolution? Like for 3360x2100. How does one translate that, or any other resolution, to, for example, 00 AA 40 01?
Both for the removal of black bars and the resolution configs, its intimidating lol.
The way I do it is:
Get your"surround aspect ratio" from http://www.wsgf.org/fovcalc.php
Bezel Compensation Resolution: 6020x1080
"Surround aspect ratio = 301 : 54 or 5.574074 (inc bezel comp.)"
Decimal Form: 5.574074
Ratio Form: 301:54
Get "Black Bar" HEX:
Take the decimal form of your ratio and input it into an IEE 754 converter, I used: https://www.h-schmidt.net/FloatConverter/IEEE754.html
You will get something like: 0x40b25ed0
Remove the "0x" and reverse the order in pairs of two.
40b25ed0 = D0 5E B2 40
D0 5E B2 40 is the "Black Bars" HEX
Get "Ratio" HEX:
Take the RATIO FORM of your ratio and input it into a the A and B boxes of a Ratio Calculator, I used: http://www.calculatorsoup.com/calculators/math/ratios.php
Put "9" in D and calculate for the missing C variable;
Take the "C" result and input it into an IEE 754 converter, I used: https://www.h-schmidt.net/FloatConverter/IEEE754.html
It will give you something like: 0x4248aaab
Remove the "0x" and reverse the order in pairs of two.
4248aaab = AB AA 48 42
AB AA 48 42 is the "Ratio" HEX
Hope this is correct and helps. I am kind of in a rush.


