Hi all, This PR adds support for the AV1 stateless decoder API. The first patch adds the public API for this, then AV1 support is added to the verisilicon driver, and the last patch adds support to the mediatek driver. Many thanks to Collabora and MediaTek for working on this! Much appreciated! Regards, Hans The following changes since commit aafeeaf3d2a8a91a5407c774c578abec79dcff00: media: video-mux: update driver to active state (2023-05-26 10:58:18 +0100) are available in the Git repository at: git://linuxtv.org/hverkuil/media_tree.git tags/br-v6.5c for you to fetch changes up to d50739a417aba71e47bc48598d920ec692e1c6a8: media: mediatek: vcodec: support stateless AV1 decoder (2023-05-26 12:58:12 +0200) ---------------------------------------------------------------- Tag branch ---------------------------------------------------------------- Benjamin Gaignard (12): dt-bindings: media: rockchip-vpu: Add rk3588 vpu compatible media: AV1: Make sure that bit depth in correctly initialize media: Add NV15_4L4 pixel format media: verisilicon: Get bit depth for V4L2_PIX_FMT_NV15_4L4 media: verisilicon: Add AV1 decoder mode and controls media: verisilicon: Check AV1 bitstreams bit depth media: verisilicon: Compute motion vectors size for AV1 frames media: verisilicon: Add AV1 entropy helpers media: verisilicon: Add Rockchip AV1 decoder media: verisilicon: Add film grain feature to AV1 driver media: verisilicon: Enable AV1 decoder on rk3588 media: verisilicon: Conditionally ignore native formats Daniel Almeida (1): media: Add AV1 uAPI Nicolas Dufresne (1): v4l2-common: Add support for fractional bpp Xiaoyong Lu (1): media: mediatek: vcodec: support stateless AV1 decoder Documentation/devicetree/bindings/media/rockchip-vpu.yaml | 1 + Documentation/userspace-api/media/v4l/biblio.rst | 9 + Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst | 1209 +++++++++++++++++++++++- Documentation/userspace-api/media/v4l/pixfmt-compressed.rst | 16 + Documentation/userspace-api/media/v4l/pixfmt-yuv-planar.rst | 16 + Documentation/userspace-api/media/v4l/vidioc-g-ext-ctrls.rst | 16 + Documentation/userspace-api/media/v4l/vidioc-queryctrl.rst | 24 + Documentation/userspace-api/media/videodev2.h.rst.exceptions | 4 + drivers/media/platform/mediatek/vcodec/Makefile | 1 + drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_stateless.c | 42 + drivers/media/platform/mediatek/vcodec/mtk_vcodec_drv.h | 1 + drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c | 2207 +++++++++++++++++++++++++++++++++++++++++++ drivers/media/platform/mediatek/vcodec/vdec_drv_if.c | 4 + drivers/media/platform/mediatek/vcodec/vdec_drv_if.h | 1 + drivers/media/platform/mediatek/vcodec/vdec_msg_queue.c | 27 + drivers/media/platform/mediatek/vcodec/vdec_msg_queue.h | 4 + drivers/media/platform/verisilicon/Makefile | 3 + drivers/media/platform/verisilicon/hantro.h | 8 + drivers/media/platform/verisilicon/hantro_drv.c | 68 +- drivers/media/platform/verisilicon/hantro_hw.h | 102 ++ drivers/media/platform/verisilicon/hantro_postproc.c | 9 +- drivers/media/platform/verisilicon/hantro_v4l2.c | 67 +- drivers/media/platform/verisilicon/hantro_v4l2.h | 8 +- drivers/media/platform/verisilicon/rockchip_av1_entropymode.c | 4424 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ drivers/media/platform/verisilicon/rockchip_av1_entropymode.h | 272 ++++++ drivers/media/platform/verisilicon/rockchip_av1_filmgrain.c | 401 ++++++++ drivers/media/platform/verisilicon/rockchip_av1_filmgrain.h | 36 + drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c | 2232 +++++++++++++++++++++++++++++++++++++++++++ drivers/media/platform/verisilicon/rockchip_vpu981_regs.h | 477 ++++++++++ drivers/media/platform/verisilicon/rockchip_vpu_hw.c | 134 +++ drivers/media/v4l2-core/v4l2-common.c | 158 ++-- drivers/media/v4l2-core/v4l2-ctrls-core.c | 263 ++++++ drivers/media/v4l2-core/v4l2-ctrls-defs.c | 61 ++ drivers/media/v4l2-core/v4l2-ioctl.c | 2 + include/media/v4l2-common.h | 2 + include/media/v4l2-ctrls.h | 8 + include/uapi/linux/v4l2-controls.h | 721 ++++++++++++++ include/uapi/linux/videodev2.h | 11 + 38 files changed, 12946 insertions(+), 103 deletions(-) create mode 100644 drivers/media/platform/mediatek/vcodec/vdec/vdec_av1_req_lat_if.c create mode 100644 drivers/media/platform/verisilicon/rockchip_av1_entropymode.c create mode 100644 drivers/media/platform/verisilicon/rockchip_av1_entropymode.h create mode 100644 drivers/media/platform/verisilicon/rockchip_av1_filmgrain.c create mode 100644 drivers/media/platform/verisilicon/rockchip_av1_filmgrain.h create mode 100644 drivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c create mode 100644 drivers/media/platform/verisilicon/rockchip_vpu981_regs.h