* RFC: add emulated controls to libv4l
@ 2008-11-19 9:40 Hans de Goede
0 siblings, 0 replies; only message in thread
From: Hans de Goede @ 2008-11-19 9:40 UTC (permalink / raw)
To: Linux and Kernel Video
Cc: Elmar Kleijn, radjnies@gmail.com, Lukáš Karas,
need4weed@gmail.com
<resend from other mail address, which is actually subscribed to the list>
Hi all,
As discussed in my previous mail, various people (including me) want to add
things like software whitebalancing, etc. to libv4l.
When this is added, it would be nice for the user to be able to control this
(turn on/off) using a standard v4l control panel application as for example
v4l2ucp.
The question I want to discuss here is how to implement this. We want this to
work as much as possible as real controls, so:
-Settings can be changed by one app (control panel), influencing the picture
seen by another app which is streaming
-Settings are remembered even when no app has the device open
-Settings are reset acros a driver unload / load (typically a reboot)
There are 3 possible solutions here:
1) Add an API to the driver to store and retreive "fake" settings
2) Use shared memory
3) Use shared memory by creating shared memory mappings of a (binary) file
So which one to use
1) Has the advantage of the resulting behavior matching that of real controls
exactly, but requires adding code to the kernel, lets no do that.
2) IIRC it is possible to keep a shared memory segment around (until reboot)
even if no app is using it, this will then pretty closely match the behavior of
normal controls. Also Lukáš Karas has already submitted a patch implementing
this, which is a pre too :)
3) This is only usefull if it turns out to not be possible to keep a shared
memory segment around even if no app is using it. This has the disadvantage of
keeping settings even across reboots, which could be seen as an advantage, but
if we want to do this (which I believe we do) we should write an utility
program to do this.
So my vote clearly goes to option 2, what do others here on the list think?
Regards,
Hans
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-19 9:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19 9:40 RFC: add emulated controls to libv4l Hans de Goede
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox