summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/ioctl_bt848.h
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>1998-08-31 18:31:36 +0000
committersos <sos@FreeBSD.org>1998-08-31 18:31:36 +0000
commit2cddefeee28308f18edd56895c39e86d02a449e8 (patch)
treee37accb86109a6a684df5a4303faa2ad78d00589 /sys/i386/include/ioctl_bt848.h
parentbae4326618e3f49d770051d27112e1c7dde79d7e (diff)
downloadFreeBSD-src-2cddefeee28308f18edd56895c39e86d02a449e8.zip
FreeBSD-src-2cddefeee28308f18edd56895c39e86d02a449e8.tar.gz
Added Capture Area ioctl - BT848[SG]CAPAREA.
Normally the full 640x480 (768x576 PAL) image is grabbed. This ioctl allows a smaller area from anywhere within the video image to be grabbed, eg a 400x300 image from (50,10). See restrictions in BT848SCAPAREA. Submitted by: Roger Hardiman <roger@cs.strath.ac.uk>
Diffstat (limited to 'sys/i386/include/ioctl_bt848.h')
-rw-r--r--sys/i386/include/ioctl_bt848.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/i386/include/ioctl_bt848.h b/sys/i386/include/ioctl_bt848.h
index db09dc8..09a4a5e 100644
--- a/sys/i386/include/ioctl_bt848.h
+++ b/sys/i386/include/ioctl_bt848.h
@@ -197,6 +197,21 @@ struct _bktr_clip {
#define BT848SCBUF _IOW('x', 68, int)
#define BT848GCBUF _IOR('x', 68, int)
+/* set capture area */
+/* The capture area is the area of the video image which is grabbed */
+/* Usually the capture area is 640x480 (768x576 PAL) pixels */
+/* This area is then scaled to the dimensions the user requires */
+/* using the METEORGEO ioctl */
+/* However, the capture area could be 400x300 pixels from the top right */
+/* corner of the video image */
+struct bktr_capture_area {
+ int x_offset;
+ int y_offset;
+ int x_size;
+ int y_size;
+};
+#define BT848SCAPAREA _IOW('x', 69, struct bktr_capture_area)
+#define BT848GCAPAREA _IOR('x', 69, struct bktr_capture_area)
/* Read/Write the BT848's I2C bus directly
* b7-b0: data (read/write)
OpenPOWER on IntegriCloud