RE: GTK progressbar call on XRenderComposite
- From: "Huang, FrankR" <FrankR Huang amd com>
- To: "Jonathan Morton" <jonathan morton movial com>
- Cc: xorg-devel lists x org, gtk-list gnome org
- Subject: RE: GTK progressbar call on XRenderComposite
- Date: Sat, 29 May 2010 16:10:11 +0800
Thanks.
Is there any difference in RGB24 and ARGB32 to display them on the screen without mask(mask=0)? The same? I gave a test, seems that for ARGB32 picture, I change the alpha value of it, no difference.
If CA is used for text rendering, I don't care that.
-----Original Message-----
From: Jonathan Morton [mailto:jonathan morton movial com]
Sent: 2010年5月28日 22:18
To: Huang, FrankR
Cc: xorg-devel lists x org; gtk-list gnome org
Subject: RE: GTK progressbar call on XRenderComposite
On Fri, 2010-05-28 at 15:34 +0800, Huang, FrankR wrote:
> I know if the source pict format is RGB24, the mask will do multiply
> each color. For example Red*alpha, Green*alpha, Blue*alpha.
> If the source pict format is ARGB32, how the calculate comes on?
The same - the alpha channel and each colour channel are all multiplied
by the mask value. (Remembering of course that 255 == 1.0, so the
values always go down or stay the same.)
In fact this is also what should happen in the RGB24 case, since in the
XRender pipeline, RGB24 is treated the same as ARGB32, with the alpha
channel implied to be 255.
> And what's the difference between Composite and CompositeCA?
CA stands for Component Alpha. It's used for subpixel antialiasing,
which you might have heard described as "ClearType".
You should probably not try to accelerate Component Alpha directly until
you deeply understand the formulae involved. EXA can convert common use
cases of Component Alpha into pairs of simpler operations.
--
------
From: Jonathan Morton
jonathan morton movial com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]