Skip to content

aperture: utils: Optimize best mode selection for 16:9

Robert Mader requested to merge rmader/snapshot:mode-selection-improvements into main

Use that ratio by default as it:

  1. Works well in various use-cases, notably mobile phones.
  2. Is used by default in various apps and specs.
  3. Is thus well supported across the stack such as encoders etc.

The algorithm now tries to selects a mode in the following order:

  1. The biggest mode with 16:9 ratio between 640x480 and 1920x1080.
  2. The biggest mode with any other ratio between 640x480 and 1920x1080.
  3. Give up, just whatever mode comes first.

Tested on various devices with quite good results.


Related:

Edited by Robert Mader

Merge request reports

Loading