[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-xorg-devel
Subject: Re: [PATCH RFC xserver] dix: Work around non-premultiplied ARGB cursor data
From: Michel_Dänzer <michel () daenzer ! net>
Date: 2016-06-29 1:23:30
Message-ID: a379b9b8-6937-61f5-b4e4-118bedb6708f () daenzer ! net
[Download RAW message or body]
On 28.06.2016 18:50, Alexander E. Patrakov wrote:
> 28.06.2016 13:22, Michel Dänzer пишет:
>> This change checks for pixels with alpha == 0 and any non-alpha component
>> != 0. If any such pixel is found, the data is assumed to be
>> non-premultiplied and fixed up by multiplying the RGB components with the
>> alpha component.
>
> I think that, if we want to check for pixel values that are clearly
> incompatible with premultiplied alpha, a better test would be to see if
> any non-alpha component is greater than the corresponding alpha, instead
> of limiting it to alpha == 0. Does it make sense?
I don't think it makes any difference in practice, unless you can point
me to any examples of cursor images where none of the pixels are
(supposed to be) fully transparent.
--
Earthling Michel Dänzer | http://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic