From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Thomas Scheuermann <scheuermann@barco.com>
Cc: linux-media@vger.kernel.org
Subject: Re: v4l2_buffer with PBO mapped memory
Date: Wed, 02 Apr 2014 21:23:09 +0200 [thread overview]
Message-ID: <11263729.kS3FzW2BUL@avalon> (raw)
In-Reply-To: <533C2872.5090603@barco.com>
Hi Thomas,
On Wednesday 02 April 2014 17:10:42 Thomas Scheuermann wrote:
> Hello,
>
> I've written a program which shows my webcam with the v4l2 interface.
> In the v4l2_buffer I use the type V4L2_BUF_TYPE_VIDEO_CAPTURE and the
> memory is V4L2_MEMORY_USERPTR.
> Everything works if I use malloced memory for frame buffers.
> Now I want to get the frames directly in OpenGL. I've mapped a pixel
> buffer object with glMapBuffer and wanted to use this as a frame buffer.
> But if I use this memory, the ioctl VIDIOC_QBUF fails with 'invalid
> argument'.
>
> What can I do to use the pixel buffer object together with the v4l2
> interface?
> I want to use as less copy steps as possible.
The use case is reasonable (although V4L2_MEMORY_DMABUF would be better, but
we're not there yet on the OpenGL side I believe), so let's try to debug this.
First of all, what webcam driver do you use ?
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2014-04-02 19:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-02 15:10 v4l2_buffer with PBO mapped memory Thomas Scheuermann
2014-04-02 19:23 ` Laurent Pinchart [this message]
2014-04-03 16:52 ` AW: " Scheuermann, Mail
2014-04-03 23:16 ` Laurent Pinchart
2014-04-04 20:01 ` AW: " Scheuermann, Mail
2014-04-06 23:37 ` Laurent Pinchart
2014-04-11 5:56 ` Thomas Scheuermann
2014-04-15 6:04 ` Thomas Scheuermann
2014-04-15 15:02 ` Hans Verkuil
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=11263729.kS3FzW2BUL@avalon \
--to=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=scheuermann@barco.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