camera-samples
camera-samples copied to clipboard
Do we need to set up targetResolution based on orientation?
In the docs, it says the following:
The resolution Size should be expressed in the coordinate frame after rotating the supported sizes by the target rotation. For example, a device with portrait natural orientation in natural target rotation requesting a portrait image may specify 480x640, and the same device, rotated 90 degrees and targeting landscape orientation may specify 640x480.
So do we need to switch width and height based on orientation like this: https://gist.github.com/ldstein/bf8b88fabc27617dca891aa3be58f9d7
I cannot find an official example.