VideoFrameEncoderUPtr: simplify hw device type getter


`getHwDeviceType` returned an iterator, which leads to an interface with
a lot of shared state.
We simplify it by converting it to a free function without the need for
context. It will require one additional lookup in the deviceTypes list,
but this list is short and the scoring could eventually be moved to an
extra lookup table

Pick-to: 6.12
Change-Id: I00518a0b3c1eb7d0843f888519f7f2ee294d98bc
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
commit467fc0e26aa0864aaaaeff500a798f1b5ae77599
parent6cdbd57e0a2663aada1c5a1a52357ead68ab04a9
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeTue, 11 Aug 2026 12:34:39 +0000