Skip to content

[WIP] Add camera orientation override for M10 HD & FHD (cooler/frieza)

Created by: peat-psuwit

This PR adds camera orientation override for M10 HD (cooler). This device gives the orientation of 0 for all cameras while actually has its cameras pointing toward the "bottom" of the device. Except, both the screen and the orientation sensor agrees that the native orientation is "portrait", not the apparent "landscape". This means the back camera's returned orientation must be 270 deg (Qt convention), while the front one's must be 90.

Also, as the number of overrides has grown, I've turned all overrides into a hashmap that can be looked up. This should help organize overrides, should more of them is needed.

This superseded #5, and fixes ubports/ubuntu-touch#1180 (closed).

Merge request reports

Loading