V4L-2 support in FreeBSD

Fritz Katz frtzkatz at yahoo.com
Sun Sep 28 22:59:30 UTC 2008

--- On Tue, 9/23/08, Hans Petter Selasky <hselasky(at)c2i(dot)net> 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!" :-)

-- Fritz Katz.


More information about the freebsd-multimedia mailing list