kernel-fxtec-pro1x/drivers/media/video/bt8xx
Trent Piepho a8ab68bffe V4L/DVB (6392): bttv: Update initial image size when set via V4L1 VIDIOCMCAPTURE
The V4L1 spec says that the image size should be with with VIDIOCSWIN before
requesting buffers with VIDIOCGMBUF and capturing into them with
VIDIOCMCAPTURE.

But it seems that many apps don't do this.  They set the size using the fields
in the VIDIOCMCAPTURE ioctl.  The driver doesn't know what size to capture
until it actually starts to capture.  In particular, it doesn't know what size
to capture until it has already mmap the captured buffers.  Which is quite
stupid.  Why V4L1 has size and format fields for VIDIOCMCAPTURE I have no idea.

Many drivers don't support this, including those using v4l1-compat.

The bttv does, which is probably the only reason such broken software is so
prevalent.

But, the driver doesn't adjust its idea of what size is being captured when it
is set this way.  If you try to query the driver's current setting with
v4l2-ctl, it won't be correct.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-11-04 21:41:16 -02:00
..
bt832.c
bt832.h
bt848.h
bttv-cards.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
bttv-driver.c V4L/DVB (6392): bttv: Update initial image size when set via V4L1 VIDIOCMCAPTURE 2007-11-04 21:41:16 -02:00
bttv-gpio.c V4L/DVB (6316): Change list_for_each+list_entry to list_for_each_entry 2007-10-10 13:35:29 -03:00
bttv-i2c.c i2c: Remove NOP i2c_algorithm.algo_control() methods 2007-10-13 23:56:32 +02:00
bttv-if.c V4L/DVB (5278): Bt8xx/: possible cleanups 2007-04-27 15:43:20 -03:00
bttv-input.c V4L/DVB (6079): Cleanup: remove linux/moduleparam.h from drivers/media files 2007-10-09 22:06:17 -03:00
bttv-risc.c V4L/DVB (6252): Adapt drivers to use the newer videobuf modules 2007-10-09 22:14:55 -03:00
bttv-vbi.c V4L/DVB (6252): Adapt drivers to use the newer videobuf modules 2007-10-09 22:14:55 -03:00
bttv.h V4L/DVB (6249): Add Typhoon Tv-Tuner PCI to bttv-cards.c 2007-10-09 22:14:55 -03:00
bttvp.h cleanup asm/scatterlist.h includes 2007-11-02 08:47:06 +01:00
Kconfig V4L/DVB (6252): Adapt drivers to use the newer videobuf modules 2007-10-09 22:14:55 -03:00
Makefile