Date: Mon, 13 Jul 1998 14:57:47 +0100 From: Roger Hardiman <roger@cs.strath.ac.uk> To: freebsd-multimedia@FreeBSD.ORG, roger@cs.strath.ac.uk Subject: New IOCTL for bt848 grab area (was S/W PAN and ZOOM) Message-ID: <35AA125B.A7A786E1@cs.strath.ac.uk>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35AA125B.A7A786E1>