ohos: Fix camera preview aspect ratio and orientation
The camera preview was stretched and did not follow the device: the
preview QVideoFrame was always emitted at the fixed sensor profile
size with no rotation.
OH_NativeImage's transform matrix corrects the sensor mounting and,
for this sensor, swaps the x and y axes, so the upright aspect is the
transpose of the sensor profile. Emit at the transposed size when the
axes are swapped.
The transform leaves the frame upright only for the display's natural
orientation, so also set QVideoFrameFormat::setRotation() to the angle
between that and the current orientation, which QScreen now reports.
QOhosVideoOutput also serves the media player, whose frames carry
their own orientation, so rotate camera content only. QScreen is read
on the GUI thread and published to the texture thread, which must not
touch it.
Task-number: QTBUG-148852
Pick-to: 6.12
Change-Id: Ibc89780bbe98f61882b1e20bae56f3b317ad1dfa
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>