QVideoFrameConverter: Fix vertical flip on Vulkan
qImageFromVideoFrame()'s shader-based (RHI) path rendered every frame
upside-down on Vulkan: the vertical flip needed to compensate for its
clip-space Y convention was never applied.
Two independent effects can each flip the rendered quad vertically
before it reaches the QImage built from the readback result:
readback row order is inverted iff QRhi::isYUpInFramebuffer() (true
only for OpenGL), and g_quad is authored for Y-up NDC, so it renders
vertically mirrored on any backend whose NDC is not Y-up
(QRhi::isYUpInNDC() false; true only for Vulkan, currently). A flip
is needed iff exactly one of the two applies, since they cancel out
otherwise. The previous code only accounted for the first effect,
leaving Vulkan flipped since it is the only backend affected by the
second.
Pick-to: 6.12
Change-Id: Ia7dce85920c3b2f2eaa848ebae4193f888b83694
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>