All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sakari Ailus <sakari.ailus@iki.fi>
To: Sylwester Nawrocki <s.nawrocki@samsung.com>
Cc: Tomasz Figa <tfiga@chromium.org>, Yong Zhi <yong.zhi@intel.com>,
	Linux Media Mailing List <linux-media@vger.kernel.org>,
	Sakari Ailus <sakari.ailus@linux.intel.com>,
	"Zheng, Jian Xu" <jian.xu.zheng@intel.com>,
	"Mani, Rajmohan" <rajmohan.mani@intel.com>,
	"Toivonen, Tuukka" <tuukka.toivonen@intel.com>,
	Hans Verkuil <hverkuil@xs4all.nl>,
	"Yang, Hyungwoo" <hyungwoo.yang@intel.com>
Subject: Re: [PATCH v2 3/3] [media] intel-ipu3: cio2: Add new MIPI-CSI2 driver
Date: Wed, 28 Jun 2017 18:56:07 +0300	[thread overview]
Message-ID: <20170628155607.lljvnhzyquzqxloy@valkosipuli.retiisi.org.uk> (raw)
In-Reply-To: <b110a35c-7c98-0536-7a99-dca6988c608b@samsung.com>

Hi Sylwester,

On Wed, Jun 28, 2017 at 05:44:32PM +0200, Sylwester Nawrocki wrote:
> Hi,
> 
> On 06/28/2017 03:31 PM, Sakari Ailus wrote:
> > IMO VB2/V4L2 could better support conversion between single and
> > multi-planar buffer types so that the applications could just use any and
> > drivers could manage with one.
> > 
> > I don't have a strong opinion either way, but IMO this could be well
> > addressed later on by improving the framework when (or if) the support for
> > formats such as NV12 is added.
> 
> We had already conversion between single and multi-planar buffer types
> in the kernel.  But for some reasons it got removed. [1] The conversion
> is supposed to be done in libv4l2, which is not mandatory so it cannot
> be used to ensure backward compatibility while moving driver from one
> API to the other.
> 
> [1]
> commit 1d0c86cad38678fa42f6d048a7b9e4057c8c16fc
> [media] media: v4l: remove single to multiplane conversion

Thanks for the pointer. I had missed this back then.

Not all applications will be using libv4l2. This is something that would
make sense to do in the kernel IMO. The changes seem pretty minimal to me,
based on the patch.

There is now at least one difference between single-planar and multi-planar
cases; the data_offset field is only present in struct v4l2_plane. That
should be easy to address by adding the field to the single-planar case,
too. (We'll need new buffer structs in the near future anyway, there's no
really a way around that.)

-- 
Kind regards,

Sakari Ailus
e-mail: sakari.ailus@iki.fi	XMPP: sailus@retiisi.org.uk

  reply	other threads:[~2017-06-28 15:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-07  1:34 [PATCH v2 0/3] [media] add IPU3 CIO2 CSI2 driver Yong Zhi
2017-06-07  1:34 ` [PATCH v2 1/3] [media] videodev2.h, v4l2-ioctl: add IPU3 raw10 color format Yong Zhi
2017-06-07  1:34 ` [PATCH v2 2/3] [media] doc-rst: add IPU3 raw10 bayer pixel format definitions Yong Zhi
2017-06-07 17:55   ` Alan Cox
2017-06-07  1:34 ` [PATCH v2 3/3] [media] intel-ipu3: cio2: Add new MIPI-CSI2 driver Yong Zhi
2017-06-12  9:59   ` Tomasz Figa
2017-06-13  8:58     ` Tuukka Toivonen
2017-06-13  9:18       ` Tomasz Figa
2017-06-16 11:48     ` Sakari Ailus
2017-06-26 14:51     ` Sakari Ailus
2017-06-27  9:33       ` Tomasz Figa
2017-06-28 13:31         ` Sakari Ailus
2017-06-28 13:36           ` Tomasz Figa
2017-06-28 14:55             ` Sakari Ailus
     [not found]           ` <CGME20170628154447epcas5p28ba0ff617f6e640185fada0e955e24b0@epcas5p2.samsung.com>
2017-06-28 15:44             ` Sylwester Nawrocki
2017-06-28 15:56               ` Sakari Ailus [this message]
2017-10-06 19:19     ` Zhi, Yong

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=20170628155607.lljvnhzyquzqxloy@valkosipuli.retiisi.org.uk \
    --to=sakari.ailus@iki.fi \
    --cc=hverkuil@xs4all.nl \
    --cc=hyungwoo.yang@intel.com \
    --cc=jian.xu.zheng@intel.com \
    --cc=linux-media@vger.kernel.org \
    --cc=rajmohan.mani@intel.com \
    --cc=s.nawrocki@samsung.com \
    --cc=sakari.ailus@linux.intel.com \
    --cc=tfiga@chromium.org \
    --cc=tuukka.toivonen@intel.com \
    --cc=yong.zhi@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.