Skip to content

media: verisilicon: Create AV1 helper library

Benjamin Gaignard linux-arm-kernel linux-media linux-rockchip lkml stable 9 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest4 patches 2 repliesIn review
  2. v83 patches 1 replySuperseded
  3. v73 patches 5 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v61 patch2 repliesSuperseded
v51 patch2 repliesSuperseded
v41 patch2 repliesSuperseded
v31 patch2 repliesSuperseded
v21 patch1 replySuperseded
v11 patch0 repliesSuperseded

Changes in v9 from the cover letter

- Split core changes and drivers changes
- Add V4L2_AV1_REF_FRAME_INVALID
- Rework checks in validate_av1_reference_index() to be sure that all values of ref_frame_idx[] are in the correct range.

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4media: v4l2-ctrls: validate AV1 reference frame indexdrivers/media/v4l2-core/v4l2-ctrls-core.c include/uapi/linux/v4l2-controls.h+32 -01 reply
2/4media: verisilicon: Use V4L2_AV1_PRIMARY_REF_NONE and V4L2_AV1_REF_FRAME_INVALIDdrivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c+6 -81 reply
3/4media: verisilicon: AV1: Fix luma sizedrivers/media/platform/verisilicon/rockchip_vpu981_hw_av1_dec.c+1 -10 replies
4/4media: verisilicon: Create AV1 helper librarydrivers/media/platform/verisilicon/Makefile drivers/media/platform/verisilicon/hantro_av1.c drivers/media/platform/verisilicon/hantro_av1.h +8 more+1131 -10860 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchNicolas Dufresne
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v9 thread

Cover letter [PATCH v9 0/4] media: verisilicon: Create AV1 helper library

Regroup all none hardware related AV1 functions into a helper library. The goal is to avoid code duplication for future AV1 codecs.

Tested on rock 5b board Fluster score remains the same 204/241.

changes in v9:
- Split core changes and drivers changes
- Add V4L2_AV1_REF_FRAME_INVALID
- Rework checks in validate_av1_reference_index() to be sure that all values of ref_frame_idx[] are in the correct range.

changes in v8
- check reference frame index when validating the frame before calling the driver.
- add Reviewed-by tag and CC stable kernel.

changes in v7:
- prepend 2 patches with Fixes tag for backport
- rebase the series on v7.4-rc3 tag

changes in v6:
- include b84f6533a8ed ("media: verisilicon: rockchip: guard VPU981 AV1 divisor and tile buffer") and 367db8b23c26 ("media: verisilicon: rockchip: reject AV1 frames exceeding the tile capacity") fixes into the patch to not losing these improvements.

Benjamin Gaignard (4):
media: v4l2-ctrls: validate AV1 reference frame index
media: verisilicon: Use V4L2_AV1_PRIMARY_REF_NONE and

    V4L2_AV1_REF_FRAME_INVALID

media: verisilicon: AV1: Fix luma size
media: verisilicon: Create AV1 helper library

 drivers/media/platform/verisilicon/Makefile   |    7 +-
 .../media/platform/verisilicon/hantro_av1.c   |  807 ++++++++++++
 .../media/platform/verisilicon/hantro_av1.h   |   64 +
 ...entropymode.c => hantro_av1_entropymode.c} |   18 +-
 ...entropymode.h => hantro_av1_entropymode.h} |   18 +-
 ...av1_filmgrain.c => hantro_av1_filmgrain.c} |  125 +-
 .../verisilicon/hantro_av1_filmgrain.h        |   48 +
 .../media/platform/verisilicon/hantro_hw.h    |    7 +-
 .../verisilicon/rockchip_av1_filmgrain.h      |   36 -
 .../verisilicon/rockchip_vpu981_hw_av1_dec.c  | 1082 ++---------------
 .../platform/verisilicon/rockchip_vpu_hw.c    |    7 +-
 drivers/media/v4l2-core/v4l2-ctrls-core.c     |   30 +
 include/uapi/linux/v4l2-controls.h            |    2 +
 13 files changed, 1163 insertions(+), 1088 deletions(-)
 create mode 100644 drivers/media/platform/verisilicon/hantro_av1.c
 create mode 100644 drivers/media/platform/verisilicon/hantro_av1.h
 rename drivers/media/platform/verisilicon/{rockchip_av1_entropymode.c => hantro_av1_entropymode.c} (99%)
 rename drivers/media/platform/verisilicon/{rockchip_av1_entropymode.h => hantro_av1_entropymode.h} (95%)
 rename drivers/media/platform/verisilicon/{rockchip_av1_filmgrain.c => hantro_av1_filmgrain.c} (85%)
 create mode 100644 drivers/media/platform/verisilicon/hantro_av1_filmgrain.h
 delete mode 100644 drivers/media/platform/verisilicon/rockchip_av1_filmgrain.h
Signature · 1 line
2.53.0