All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sylwester Nawrocki <snjw23@gmail.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>,
	linux-media@vger.kernel.org, m.szyprowski@samsung.com,
	kyungmin.park@samsung.com, riverful.kim@samsung.com,
	sw0312.kim@samsung.com, sungchun.kang@samsung.com,
	subash.ramaswamy@linaro.org
Subject: Re: [PATCH 01/13] V4L: Extend V4L2_CID_COLORFX with more image effects
Date: Sat, 28 Apr 2012 10:22:48 +0200	[thread overview]
Message-ID: <4F9BA8D8.6010603@gmail.com> (raw)
In-Reply-To: <201204272102.57705.hverkuil@xs4all.nl>

Hi,

On 04/27/2012 09:02 PM, Hans Verkuil wrote:
> On Friday, April 27, 2012 19:54:50 Sylwester Nawrocki wrote:
>  > On 04/27/2012 12:12 PM, Hans Verkuil wrote:
>  > > On Friday, April 27, 2012 11:52:54 Sylwester Nawrocki wrote:
>  > >> This patch adds definition of additional color effects:
>  > >> - V4L2_COLORFX_AQUA,
>  > >> - V4L2_COLORFX_ART_FREEZE,
>  > >> - V4L2_COLORFX_SILHOUETTE,
>  > >> - V4L2_COLORFX_SOLARIZATION,
>  > >> - V4L2_COLORFX_ANTIQUE,
>  > >> - V4L2_COLORFX_ARBITRARY_CBCR.
> 
> BTW, reading this again I think "ARBITRARY_CBCR" is a confusing name. 
> Perhaps "REPLACE_CBCR" or "SET_CBCR" is better?

This is how it was named in the datasheets ;-) I like 
V4L2_COLORFX_REPLACE_CBCR better. What about 

V4L2_COLORFX_CONSTANT_CBCR,
V4L2_COLORFX_PATTERN_CBCR or
V4L2_COLORFX_FILL_IN_CBCR ?

...
> Maybe it would be better to add a V4L2_COLORFX_COLOR menu entry and
>  > V4L2_CID_COLORFX_CB, V4L2_CID_COLORFX_CR controls ?
> 
> That would work, yes. Although I am not convinced splitting it up is 
> worthwhile.
> The colorspace can change on the fly, so you would have to handle 
> out-of-range
> values anyway. Personally I would stick with CID_COLORFX_CBCR (and 
> clearly document in which byte the CB and the CR go).

That's going to be sufficient I guess. Applications will most likely 
be just pre-configured with some fixed CB/CR values, mapped to some 
meaningful names. It should be fine, as far as those coefficient 
registers are accessible from user space. 

> That's just my opinion, though.
> 
> Regards,
> Hans
> 
> PS: I'll review the "camera control enhancements" patch series in the 
> next few days.

Great, thanks a lot!

I was thinking about a guide on which control groups should be used 
for each devices, to make the driver and application writers' life 
easier, but its not an easy task in light of high diversity of 
camera devices...


--
Regards,
Sylwester

  parent reply	other threads:[~2012-04-28  8:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-27  9:52 [PATCH 00/13] V4L: Exynos 4x12 camera host interface (FIMC-LITE) driver Sylwester Nawrocki
2012-04-27  9:52 ` [PATCH 01/13] V4L: Extend V4L2_CID_COLORFX with more image effects Sylwester Nawrocki
2012-04-27 10:12   ` Hans Verkuil
2012-04-27 17:54     ` Sylwester Nawrocki
     [not found]       ` <201204272102.57705.hverkuil@xs4all.nl>
2012-04-28  8:22         ` Sylwester Nawrocki [this message]
2012-04-27  9:52 ` [PATCH 02/13] s5p-fimc: Move m2m node driver into separate file Sylwester Nawrocki
2012-04-27  9:52 ` [PATCH 03/13] s5p-fimc: Simplify the variant data structure Sylwester Nawrocki
2012-04-27  9:52 ` [PATCH 04/13] s5p-fimc: Use v4l2_subdev internal ops to register video nodes Sylwester Nawrocki
2012-04-27  9:52 ` [PATCH 05/13] s5p-fimc: Refactor the register interface functions Sylwester Nawrocki
2012-04-27  9:52 ` [PATCH 06/13] s5p-fimc: Add FIMC-LITE register definitions Sylwester Nawrocki
2012-04-27  9:53 ` [PATCH 07/13] s5p-fimc: Rework the video pipeline control functions Sylwester Nawrocki
2012-04-27  9:53 ` [PATCH 08/13] s5p-fimc: Prefix format enumerations with FIMC_FMT_ Sylwester Nawrocki
2012-04-27  9:53 ` [PATCH 09/13] s5p-fimc: Make sure the interrupt is properly requested Sylwester Nawrocki
2012-04-27  9:53 ` [PATCH 10/13] s5p-fimc: Minor cleanups Sylwester Nawrocki
2012-04-27  9:53 ` [PATCH 11/13] s5p-fimc: Add support for Exynos4x12 FIMC-LITE Sylwester Nawrocki
2012-04-27  9:53 ` [PATCH 12/13] s5p-fimc: Update copyright notices Sylwester Nawrocki
2012-04-27  9:53 ` [PATCH 13/13] s5p-fimc: Add color effect control Sylwester Nawrocki

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=4F9BA8D8.6010603@gmail.com \
    --to=snjw23@gmail.com \
    --cc=hverkuil@xs4all.nl \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-media@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=riverful.kim@samsung.com \
    --cc=s.nawrocki@samsung.com \
    --cc=subash.ramaswamy@linaro.org \
    --cc=sungchun.kang@samsung.com \
    --cc=sw0312.kim@samsung.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.