From: Sylwester Nawrocki <snjw23@gmail.com>
To: "Aguirre, Sergio" <saaguirre@ti.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [Query] About V4L2_CAP_VIDEO_CAPTURE_MPLANE device types
Date: Tue, 01 May 2012 22:08:56 +0200 [thread overview]
Message-ID: <4FA042D8.207@gmail.com> (raw)
In-Reply-To: <CAKnK67T3q7Qpv0YUFQT4cvGGtdRtZr=8oiVk57m0McJmJXaFrw@mail.gmail.com>
Hi Sergio,
On 05/01/2012 09:08 PM, Aguirre, Sergio wrote:
> Hi all,
>
> I wonder if there's an example app for v4l2 devices with
> V4L2_CAP_VIDEO_CAPTURE_MPLANE capability?
> (like capture.c in V4L2 API docs)
There isn't at the V4L2 API docs, it probably makes sense to add one though.
I'll try to find a time to prepare a patch for that. A very simple application
with V4L2_CAP_VIDEO_CAPTURE_MPLANE support can be found here:
http://thread.gmane.org/gmane.comp.video.dri.devel/65997
It might be not that straightforward since there is the DMABUF memory type
used. Some more applications using multi-plane API are available at:
http://git.infradead.org/users/kmpark/public-apps
An MMAP memory example can be found here:
http://git.infradead.org/users/kmpark/public-apps/blob/9c057b001e8873861a70f7025214003837a0860b:/v4l2-mfc-example/mfc.c
Please see mfc_dec_setup_capture function.
> Also, does it have to be mutually exclusive with a
> V4L2_CAP_VIDEO_CAPTURE device?
No, the driver could support both. But it generally makes sense to implement
only _mplane ioctls at drivers. The multi/single-plane conversion should be
done in user space. There were some patches for libv4l to support that
(http://www.spinics.net/lists/linux-media/msg35080.html), but such conversions
are not yet supported in the v4l libraries yet AFAIK.
I'm also not sure how is V4L2_CAP_VIDEO_CAPTURE_MPLANE handled in standard
GStreamer plugins like v4l2src at the moment, having only multi-plane
interface at the driver might cause additional problems there.
--
Regards,
Sylwester
next prev parent reply other threads:[~2012-05-01 20:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-01 19:08 [Query] About V4L2_CAP_VIDEO_CAPTURE_MPLANE device types Aguirre, Sergio
2012-05-01 20:08 ` Sylwester Nawrocki [this message]
2012-05-01 20:20 ` Aguirre, Sergio
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=4FA042D8.207@gmail.com \
--to=snjw23@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=saaguirre@ti.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