From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:58510 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751446Ab2ENACj (ORCPT ); Sun, 13 May 2012 20:02:39 -0400 Date: Mon, 14 May 2012 03:02:34 +0300 From: Sakari Ailus To: Sylwester Nawrocki Cc: linux-media@vger.kernel.org, m.szyprowski@samsung.com, riverful.kim@samsung.com, sw0312.kim@samsung.com, Kyungmin Park Subject: Re: [PATCH 03/23] V4L: Add an extended camera white balance control Message-ID: <20120514000234.GG3373@valkosipuli.retiisi.org.uk> References: <1336645858-30366-1-git-send-email-s.nawrocki@samsung.com> <1336645858-30366-4-git-send-email-s.nawrocki@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1336645858-30366-4-git-send-email-s.nawrocki@samsung.com> Sender: linux-media-owner@vger.kernel.org List-ID: Hi Sylwaster, Thanks for the patch. I noticed your pull req; I hope you could take into account a few more comments. :) On Thu, May 10, 2012 at 12:30:38PM +0200, Sylwester Nawrocki wrote: > This patch adds V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE control which is > an extended version of the V4L2_CID_AUTO_WHITE_BALANCE control, > including white balance presets. The following presets are defined: > > - 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. > > Signed-off-by: HeungJun Kim > Signed-off-by: Sylwester Nawrocki > Signed-off-by: Kyungmin Park > Acked-by: Hans de Goede > --- > Documentation/DocBook/media/v4l/controls.xml | 70 ++++++++++++++++++++++++++ > drivers/media/video/v4l2-ctrls.c | 17 +++++++ > include/linux/videodev2.h | 14 ++++++ > 3 files changed, 101 insertions(+) > > diff --git a/Documentation/DocBook/media/v4l/controls.xml b/Documentation/DocBook/media/v4l/controls.xml > index 40e6485..85d1ca0 100644 > --- a/Documentation/DocBook/media/v4l/controls.xml > +++ b/Documentation/DocBook/media/v4l/controls.xml > @@ -3022,6 +3022,76 @@ camera sensor on or off, or specify its strength. Such band-stop filters can > be used, for example, to filter out the fluorescent light component. > > > + > + > + V4L2_CID_AUTO_N_PRESET_WHITE_BALANCE  > + enum v4l2_auto_n_preset_white_balance > + Sets white balance to automatic, > +manual or a preset. The presets determine color temperature of the light as > +a hint to the camera for white balance adjustments resulting in most accurate > +color representation. The following white balance presets are listed in order > +of increasing color temperature. > + > + > + > + > + > + V4L2_WHITE_BALANCE_MANUAL  > + Manual white balance. > + > + > + V4L2_WHITE_BALANCE_AUTO  > + Automatic white balance adjustments. > + > + > + V4L2_WHITE_BALANCE_INCANDESCENT  > + White balance setting for incandescent (tungsten) lighting. > +It generally cools down the colors and corresponds approximately to 2500...3500 K > +color temperature range. > + > + > + V4L2_WHITE_BALANCE_FLUORESCENT  > + White balance preset for fluorescent lighting. > +It corresponds approximately to 4000...5000 K color temperature. > + > + > + V4L2_WHITE_BALANCE_FLUORESCENT_H  > + With this setting the camera will compensate for > +fluorescent H lighting. > + I don't remember for quite sure if I replied to this already... what's the diff between the above two? The colour temperature of the fluorescent light depends on the lamp; 2500 K is not uncommon here in Finland. It's the spectrum that's different from incandescents, not necessarily the colour temperature. > + > + V4L2_WHITE_BALANCE_HORIZON  > + White balance setting for horizon daylight. > +It corresponds approximately to 5000 K color temperature. > + > + > + V4L2_WHITE_BALANCE_DAYLIGHT  > + White balance preset for daylight (with clear sky). > +It corresponds approximately to 5000...6500 K color temperature. > + > + > + V4L2_WHITE_BALANCE_FLASH  > + With this setting the camera will compensate for the flash > +light. It slightly warms up the colors and corresponds roughly to 5000...5500 K > +color temperature. This also depends heavily on the type of the flash. I'd just remove the colour temperature from most of these since it looks more like assumptions made in a particular system rather than something generic. Kind regards, -- Sakari Ailus e-mail: sakari.ailus@iki.fi jabber/XMPP/Gmail: sailus@retiisi.org.uk