Enable V4L2 AV1 hardware decoder
There are two kind of V4L2 AV1 decoders in mainline linux:
- Stateful API, found on qcom SoCs like SM8550(snapdragon 8gen2) and some other downstream kernels
- Stateless API, found on mediatek SoCs and Rockchip RK3588
And with this commit merged since chromium v139, it is possible to enable V4L2 AV1 decoder with flag use_av1_hw_decoder=true.
V4L2 stateless API is merged to mainline kernel since v6.5, so we can only enable use_av1_hw_decoder when there is linux-libc-dev no lower than 6.5.
I have tested V4L2 AV1 decoder on:
- Cix P1 SoC(with stateful API)
- Rockchip RK3588(with stateless API). The patch included in this MR already merged to chromium v145 is necessary to fix a green screen issue when playing AV1 videos.
Edited by Jianfeng Liu