Skip to content

media: rockchip: Add the rkvdec driver

Boris Brezillon linux-devicetree linux-media linux-rockchip 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 11 repliesIn review
  2. v24 patches 0 repliesSuperseded
  3. v1 RFC5 patches 5 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7media: vb2: Add a helper to get the vb2 buffer attached to a requestdrivers/media/common/videobuf2/videobuf2-core.c include/media/videobuf2-core.h+34 -02 replies
2/7media: uapi: h264: Add DPB entry field reference flagsDocumentation/media/uapi/v4l/ext-ctrls-codec.rst include/media/h264-ctrls.h+18 -00 replies
3/7media: v4l2-core: Add helpers to build the H264 P/B0/B1 reflistsdrivers/media/v4l2-core/Kconfig drivers/media/v4l2-core/Makefile drivers/media/v4l2-core/v4l2-h264.c +1 more+349 -00 replies
4/7media: hantro: h264: Use the generic H264 reflist builderdrivers/staging/media/hantro/hantro_h264.c+8 -2292 replies
5/7media: dt-bindings: rockchip: Document RK3399 Video Decoder bindingsDocumentation/devicetree/bindings/media/rockchip,vdec.yaml+71 -04 replies
6/7media: rkvdec: Add the rkvdec driverdrivers/staging/media/Kconfig drivers/staging/media/Makefile drivers/staging/media/rkvdec/Kconfig +5 more+2668 -03 replies
7/7arm64: dts: rockchip: rk3399: Define the rockchip Video Decoder nodearch/arm64/boot/dts/rockchip/rk3399.dtsi+13 -10 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchRob Herring
1/7
2/7
3/7
4/7
5/7R-b
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/7] media: rockchip: Add the rkvdec driver

Hello,

This is v3 of the rkvdec driver adding both the core of the driver and a backend to decode H24 streams.

The most notable change in this version is the addition of generic helpers to build the reflists, along with Jonas' patch adding new DPB flags to express the field being referenced by each DPB entry.

Driver-wise, a few things have been reworked/clarified, but most of the code is unchanged. See the changelog attached to each patch for more details.

Regards,

Boris

Boris Brezillon (6):
media: vb2: Add a helper to get the vb2 buffer attached to a request
media: v4l2-core: Add helpers to build the H264 P/B0/B1 reflists
media: hantro: h264: Use the generic H264 reflist builder
media: dt-bindings: rockchip: Document RK3399 Video Decoder bindings
media: rkvdec: Add the rkvdec driver
arm64: dts: rockchip: rk3399: Define the rockchip Video Decoder node

Jonas Karlman (1):
media: uapi: h264: Add DPB entry field reference flags

 .../bindings/media/rockchip,vdec.yaml         |   71 +
 .../media/uapi/v4l/ext-ctrls-codec.rst        |   16 +
 arch/arm64/boot/dts/rockchip/rk3399.dtsi      |   14 +-
 .../media/common/videobuf2/videobuf2-core.c   |   23 +
 drivers/media/v4l2-core/Kconfig               |    4 +
 drivers/media/v4l2-core/Makefile              |    1 +
 drivers/media/v4l2-core/v4l2-h264.c           |  258 ++++
 drivers/staging/media/Kconfig                 |    2 +
 drivers/staging/media/Makefile                |    1 +
 drivers/staging/media/hantro/hantro_h264.c    |  237 +---
 drivers/staging/media/rkvdec/Kconfig          |   15 +
 drivers/staging/media/rkvdec/Makefile         |    3 +
 drivers/staging/media/rkvdec/rkvdec-h264.c    | 1154 +++++++++++++++++
 drivers/staging/media/rkvdec/rkvdec-regs.h    |  239 ++++
 drivers/staging/media/rkvdec/rkvdec.c         | 1130 ++++++++++++++++
 drivers/staging/media/rkvdec/rkvdec.h         |  124 ++
 include/media/h264-ctrls.h                    |    2 +
 include/media/v4l2-h264.h                     |   86 ++
 include/media/videobuf2-core.h                |   11 +
 19 files changed, 3161 insertions(+), 230 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/media/rockchip,vdec.yaml
 create mode 100644 drivers/media/v4l2-core/v4l2-h264.c
 create mode 100644 drivers/staging/media/rkvdec/Kconfig
 create mode 100644 drivers/staging/media/rkvdec/Makefile
 create mode 100644 drivers/staging/media/rkvdec/rkvdec-h264.c
 create mode 100644 drivers/staging/media/rkvdec/rkvdec-regs.h
 create mode 100644 drivers/staging/media/rkvdec/rkvdec.c
 create mode 100644 drivers/staging/media/rkvdec/rkvdec.h
 create mode 100644 include/media/v4l2-h264.h
Signature · 1 line
2.23.0