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>