All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Sylwester Nawrocki <snjw23@gmail.com>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>,
	LMML <linux-media@vger.kernel.org>
Subject: Re: Fwd: Re: [PATCH 04/15] V4L: Add camera white balance preset control
Date: Mon, 23 Apr 2012 09:54:42 +0200	[thread overview]
Message-ID: <4F950AC2.1000103@redhat.com> (raw)
In-Reply-To: <4F9426AF.20200@gmail.com>

Hi,

On 04/22/2012 05:41 PM, Sylwester Nawrocki wrote:
> Hi,
>

<snip long discussion coming down to consensus to fold manual/auto/preset1-# into
1 new (for ABI reasons) awb menu control>

> So I'm going to rework patch 04/15, to remove V4L2_WHITE_BALANCE_PRESET_NONE and
> add AUTO, MANUAL entries. Only the CID name is still an open issue.
>
>
> Some examples to start with:
>
> #define V4L2_CID_WHITE_BALANCE_AUTO  (V4L2_CID_CAMERA_CLASS_BASE+XX)
> enum v4l2_white_balance_auto {
> 	V4L2_WHITE_BALANCE_AUTO,
> 	V4L2_WHITE_BALANCE_MANUAL,
> 	V4L2_WHITE_BALANCE_INCANDESCENT,
> 	V4L2_WHITE_BALANCE_FLUORESCENT,
> 	V4L2_WHITE_BALANCE_FLUORESCENT_H,
> 	V4L2_WHITE_BALANCE_HORIZON,
> 	V4L2_WHITE_BALANCE_DAYLIGHT,
> 	V4L2_WHITE_BALANCE_FLASH,
> 	V4L2_WHITE_BALANCE_CLOUDY,
> 	V4L2_WHITE_BALANCE_SHADE,
> };
>
> or
>
> #define V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE  (V4L2_CID_CAMERA_CLASS_BASE+XX)
> enum v4l2_auto_n_preset_white_balance {
> 	V4L2_WHITE_BALANCE_AUTO,
> 	V4L2_WHITE_BALANCE_MANUAL,
> 	V4L2_WHITE_BALANCE_INCANDESCENT,
> 	V4L2_WHITE_BALANCE_FLUORESCENT,
> 	V4L2_WHITE_BALANCE_HORIZON,
> 	V4L2_WHITE_BALANCE_DAYLIGHT,
> 	V4L2_WHITE_BALANCE_FLASH,
> 	V4L2_WHITE_BALANCE_CLOUDY,
> 	V4L2_WHITE_BALANCE_SHADE,
> };

I think I like the above one best, I know the name V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE
isn't really pretty, but it clearly indicates what it is and how it is different
from V4L2_CID_AUTO_WHITE_BALANCE. Given that I guess we could just keep
V4L2_CID_AUTO_WHITE_BALANCE as is for simpler drivers, as I think in the simple
manual/auto case a boolean is a better way to represent the control.

>
>
> enum v4l2_auto_n_preset_white_balance {
> 	V4L2_AUTO_N_PRESET_WHITE_BALANCE_AUTO,
> 	V4L2_AUTO_N_PRESET_WHITE_BALANCE_MANUAL,
> 	V4L2_AUTO_N_PRESET_WHITE_BALANCE_INCANDESCENT,
> 	...
>
> would be unfortunately a bit cumbersome.

Thanks & Regards,

Hans

      reply	other threads:[~2012-04-23  7:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4F91842A.9070505@samsung.com>
2012-04-22 15:41 ` Fwd: Re: [PATCH 04/15] V4L: Add camera white balance preset control Sylwester Nawrocki
2012-04-23  7:54   ` Hans de Goede [this message]

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=4F950AC2.1000103@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=linux-media@vger.kernel.org \
    --cc=s.nawrocki@samsung.com \
    --cc=snjw23@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.