public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: Linux and Kernel Video <video4linux-list@redhat.com>
Cc: "Elmar Kleijn" <elmar_kleijn@hotmail.com>,
	"radjnies@gmail.com" <radjnies@gmail.com>,
	"Lukáš Karas" <lukas.karas@centrum.cz>,
	"need4weed@gmail.com" <need4weed@gmail.com>
Subject: RFC: add emulated controls to libv4l
Date: Wed, 19 Nov 2008 10:40:35 +0100	[thread overview]
Message-ID: <4923DF13.4090609@hhs.nl> (raw)

<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

                 reply	other threads:[~2008-11-19  9:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4923DF13.4090609@hhs.nl \
    --to=j.w.r.degoede@hhs.nl \
    --cc=elmar_kleijn@hotmail.com \
    --cc=lukas.karas@centrum.cz \
    --cc=need4weed@gmail.com \
    --cc=radjnies@gmail.com \
    --cc=video4linux-list@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox