linux-kernel-test/drivers/media/video/bt8xx
Michael Schimek e5bd0260e7 V4L/DVB (5077): Bttv cropping support
Adds the missing VIDIOC_CROPCAP, G_CROP and S_CROP ioctls, permitting 
applications to capture or overlay a subsection of the picture or to 
extend the capture window beyond active video, into the VBI area and the 
horizontal blanking. VBI capturing can start and end on any line, 
including the picture area, and apps can capture different lines of each 
field and single fields.
For compatibility with existing applications, the open() function
resets the cropping and VBI capturing parameters and a VIDIOC_S_CROP
call is necessary to actually enable cropping. 
Regrettably in PAL-M, PAL-N, PAL-Nc and NTSC-JP mode the maximum image 
width will increase from 640 and 768 to 747 and 923 pixels respectively.
Like the VBI changes however, this should only affect applications which 
depend on former driver limitations, such as never getting more than 640 
pixels regardless of the requested width. 
Also, new freedoms require additional checks for conflicts and some 
applications may not expect an EBUSY error from the VIDIOC_QBUF and 
VIDIOCMCAPTURE ioctls. These errors should be rare though.
So far, the patch has been tested on a UP machine with a bt878 in PAL-
BGHI and NTSC-M mode using xawtv, tvtime, mplayer/mencoder, zapping/
libzvbi and these tools: http://zapping.sf.net/bttv-crop-test.tar.bz2
I'd be grateful about comments or bug reports.

Signed-off-by: Michael H. Schimek <mschimek@gmx.at>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-21 13:34:36 -02:00
..
bt832.c V4L/DVB (3577): Cleanup audio input handling 2006-03-24 16:26:56 -03:00
bt832.h V4L/DVB (3539): Move bttv fragments to bt8xx/ 2006-03-24 16:26:50 -03:00
bt848.h V4L/DVB (3539): Move bttv fragments to bt8xx/ 2006-03-24 16:26:50 -03:00
bttv-cards.c V4L/DVB (5061): Bt8xx: add support for Ultraview DVB-T Lite 2007-02-21 13:34:19 -02:00
bttv-driver.c V4L/DVB (5077): Bttv cropping support 2007-02-21 13:34:36 -02:00
bttv-gpio.c V4L/DVB (4026): Bttv-gpio-irq is no longer used, remove it 2006-06-25 02:00:30 -03:00
bttv-i2c.c i2c: Discard the i2c algo del_bus wrappers 2006-12-10 21:21:33 +01:00
bttv-if.c V4L/DVB (3539): Move bttv fragments to bt8xx/ 2006-03-24 16:26:50 -03:00
bttv-input.c V4L/DVB (5025): Cleanup: switch to using msecs_to_jiffies() on bttv 2007-02-21 13:34:18 -02:00
bttv-risc.c V4L/DVB (5077): Bttv cropping support 2007-02-21 13:34:36 -02:00
bttv-vbi.c V4L/DVB (5077): Bttv cropping support 2007-02-21 13:34:36 -02:00
bttv.h V4L/DVB (4961): Add support for the ASUS P7131 remote control 2007-02-21 13:34:12 -02:00
bttvp.h V4L/DVB (5077): Bttv cropping support 2007-02-21 13:34:36 -02:00
Kconfig V4L/DVB (4518): Allow manually selecting the proper helper drivers 2006-09-26 12:30:33 -03:00
Makefile V4L/DVB (3731): Kbuild: drivers/media/video/bt8xx: remove $(src) from include path 2006-05-12 19:54:40 -03:00