From: Sylwester Nawrocki <s.nawrocki@samsung.com>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Hans Verkuil <hverkuil@xs4all.nl>,
linux-media@vger.kernel.org, mchehab@redhat.com,
m.szyprowski@samsung.com, jonghun.han@samsung.com,
riverful.kim@samsung.com, sw0312.kim@samsung.com,
Kyungmin Park <kyungmin.park@samsung.com>
Subject: Re: [PATCH/RFC 1/2] v4l: Add a global color alpha control
Date: Fri, 25 Nov 2011 14:24:47 +0100 [thread overview]
Message-ID: <4ECF971F.2030602@samsung.com> (raw)
In-Reply-To: <201111251357.30605.laurent.pinchart@ideasonboard.com>
Hi Laurent,
On 11/25/2011 01:57 PM, Laurent Pinchart wrote:
> On Thursday 24 November 2011 16:53:12 Sylwester Nawrocki wrote:
>> On 11/24/2011 03:00 PM, Laurent Pinchart wrote:
>>> On Thursday 24 November 2011 13:22:10 Hans Verkuil wrote:
>>>> On Thursday, November 24, 2011 13:06:09 Laurent Pinchart wrote:
>>>>> On Thursday 24 November 2011 12:49:00 Hans Verkuil wrote:
>>>>>> On Thursday, November 24, 2011 12:39:54 Sylwester Nawrocki wrote:
>>>>>>> On 11/24/2011 12:09 PM, Laurent Pinchart wrote:
>>>>>>>> On Thursday 24 November 2011 12:00:45 Hans Verkuil wrote:
>>>>>>>>> On Thursday, November 24, 2011 11:53:16 Sylwester Nawrocki wrote:
>>>> Well, if that's the case, then we already have an API for that
>>>> (http://hverkuil.home.xs4all.nl/spec/media.html#v4l2-window, field
>>>> global_alpha).
>>>>
>>>> It was my understanding that this is used with a mem2mem device where
>>>> you just want to fill in the alpha channel to the desired value. It's
>>>> not used inside the device at all (that happens later in the pipeline).
>>>
>>> OK, now I understand. Maybe the documentation should describe this a bit
>>> more explicitly ?
>>
>> I've modified the control description so now it is:
>>
>> V4L2_CID_ALPHA_COMPONENT
>> integer
>>
>
> What about clarifying it further with something like
>
> "When a mem-to-mem device produces a frame format that includes an alpha
> component (e.g. _packed RGB image_ formats), the alpha value is not defined by
> the mem-to-mem input data. This control lets you select the alpha component
> value of all pixels in such a case. It is applicable to any pixel format that
> contains an alpha component."
Thanks for the help. Since there are also mem-to-mem devices that account an input
alpha when producing an output frame (e.g. S5P SoC G2D IP block supports alpha
blending), I would change that to:
"When a mem-to-mem device produces a frame format that includes an alpha
component (e.g. _packed RGB image_ formats) and the alpha value is not defined by
the mem-to-mem input data this control lets you select the alpha component
value of all pixels. It is applicable to any pixel format that contains an alpha
component."
OR
"When data format of a frame produced by a mem-to-mem device includes an alpha
component (e.g. _packed RGB image_ formats) and the alpha value is not defined
by the mem-to-mem input data this control lets you select the alpha component
value of all pixels. The control is applicable to any pixel format that contains
an alpha component."
How do you think ?
>
>> And the part below Table 2.6
>>
>> Bit 7 is the most significant bit. The value of a = alpha bits is undefined
>> when reading from the driver, ignored when writing to the driver, except
>> when alpha blending has been negotiated for a Video Overlay or Video
>> Output Overlay or when alpha component has been configured for a Video
>> Capture by means of V4L2_CID_ALPHA_COMPONENT control.
--
Thanks,
Sylwester
next prev parent reply other threads:[~2011-11-25 13:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-24 10:53 [PATCH/RFC] Add V4L2_CID_COLOR_ALPHA control for global color alpha Sylwester Nawrocki
2011-11-24 10:53 ` [PATCH/RFC 1/2] v4l: Add a global color alpha control Sylwester Nawrocki
2011-11-24 11:00 ` Hans Verkuil
2011-11-24 11:09 ` Laurent Pinchart
2011-11-24 11:39 ` Sylwester Nawrocki
2011-11-24 11:49 ` Hans Verkuil
2011-11-24 12:06 ` Laurent Pinchart
2011-11-24 12:22 ` Hans Verkuil
2011-11-24 14:00 ` Laurent Pinchart
2011-11-24 15:53 ` Sylwester Nawrocki
2011-11-25 12:57 ` Laurent Pinchart
2011-11-25 13:24 ` Sylwester Nawrocki [this message]
2011-11-25 13:28 ` Laurent Pinchart
2011-11-24 12:25 ` Sylwester Nawrocki
2011-11-24 13:45 ` Sylwester Nawrocki
2011-11-24 10:53 ` [PATCH 2/2] s5p-fimc: Add support for global color alpha configuration 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=4ECF971F.2030602@samsung.com \
--to=s.nawrocki@samsung.com \
--cc=hverkuil@xs4all.nl \
--cc=jonghun.han@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=mchehab@redhat.com \
--cc=riverful.kim@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.