From owner-freebsd-multimedia@FreeBSD.ORG Mon Sep 29 07:50:19 2008 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08EF5106568C for ; Mon, 29 Sep 2008 07:50:19 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe10.swipnet.se [212.247.155.33]) by mx1.freebsd.org (Postfix) with ESMTP id 93D8D8FC36 for ; Mon, 29 Sep 2008 07:50:18 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=uUmtgKHQwvA07F2yBopI6A==:17 a=6I5d2MoRAAAA:8 a=8GIzEY_tHDXg2-vI1mMA:9 a=tG-Uvkff5gRSM8BqV9gA:7 a=058ei9P_VSjMrQzJYPXMxc_ejuMA:4 a=LY0hPdMaydYA:10 Received: from [62.113.135.118] (account mc467741@c2i.net [62.113.135.118] verified) by mailfe10.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 924978449; Mon, 29 Sep 2008 08:50:06 +0200 From: Hans Petter Selasky To: frtzkatz@yahoo.com Date: Mon, 29 Sep 2008 08:51:58 +0200 User-Agent: KMail/1.9.7 References: <182143.1557.qm@web63007.mail.re1.yahoo.com> In-Reply-To: <182143.1557.qm@web63007.mail.re1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200809290851.59424.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org Subject: Re: V4L-2 support in FreeBSD X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 07:50:19 -0000 On Monday 29 September 2008, Fritz Katz wrote: > --- On Tue, 9/23/08, Hans Petter Selasky wrote: > > Hi, > > > > Maybe you will find the following file useful: > > http://perforce.freebsd.org/fileLogView.cgi?FSPC=//depot/projects/usb/src > >/sys/sys/videodev.h > > Thanks!, Yes, very useful. > > Can you point me at any drivers or user applications > that include and use this file? Hi Fritz, There is an example USB webcam driver in my SVN repository that uses this file. Just search for webcam: find . -name "*webcam*" > > Are there any plans to check it into the > tree for FreeBSD-8? No, not yet. > > Some nits: > > 1) V4L2 has divided the info contained in this file > into two: videodev.h which contains the obsolete V4L1 > definitions & videodev2.h > when I attempt to link a V4L2 application using it, > I get compiler errors and am forced to edit the source > files to get them to compile. > Without V4L-1 structs and ioctl definitions, many > older applications won't compile. The V4L-1 part has been stripped away. It is a pure V4L-2 library. I have compiled with ekiga and was able to use my webcam, although some work remains like moving the decoding of the JPEG frames from a kernel thread to a userland thread. > > 2) The "#define V4L2_STD_PAL_NC" is "#define V4L2_STD_PAL_Nc" > in V4L2. (Just because Penguins do something silly like > putting a lower case letter in a define doesn't mean we > should do it too -- but it *IS* their standard). Just send me a patch. > > > Regarding porting, there is not much you need to do. Simply > > make sure that you handle the IOCTLs directly in the video driver. > > > > --HPS > > Yes, "piece of cake!" :-) > --HPS