Re: support autofocus / autogain in libv4l2

From: Nicolas Dufresne
Date: Tue Apr 25 2017 - 12:54:08 EST


Le mardi 25 avril 2017 Ã 10:05 +0200, Pavel Machek a ÃcritÂ:
> Well, fd's are hard, because application can do fork() and now
> interesting stuff happens. Threads are tricky, because now you have
> locking etc.
>
> libv4l2 is designed to be LD_PRELOADED. That is not really feasible
> with "complex" library.

That is incorrect. The library propose an API where you simply replace
certain low level calls, like ioctl -> v4l2_ioctl, open -> v4l2_open().
You have to do that explicitly in your existing code. It does not
abstract the API itself unlike libdrm.

Nicolas

Attachment: signature.asc
Description: This is a digitally signed message part