From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
linux-media <linux-media@vger.kernel.org>,
Volokh Konstantin <volokh84@gmail.com>,
Pete Eberlein <pete@sensoray.com>,
Ismael Luceno <ismael.luceno@corp.bluecherry.net>,
Sylwester Nawrocki <sylvester.nawrocki@gmail.com>,
Kamil Debski <k.debski@samsung.com>,
sakari.ailus@iki.fi
Subject: Re: [RFC] Motion Detection API
Date: Tue, 07 May 2013 16:04:10 +0200 [thread overview]
Message-ID: <518909DA.8000407@samsung.com> (raw)
In-Reply-To: <201305071435.30062.hverkuil@xs4all.nl>
On 05/07/2013 02:35 PM, Hans Verkuil wrote:
> A metadata plane works well if you have substantial amounts of data (e.g. histogram
> data) but it has the disadvantage of requiring you to use the MPLANE buffer types,
> something which standard apps do not support. I definitely think that is overkill
> for things like this.
Standard application could use the MPLANE interface through the libv4l-mplane
plugin [1]. And meta-data plane could be handled in libv4l, passed in raw form
from the kernel.
There can be substantial amount of meta-data per frame and we were considering
e.g. creating separate buffer queue for meta-data, to be able to use mmaped
buffer at user space, rather than parsing and copying data multiple times in
the kernel until it gets into user space and is further processed there.
I'm actually not sure if performance is a real issue here, were are talking
of 1.5 KiB order amounts of data per frame. Likely on x86 desktop machines
it is not a big deal, for ARM embedded platforms we would need to do some
profiling.
I'm not sure myself yet how much such motion/object detection data should be
interpreted in the kernel, rather than in user space. I suspect some generic
API like in your $subject RFC makes sense, it would cover as many cases as
possible. But I was wondering how much it makes sense to design a sort of
raw interface/buffer queue (similar to raw sockets concept), that would allow
user space libraries to parse meta-data.
The format of meta-data could for example have changed after switching to
a new version of device's firmware. It might be rare, I'm just trying to say
I would like to avoid designing a kernel interface that might soon become a
limitation.
Besides, I have been thinking of allowing application/libs to request an
additional meta-data plane, which would be driver-specific. For instance
it turns the Samsung S5C73M3 camera can send meta-data for YUV formats
as well as for interleaved JPEG/YUV.
[1] http://git.linuxtv.org/v4l-utils.git/commit/ced1be346fe4f61c864cba9d81f66089d4e32a56
Regards,
Sylwester
next prev parent reply other threads:[~2013-05-07 14:04 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-12 15:36 [RFC] Motion Detection API Hans Verkuil
2013-04-21 12:04 ` Ismael Luceno
2013-04-22 7:55 ` Hans Verkuil
2013-04-29 20:52 ` Laurent Pinchart
2013-05-06 13:41 ` Hans Verkuil
2013-05-07 12:09 ` Laurent Pinchart
2013-05-07 12:35 ` Hans Verkuil
2013-05-07 14:04 ` Sylwester Nawrocki [this message]
2013-05-08 16:26 ` Sakari Ailus
2013-05-08 22:12 ` Sylwester Nawrocki
2013-05-21 17:30 ` Sakari Ailus
2013-05-22 21:41 ` Sylwester Nawrocki
2013-06-03 1:25 ` Sakari Ailus
2013-06-09 17:56 ` Sylwester Nawrocki
2013-08-21 10:45 ` Sakari Ailus
2013-05-07 20:59 ` Sakari Ailus
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=518909DA.8000407@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=hverkuil@xs4all.nl \
--cc=ismael.luceno@corp.bluecherry.net \
--cc=k.debski@samsung.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=pete@sensoray.com \
--cc=sakari.ailus@iki.fi \
--cc=sylvester.nawrocki@gmail.com \
--cc=volokh84@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