[vlc-devel] [PATCH] V4L for FreeBSD userland libv4l{1, 2} wrapper library

Rafaël Carré rafael.carre at gmail.com
Fri Nov 20 11:06:28 CET 2009


On Wed, 18 Nov 2009 13:19:43 +0100
Rémi Denis-Courmont <remi at remlab.net> wrote:

> 
> On Wed, 18 Nov 2009 11:49:13 +0100, Rafaël Carré
> <rafael.carre at gmail.com> wrote:
> > We could use v4l2_open(...,. ...|O_CLOEXEC) with O_CLOEXEC defined
> > to 0 if it's undef.
> > 
> >
> http://linuxtv.org/hg/v4l-dvb/file/e341e9e85af2/v4l2-apps/libv4l/libv4l2/libv4l2.c
> > transmits the mode to SYS_OPEN()
> > 
> > Would it be enough?
> 
> No. You still need the fcntl() call to fallback and you still need the
> UTF-8 conversion.
> I really don't see the value of libv4l on Linux.

We can add the fcntl() call
UTF-8 conversion is not needed as device nodes are always ASCII (not
mandatory but it's always the case)

AFAIU libv4l does some chroma conversion when the requested format
can't be delivered by the card, i don't know any other use (on Linux).

-- 
Rafaël Carré
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20091120/88159d31/attachment.sig>


More information about the vlc-devel mailing list