FFmpeg: Make encoder pixel-format scoring alpha-aware


scoreTargetSwFormat() picked a target sw pixel format purely by
matching total bits-per-pixel, with no notion of whether the
source's alpha channel is actually meaningful. For an opaque source
whose Qt pixel format merely has an alpha-shaped padding byte (e.g.
Format_BGRX8888).
* do not the alpha bit depth into account when source is opaque
* penalize formats with alpha channel if the source is opaque

Pick-to: 6.12
Change-Id: I09037eb43995d5164e495f4f4ec37b9ba7eaddd5
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
commit8b72797561a69d9677a6c23e58dcb5c0b80f48ac
parent329ad287d970174b0985f5316ced02a9e6ce1641
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeWed, 16 Sep 2026 14:33:10 +0000