From: Thomas Scheuermann <scheuermann@barco.com>
To: <linux-media@vger.kernel.org>
Subject: v4l2_buffer with PBO mapped memory
Date: Wed, 2 Apr 2014 17:10:42 +0200 [thread overview]
Message-ID: <533C2872.5090603@barco.com> (raw)
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.
Regards,
Thomas
This message is subject to the following terms and conditions: MAIL DISCLAIMER<http://www.barco.com/en/maildisclaimer>
next reply other threads:[~2014-04-02 15:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-02 15:10 Thomas Scheuermann [this message]
2014-04-02 19:23 ` v4l2_buffer with PBO mapped memory Laurent Pinchart
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=533C2872.5090603@barco.com \
--to=scheuermann@barco.com \
--cc=linux-media@vger.kernel.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 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.