linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@collabora.com>
To: Mauro Carvalho Chehab <m.chehab@samsung.com>,
	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>,
	Hirokazu Honda <hiroh@chromium.org>,
	Nicolas Dufresne <nicolas@ndufresne.ca>,
	Boris Brezillon <boris.brezillon@collabora.com>
Subject: [RFC PATCH 0/3] media: v4l2: Add extended fmt and buffer ioctls
Date: Tue, 19 Mar 2019 15:52:40 +0100	[thread overview]
Message-ID: <20190319145243.25047-1-boris.brezillon@collabora.com> (raw)

Hello,

This RFC follows the discussion started by Hans [1] a few months back.
It does not try to address all the problem reported in this thread but
instead focuses on the FMT and BUF(S) ioctls.

Note that my primary goal is to unify handling for multiplanar and
singleplanar formats and extend things to support the "single dmabuf
storing all pixel planes" issue.

This is just preliminary work, and nothing has been tested yet (still
patching the VB2/VIVID code to test everything), but it should give
a good idea of what the new APIs could look like. I hope to get
feedback early on so I can adjust the structs/hooks before going into
heavy refactoring of the VB2 core (and drivers depending on the VB2
helpers).

One last thing, I'm new to the media/v4l2 subsystem, so I likely got a
few things wrong.

Regards,

Boris

[1]https://www.mail-archive.com/linux-media@vger.kernel.org/msg135729.html

Boris Brezillon (2):
  media: v4l2: Get rid of ->vidioc_enum_fmt_vid_{cap,out}_mplane
  media: v4l2: Extend pixel formats to unify single/multi-planar
    handling (and more)

Hans Verkuil (1):
  media: v4l2: Add extended buffer operations

 drivers/media/pci/intel/ipu3/ipu3-cio2.c      |   2 +-
 drivers/media/platform/exynos-gsc/gsc-m2m.c   |   4 +-
 .../media/platform/exynos4-is/fimc-capture.c  |   2 +-
 .../platform/exynos4-is/fimc-isp-video.c      |   2 +-
 drivers/media/platform/exynos4-is/fimc-lite.c |   2 +-
 drivers/media/platform/exynos4-is/fimc-m2m.c  |   4 +-
 .../media/platform/mtk-jpeg/mtk_jpeg_core.c   |   4 +-
 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c  |   4 +-
 .../platform/mtk-vcodec/mtk_vcodec_dec.c      |   4 +-
 .../platform/mtk-vcodec/mtk_vcodec_enc.c      |   4 +-
 .../media/platform/qcom/camss/camss-video.c   |   2 +-
 drivers/media/platform/qcom/venus/vdec.c      |   4 +-
 drivers/media/platform/qcom/venus/venc.c      |   4 +-
 drivers/media/platform/rcar_fdp1.c            |   4 +-
 drivers/media/platform/rcar_jpu.c             |   4 +-
 drivers/media/platform/renesas-ceu.c          |   2 +-
 drivers/media/platform/s5p-mfc/s5p_mfc_dec.c  |   4 +-
 drivers/media/platform/s5p-mfc/s5p_mfc_enc.c  |   4 +-
 drivers/media/platform/ti-vpe/vpe.c           |   4 +-
 drivers/media/platform/vicodec/vicodec-core.c |   2 -
 drivers/media/platform/vivid/vivid-core.c     |   6 +-
 .../media/platform/vivid/vivid-vid-common.c   |  20 -
 .../media/platform/vivid/vivid-vid-common.h   |   2 -
 drivers/media/v4l2-core/v4l2-common.c         | 281 ++++++
 drivers/media/v4l2-core/v4l2-dev.c            |  32 +-
 drivers/media/v4l2-core/v4l2-ioctl.c          | 831 +++++++++++++++---
 drivers/staging/media/ipu3/ipu3-v4l2.c        |   4 +-
 .../media/rockchip/vpu/rockchip_vpu_enc.c     |   4 +-
 include/media/v4l2-common.h                   |  12 +
 include/media/v4l2-ioctl.h                    |  65 +-
 include/uapi/linux/videodev2.h                | 207 +++++
 31 files changed, 1332 insertions(+), 198 deletions(-)

-- 
2.20.1


             reply	other threads:[~2019-03-19 14:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-19 14:52 Boris Brezillon [this message]
2019-03-19 14:52 ` [RFC PATCH 1/3] media: v4l2: Get rid of ->vidioc_enum_fmt_vid_{cap,out}_mplane Boris Brezillon
2019-03-19 14:52 ` [RFC PATCH 2/3] media: v4l2: Extend pixel formats to unify single/multi-planar handling (and more) Boris Brezillon
2019-03-19 17:37   ` Brian Starkey
2019-03-19 20:21     ` Boris Brezillon
2019-03-19 18:07   ` Nicolas Dufresne
2019-03-19 20:02     ` Boris Brezillon
2019-03-19 14:52 ` [RFC PATCH 3/3] media: v4l2: Add extended buffer operations Boris Brezillon
2019-03-20 17:30   ` Nicolas Dufresne

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=20190319145243.25047-1-boris.brezillon@collabora.com \
    --to=boris.brezillon@collabora.com \
    --cc=hans.verkuil@cisco.com \
    --cc=hiroh@chromium.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.chehab@samsung.com \
    --cc=nicolas@ndufresne.ca \
    --cc=sakari.ailus@iki.fi \
    --cc=tfiga@chromium.org \
    /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;
as well as URLs for NNTP newsgroup(s).