aperture: utils: Optimize best mode selection for 16:9
Use that ratio by default as it:
- Works well in various use-cases, notably mobile phones.
- Is used by default in various apps and specs.
- Is thus well supported across the stack such as encoders etc.
The algorithm now tries to selects a mode in the following order:
- The biggest mode with 16:9 ratio between 640x480 and 1920x1080.
- The biggest mode with any other ratio between 640x480 and 1920x1080.
- Give up, just whatever mode comes first.
Tested on various devices with quite good results.
Related:
Edited by Robert Mader