From: Boris Brezillon <boris.brezillon@collabora.com>
To: Mauro Carvalho Chehab <mchehab@kernel.org>,
Hans Verkuil <hans.verkuil@cisco.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Sakari Ailus <sakari.ailus@iki.fi>,
linux-media@vger.kernel.org
Cc: Tomasz Figa <tfiga@chromium.org>,
Nicolas Dufresne <nicolas@ndufresne.ca>,
kernel@collabora.com,
Paul Kocialkowski <paul.kocialkowski@bootlin.com>,
Maxime Ripard <maxime.ripard@bootlin.com>,
Ezequiel Garcia <ezequiel@collabora.com>,
Jonas Karlman <jonas@kwiboo.se>,
Jernej Skrabec <jernej.skrabec@siol.net>,
Alexandre Courbot <acourbot@chromium.org>,
Thierry Reding <thierry.reding@gmail.com>,
Philipp Zabel <p.zabel@pengutronix.de>,
Boris Brezillon <boris.brezillon@collabora.com>
Subject: [RFC PATCH 0/5] media: v4l2: Add m2m codec helpers
Date: Mon, 5 Aug 2019 11:48:22 +0200 [thread overview]
Message-ID: <20190805094827.11205-1-boris.brezillon@collabora.com> (raw)
Hello,
This patch series is an attempt at factorizing some of the boiler plate
code that we find in most stateless codec drivers (and potentially
stateful codec ones too). It's been designed mostly based on the hantro
and cedrus driver and I decided to implement a third one using these
helpers to prove that they can be used more widely.
Those helpers are rather basic, and we could probably extend them (or
add new ones) to further simplify codec drivers, but with those in place
we already have a good level of code re-usability without forcing anyone
to use them if they feel they need things to be done differently.
Note that the H264 codec lib should soon see addition of helpers to
create the P/B0/B1 reflists (which are needed by both the hantro and
rockchip drivers), but I'd like the uAPI discussion on how to support
interlaced content to take place before providing generic helpers for
that.
I'd appreciate some feedback on patches 1-4. Patch 5 is here to show
how those helpers can be used and has dependencies on various H264 that
are still being discussed [1][2], so expect some kbuild failure reports.
Thanks,
Boris
[1]https://patchwork.kernel.org/patch/11004013/
[2]https://patchwork.kernel.org/project/linux-media/list/?series=129567
Boris Brezillon (5):
media: vb2: Add a helper to get the vb2 buffer attached to a request
media: v4l2: Prepare things for addition of m2m codec helpers
media: v4l2: Add m2m codec helpers
media: v4l2: Provide helpers for H264 codecs
media: rockchip: Add the rkvdec driver
.../media/common/videobuf2/videobuf2-core.c | 23 +
drivers/media/v4l2-core/Kconfig | 9 +
drivers/media/v4l2-core/Makefile | 3 +
drivers/media/v4l2-core/v4l2-mem2mem-codec.c | 1170 +++++++++++++++++
.../{v4l2-mem2mem.c => v4l2-mem2mem-core.c} | 0
.../media/v4l2-core/v4l2-mem2mem-h264-codec.c | 47 +
drivers/staging/media/Kconfig | 2 +
drivers/staging/media/Makefile | 1 +
drivers/staging/media/rockchip/Kconfig | 16 +
drivers/staging/media/rockchip/Makefile | 2 +
drivers/staging/media/rockchip/vdec/Kconfig | 16 +
drivers/staging/media/rockchip/vdec/Makefile | 3 +
.../staging/media/rockchip/vdec/rkvdec-h264.c | 909 +++++++++++++
.../staging/media/rockchip/vdec/rkvdec-regs.h | 305 +++++
drivers/staging/media/rockchip/vdec/rkvdec.c | 564 ++++++++
drivers/staging/media/rockchip/vdec/rkvdec.h | 94 ++
include/media/v4l2-mem2mem-codec.h | 317 +++++
include/media/v4l2-mem2mem-h264-codec.h | 100 ++
include/media/videobuf2-core.h | 11 +
19 files changed, 3592 insertions(+)
create mode 100644 drivers/media/v4l2-core/v4l2-mem2mem-codec.c
rename drivers/media/v4l2-core/{v4l2-mem2mem.c => v4l2-mem2mem-core.c} (100%)
create mode 100644 drivers/media/v4l2-core/v4l2-mem2mem-h264-codec.c
create mode 100644 drivers/staging/media/rockchip/Kconfig
create mode 100644 drivers/staging/media/rockchip/Makefile
create mode 100644 drivers/staging/media/rockchip/vdec/Kconfig
create mode 100644 drivers/staging/media/rockchip/vdec/Makefile
create mode 100644 drivers/staging/media/rockchip/vdec/rkvdec-h264.c
create mode 100644 drivers/staging/media/rockchip/vdec/rkvdec-regs.h
create mode 100644 drivers/staging/media/rockchip/vdec/rkvdec.c
create mode 100644 drivers/staging/media/rockchip/vdec/rkvdec.h
create mode 100644 include/media/v4l2-mem2mem-codec.h
create mode 100644 include/media/v4l2-mem2mem-h264-codec.h
--
2.21.0
next reply other threads:[~2019-08-05 9:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-05 9:48 Boris Brezillon [this message]
2019-08-05 9:48 ` [RFC PATCH 1/5] media: vb2: Add a helper to get the vb2 buffer attached to a request Boris Brezillon
2019-08-05 13:12 ` Hans Verkuil
2019-08-05 14:13 ` Boris Brezillon
2019-08-05 16:56 ` Hans Verkuil
2019-08-05 9:48 ` [RFC PATCH 2/5] media: v4l2: Prepare things for addition of m2m codec helpers Boris Brezillon
2019-08-05 9:48 ` [RFC PATCH 3/5] media: v4l2: Add " Boris Brezillon
2019-08-05 16:53 ` Hans Verkuil
2019-08-05 17:59 ` Boris Brezillon
2019-08-05 9:48 ` [RFC PATCH 4/5] media: v4l2: Provide helpers for H264 codecs Boris Brezillon
2019-08-05 9:48 ` [RFC PATCH 5/5] media: rockchip: Add the rkvdec driver Boris Brezillon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190805094827.11205-1-boris.brezillon@collabora.com \
--to=boris.brezillon@collabora.com \
--cc=acourbot@chromium.org \
--cc=ezequiel@collabora.com \
--cc=hans.verkuil@cisco.com \
--cc=jernej.skrabec@siol.net \
--cc=jonas@kwiboo.se \
--cc=kernel@collabora.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=maxime.ripard@bootlin.com \
--cc=mchehab@kernel.org \
--cc=nicolas@ndufresne.ca \
--cc=p.zabel@pengutronix.de \
--cc=paul.kocialkowski@bootlin.com \
--cc=sakari.ailus@iki.fi \
--cc=tfiga@chromium.org \
--cc=thierry.reding@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox