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>
commitd9d6b4471996a8b6c3cc5e8e42b3f4b59c81ceb8
parentcc02a6c8324d6c5b9a1a65b8d8ef957bbc08e190
authorAndy Nichols <andy.nichols@qt.io>
committerAndy Nichols <andy.nichols@qt.io>
commit timeThu, 27 Aug 2026 12:57:23 +0000