Re: [Pixman] [PATCH 4/8] Better support for NONE repeat in nearest scaling main loop template

2011-02-10 Thread Bill Spitzak
Siarhei Siamashka wrote: Anyway, right now I'm actually working on a similar function specifically for bilinear scaling, which would detect 5 zones: Actually it appears it would be very helpful if "None" instead produced an image identical to using repeat or mirror of the edges, but with th

Re: [Pixman] [PATCH 4/8] Better support for NONE repeat in nearest scaling main loop template

2011-02-10 Thread Siarhei Siamashka
On Thursday 10 February 2011 21:08:33 Bill Spitzak wrote: > It sounds to me like you are proposing that a binary zero-or-source > decision be made for each pixel in the output space. I don't think this > will work. Something like this (decision about which pixels in the output space correspond to

Re: [Pixman] [PATCH 4/8] Better support for NONE repeat in nearest scaling main loop template

2011-02-10 Thread Siarhei Siamashka
On Thursday 10 February 2011 12:12:41 Soeren Sandmann wrote: > Siarhei Siamashka writes: > > From: Siarhei Siamashka > > > > Scaling function now gets an extra boolean argument, which is set > > to TRUE when we are fetching padding pixels for NONE repeat. This > > allows to make a decision wheth

Re: [Pixman] [PATCH 4/8] Better support for NONE repeat in nearest scaling main loop template

2011-02-10 Thread Bill Spitzak
It sounds to me like you are proposing that a binary zero-or-source decision be made for each pixel in the output space. I don't think this will work. The pixel sampling of the source needs to do this, otherwise filtering cannot be used to produce an antialiased edge where the image transitio

Re: [Pixman] [PATCH 4/8] Better support for NONE repeat in nearest scaling main loop template

2011-02-10 Thread Soeren Sandmann
Siarhei Siamashka writes: > From: Siarhei Siamashka > > Scaling function now gets an extra boolean argument, which is set > to TRUE when we are fetching padding pixels for NONE repeat. This > allows to make a decision whether to interpret alpha as 0xFF or 0x00 > for such pixels when working wit

[Pixman] [PATCH 4/8] Better support for NONE repeat in nearest scaling main loop template

2011-02-03 Thread Siarhei Siamashka
From: Siarhei Siamashka Scaling function now gets an extra boolean argument, which is set to TRUE when we are fetching padding pixels for NONE repeat. This allows to make a decision whether to interpret alpha as 0xFF or 0x00 for such pixels when working with formats which don't have alpha channel