From: Andy Walls <awalls@md.metrocast.net>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>,
Mauro Carvalho Chehab <mchehab@redhat.com>,
Pawel Osciak <p.osciak@samsung.com>,
linux-media@vger.kernel.org, kyungmin.park@samsung.com,
t.fujak@samsung.com
Subject: Re: [PATCH/RFC v1 0/7] Videobuf2 framework
Date: Fri, 10 Sep 2010 09:50:06 -0400 [thread overview]
Message-ID: <1284126606.2123.98.camel@morgan.silverblock.net> (raw)
In-Reply-To: <201009101022.22832.hverkuil@xs4all.nl>
On Fri, 2010-09-10 at 10:22 +0200, Hans Verkuil wrote:
> On Friday, September 10, 2010 09:38:44 Marek Szyprowski wrote:
> > Hello,
> >
> > On 2010-09-10 13:27, Mauro Carvalho Chehab wrote:
> >
> > >>> 1) it lacks implementation of read() method. This means that vivi driver
> > >>> has a regression, as it currently supports it.
> > >>
> > >> Yes, read() is not yet implemented. I guess it is not a feature that would
> > >> be deprecated, right?
> > >
> > > Yes, there are no plans to deprecate it. Also, some devices like cx88 and bttv
> > > allows receiving simultaneous streams, one via mmap, and another via read().
> > > This is used by some applications to allow recording video via ffmpeg/mencoder
> > > using read(), while the main application is displaying video using mmap.
> >
> > Well, in my opinion such devices should provide two separate /dev/videoX
> > nodes rather than hacking with mmap and read access types.
>
> 1) It is in use so you can't just drop it.
> 2) The read() API is actually very useful for video devices that deal with
> compressed video streams. E.g. you can do things like 'cat /dev/video0 >foo.mpg'
>
> It's been a long standing wish to convert the ivtv and cx18 drivers to videobuf,
> but it's always been too complex. With a new vb2 implementation it may become
> actually possible.
Steven has mmap() mostly done for the cx18 YUV stream:
http://www.kernellabs.com/hg/~stoth/cx18-videobuf/
I provided him a slew of comments on the patchset, The comments were
mostly just grunt work to move things around and clean it up than any
major flaws. I only saw one problem that must be fixed before it is
usable for the masses, IIRC.
Maybe if there's a test case for trying out videobuf2, it's the cx18
driver where we want to use mmap() for YUV and read() for MPEG. Note
Steven's changes allow one to tell the CX23418 to send YUV data in YUYV
format vs. HM12.
Regards,
Andy
next prev parent reply other threads:[~2010-09-10 13:50 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-09 9:19 [PATCH/RFC v1 0/7] Videobuf2 framework Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 1/7] v4l: add videobuf2 Video for Linux 2 driver framework Pawel Osciak
2010-09-09 17:29 ` Mauro Carvalho Chehab
2010-09-15 20:16 ` Pawel Osciak
2010-09-25 14:27 ` Hans Verkuil
2010-09-29 23:40 ` Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 2/7] v4l: videobuf2: add generic memory handling routines Pawel Osciak
2010-09-09 17:34 ` Mauro Carvalho Chehab
2010-09-09 9:19 ` [PATCH v1 3/7] v4l: mem2mem: port to videobuf2 Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 4/7] v4l: videobuf2: add vmalloc allocator Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 5/7] v4l: videobuf2: add DMA coherent allocator Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 6/7] v4l: vivi: port to videobuf2 Pawel Osciak
2010-09-09 9:19 ` [PATCH v1 7/7] v4l: videobuf2: add CMA allocator Pawel Osciak
2010-09-15 8:55 ` han jonghun
2010-09-15 20:25 ` Pawel Osciak
2010-09-09 9:26 ` [PATCH/RFC v1 0/7] Videobuf2 framework Pawel Osciak
2010-09-09 17:53 ` Mauro Carvalho Chehab
2010-09-10 3:20 ` Pawel Osciak
2010-09-10 4:27 ` Mauro Carvalho Chehab
2010-09-10 7:38 ` Marek Szyprowski
2010-09-10 8:22 ` Hans Verkuil
2010-09-10 8:26 ` Devin Heitmueller
2010-09-10 13:50 ` Andy Walls [this message]
2010-09-10 12:15 ` Mauro Carvalho Chehab
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=1284126606.2123.98.camel@morgan.silverblock.net \
--to=awalls@md.metrocast.net \
--cc=hverkuil@xs4all.nl \
--cc=kyungmin.park@samsung.com \
--cc=linux-media@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=mchehab@redhat.com \
--cc=p.osciak@samsung.com \
--cc=t.fujak@samsung.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.