From owner-freebsd-multimedia Mon Jul 13 06:58:17 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA02408 for freebsd-multimedia-outgoing; Mon, 13 Jul 1998 06:58:17 -0700 (PDT) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from fleming.cs.strath.ac.uk (root@fleming.cs.strath.ac.uk [130.159.196.123]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA02349 for ; Mon, 13 Jul 1998 06:58:07 -0700 (PDT) (envelope-from roger@cs.strath.ac.uk) Received: from cs.strath.ac.uk (posh.dmem.strath.ac.uk [130.159.202.3]) by fleming.cs.strath.ac.uk (8.8.8/8.8.8) with ESMTP id OAA16770 Mon, 13 Jul 1998 14:57:49 +0100 (BST) Message-ID: <35AA125B.A7A786E1@cs.strath.ac.uk> Date: Mon, 13 Jul 1998 14:57:47 +0100 From: Roger Hardiman Organization: Strathclyde Uni X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 3.0-980311-SNAP i386) MIME-Version: 1.0 To: freebsd-multimedia@FreeBSD.ORG, roger@cs.strath.ac.uk Subject: New IOCTL for bt848 grab area (was S/W PAN and ZOOM) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org To all bt848 users. Recently, I offered to write a new IOCTL which allowed you to select the area from the video image to grab from. This allows software Pan and Zoom. Currently the driver takes the full NTSC (or PAL) image of 640x480 and scales it down to fit the required size, eg 192x128. With the new IOCTL, you specify an X and Y offset and an X and Y image size. This defined area (eg 320x256 - offset of 100,100) is then captured instead of the full image. The captured area is then scaled into the size required by the application (eg 192x128). For example, by changing the capture area from 640x480, offset (0,0) to 320x240, offset (160,120) I get a x2 zoom function without any sofware overhead. The ioctl is passed a structure with the x and y offsets and sizes. Cannot decide on a name though. BT848 SET ACTIVE REGION BT848 SET ACTIVE GEO BT848 SET ACTIVE AREA BT848 SET CROP REGION BT848 SET CROP WINDOW BT848 SET CROP AREA BT848 SET CAP REGION BT848 SET CAP WINDOW BT848 SET CAP AREA What do you lot perfer? I'm sending the driver (which has changes to both the driver and the two include files) to Amancio to place on his FTP site. Cheers Roger Hardiman Strathclyde Uni Telepresence Group To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message