From owner-freebsd-multimedia@FreeBSD.ORG Sun Sep 28 22:59:30 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 23BFE1065686 for ; Sun, 28 Sep 2008 22:59:30 +0000 (UTC) (envelope-from frtzkatz@yahoo.com) Received: from web63007.mail.re1.yahoo.com (web63007.mail.re1.yahoo.com [69.147.96.218]) by mx1.freebsd.org (Postfix) with SMTP id B05CD8FC13 for ; Sun, 28 Sep 2008 22:59:29 +0000 (UTC) (envelope-from frtzkatz@yahoo.com) Received: (qmail 4135 invoked by uid 60001); 28 Sep 2008 22:59:29 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=jljoYJPLVsRUuq6616Z+K64tWKJu//itcfEXKHY1/GU3Nw5v8s7SEtsI36xEcHUfqliGIgftmfAXGQPGJ7FwdXqx4rDBLqhe2oMTWcflwPPcGdxWqDG79c67lK0cfnwOf+DUPFQDtE9aVxRqGkzmQ+xRDRf0F/+yhp4Tnb6Yn3Q=; X-YMail-OSG: .qlyEcwVM1lgpKzTwcwBm2iC47cRY3.CkfTFObadqI2vJ3gohoJwl8hkAI9zh0o1og-- Received: from [71.104.221.209] by web63007.mail.re1.yahoo.com via HTTP; Sun, 28 Sep 2008 15:59:29 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Sun, 28 Sep 2008 15:59:29 -0700 (PDT) From: Fritz Katz To: freebsd-multimedia@freebsd.org, Hans Petter Selasky In-Reply-To: <200809240847.27194.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <182143.1557.qm@web63007.mail.re1.yahoo.com> Cc: Subject: V4L-2 support in FreeBSD X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: frtzkatz@yahoo.com List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2008 22:59:30 -0000 --- 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? Are there any plans to check it into the tree for FreeBSD-8? 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. 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). > > 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!" :-) Cheers, -- Fritz Katz.