Skip to content

media: verisilicon: simplify auxiliary buffers allocation

Benjamin Gaignard linux-media linux-rockchip lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 5 repliesIn review
  2. v17 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- rebase on top of media: verisilicon: Create AV1 helper library v7
- tag reviewed-by tag
- fix patch 1 and 7 commit messages

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7media: verisilicon: Add helpers to allocate and free auxiliary buffersdrivers/media/platform/verisilicon/hantro.h drivers/media/platform/verisilicon/hantro_postproc.c drivers/media/platform/verisilicon/hantro_v4l2.c+42 -180 replies
2/7media: verisilicon: AV1: Use alloc/free helpers for auxiliary buffersdrivers/media/platform/verisilicon/hantro_av1.c+39 -1383 replies
3/7media: verisilicon: h264: Use alloc/free helpers for auxiliary buffersdrivers/media/platform/verisilicon/hantro_h264.c+2 -72 replies
4/7media: verisilicon: hevc: Use alloc/free helpers for auxiliary buffersdrivers/media/platform/verisilicon/hantro_hevc.c+33 -970 replies
5/7media: verisilicon: vp8: Use alloc/free helpers for auxiliary buffersdrivers/media/platform/verisilicon/hantro_vp8.c+10 -270 replies
6/7media: verisilicon: vp9: Use alloc/free helpers for auxiliary buffersdrivers/media/platform/verisilicon/hantro_vp9.c+11 -260 replies
7/7media: verisilicon: mpeg4: Use alloc/free helpers for auxiliary buffersdrivers/media/platform/verisilicon/hantro_mpeg2.c+2 -150 replies

Reviews trailers per patch

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

PatchNicolas Dufresne
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/7] media: verisilicon: simplify auxiliary buffers allocation

Verisilicon stateless video decoder driver allocates lot of auxiliary buffers to decode bitstreams. These allocations duplicate a lot of code. This series add helpers functions to allocate and free auxiliary buffers. This simplify the driver code and will allow to implement more easly incoming feature like disentanglement data buffers from mv and rfc buffers or adding reference frame support for more codecs.

This series has been tested with fluster on IMX8MP for h264, hevc, vp8 and vp9 codecs, and on rk3588 for av1.

This series depends of this one:
https://patchwork.linuxtv.org/project/linux-media/list/?series=34366

Regards,
Benjamin

changes in v2:
- rebase on top of media: verisilicon: Create AV1 helper library v7
- tag reviewed-by tag
- fix patch 1 and 7 commit messages

Benjamin Gaignard (7):
media: verisilicon: Add helpers to allocate and free auxiliary buffers
media: verisilicon: AV1: Use alloc/free helpers for auxiliary buffers
media: verisilicon: h264: Use alloc/free helpers for auxiliary buffers
media: verisilicon: hevc: Use alloc/free helpers for auxiliary buffers
media: verisilicon: vp8: Use alloc/free helpers for auxiliary buffers
media: verisilicon: vp9: Use alloc/free helpers for auxiliary buffers
media: verisilicon: mpeg4: Use alloc/free helpers for auxiliary
buffers

 drivers/media/platform/verisilicon/hantro.h   |   4 +
 .../media/platform/verisilicon/hantro_av1.c   | 177 ++++--------------
 .../media/platform/verisilicon/hantro_h264.c  |   9 +-
 .../media/platform/verisilicon/hantro_hevc.c  | 130 ++++---------
 .../media/platform/verisilicon/hantro_mpeg2.c |  17 +-
 .../platform/verisilicon/hantro_postproc.c    |  21 +--
 .../media/platform/verisilicon/hantro_v4l2.c  |  35 ++++
 .../media/platform/verisilicon/hantro_vp8.c   |  37 +---
 .../media/platform/verisilicon/hantro_vp9.c   |  37 ++--
 9 files changed, 139 insertions(+), 328 deletions(-)
Signature · 1 line
2.53.0