As I said, and as expected
, my previous code seems to be wrong...
I'm a little lost.
And in some cases, it's a real nonsense to use nominal analogue blanking:
*letterboxing when input aspect ratio is less (there is a proportionnality to calculate) than the output aspect ratio, because we lost height's pixels for nothing...
Examples: 1.2 in 4/3, 1.6 in 16/9....
New attempt: