[gstreamer-bugs] [Bug 545033] [v4l2src] Add support for camera specific formats

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Tue Jul 29 15:08:16 PDT 2008


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=545033

  GStreamer | gst-plugins-good | Ver: 0.10.8




------- Comment #5 from Hans de Goede  2008-07-29 22:08 UTC -------
(In reply to comment #3)
> v4l2src currently builds on newer OpenSolaris releases, it'd be nice if that
> continues working. How portable is libv4l?
> 

The base code should be pretty portable but libv4l was not designed / written
with portability in mind, on the contrary in several occasions I've done things
which I knew to be Linux specific, and I thought those were ok as well v4l
sounds rather Linux specific to begin with.

So there are several issues I can think of from my head:
1) It needs linux/videodev.h and linux/videodev2.h, but I guess that if
   opensolaris has some kind of v4l2 interface it may have these.

2) It is designed for all its v4l2_xxx functions to behave just like
   their regular xxx counter parts (open, close, ioctl, mmap, etc), this
   is because libv4l can also be used without modifying apps by loading it
   through a libc-wrapper which can be loaded with LD_PRELOAD and will then
   call v4l2_open for all open calls, etc.

   In order to be able todo for example a read() call where it is itself
   being called as read() it uses syscall(SYS_read, ...), I don't know if
   this will work on opensolaris, and for mmap it uses SYS_mmap2 !

So all in all this might be a problem, but if you look at the patch you will
see the patch already contains a single #ifdef to switch between compilation
with and without libv4l so compiling without libv4l on opensolaris is easy. And
as long as opensolaris doesn't have any webcam drivers generating webcam custom
/ proprietary formats there is little use / sense in using libv4l on
opensolaris.


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=545033.




More information about the Gstreamer-bugs mailing list