FFmpeg,Windows: Honor the frame rate of the requested camera format


findVideoType() picked the first native Media Foundation media type
matching the requested resolution and pixel format, ignoring frame
rate entirely, since MF enumerates one native type per discrete rate.
The delivered rate therefore depended on driver enumeration order, not
on the requested QCameraFormat, and this rate also propagated to the
recording engine as the source frame rate.

Selection now inverts the mapping used to build QCameraDevice's format
list, so the native type a format was derived from scores an exact
match. When nothing matches exactly, the nearest maximum frame rate
wins, with minimum rate as tie-break.

Fixes: QTBUG-149497
Pick-to: 6.12 6.11
Assisted-by: Claude Code
Change-Id: I75ca7c036d7a9d3d2f442033b894b498e45195d0
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
commit2352d257675855719f3ee606d5d8e89dc2e6d77e
parent5327fe3053648c77068d73f18ef51805a4925717
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeWed, 26 Aug 2026 11:55:03 +0000