add a hardware-only libavcodec decoder
This allows using the hardware decoder with more priority than any software decoder, in particular AV1 decoding in hardware or through dav1d.
If the hardware decoding is not possible (based on the profile found) we fallback to whatever decoder that can handle the stream.
Draft until !322 (merged) is merged.
Edited by Steve Lhomme