Re: [Pixman] [PATCH 3/3] BILINEAR->NEAREST filter optimization for simple rotation and translation

2011-05-24 Thread Soeren Sandmann
Andrea Canciani writes: > On Mon, May 23, 2011 at 8:43 AM, Andrea Canciani wrote: >> On Sun, May 22, 2011 at 11:15 PM, Siarhei Siamashka >> wrote: >>> From: Siarhei Siamashka >>> >>> Simple rotation and translation are the additional cases when BILINEAR >>> filter can be safely reduced to NEAR

Re: [Pixman] [PATCH 3/3] BILINEAR->NEAREST filter optimization for simple rotation and translation

2011-05-23 Thread Bill Spitzak
If I understand this right, I also think the "simple" test is all that is needed. The only interesting matrixes are 1:1 scale with integer translations. There are exactly eight arrangements of the upper-left corner: with ±1 in location 0,0 and 1,1, and with ±1 in locations 0,1 and 1,0. I think

Re: [Pixman] [PATCH 3/3] BILINEAR->NEAREST filter optimization for simple rotation and translation

2011-05-23 Thread Andrea Canciani
On Mon, May 23, 2011 at 3:16 PM, Siarhei Siamashka wrote: > On Mon, May 23, 2011 at 9:48 AM, Andrea Canciani wrote: >> On Mon, May 23, 2011 at 8:43 AM, Andrea Canciani wrote: >>> On Sun, May 22, 2011 at 11:15 PM, Siarhei Siamashka >>> wrote: From: Siarhei Siamashka Simple rotati

Re: [Pixman] [PATCH 3/3] BILINEAR->NEAREST filter optimization for simple rotation and translation

2011-05-23 Thread Siarhei Siamashka
On Mon, May 23, 2011 at 9:48 AM, Andrea Canciani wrote: > On Mon, May 23, 2011 at 8:43 AM, Andrea Canciani wrote: >> On Sun, May 22, 2011 at 11:15 PM, Siarhei Siamashka >> wrote: >>> From: Siarhei Siamashka >>> >>> Simple rotation and translation are the additional cases when BILINEAR >>> filte

Re: [Pixman] [PATCH 3/3] BILINEAR->NEAREST filter optimization for simple rotation and translation

2011-05-22 Thread Andrea Canciani
On Mon, May 23, 2011 at 8:43 AM, Andrea Canciani wrote: > On Sun, May 22, 2011 at 11:15 PM, Siarhei Siamashka > wrote: >> From: Siarhei Siamashka >> >> Simple rotation and translation are the additional cases when BILINEAR >> filter can be safely reduced to NEAREST. > > I believe that this reduc

Re: [Pixman] [PATCH 3/3] BILINEAR->NEAREST filter optimization for simple rotation and translation

2011-05-22 Thread Andrea Canciani
On Sun, May 22, 2011 at 11:15 PM, Siarhei Siamashka wrote: > From: Siarhei Siamashka > > Simple rotation and translation are the additional cases when BILINEAR > filter can be safely reduced to NEAREST. I believe that this reduction is valid for any matrix which describes a unit transform follow

[Pixman] [PATCH 3/3] BILINEAR->NEAREST filter optimization for simple rotation and translation

2011-05-22 Thread Siarhei Siamashka
From: Siarhei Siamashka Simple rotation and translation are the additional cases when BILINEAR filter can be safely reduced to NEAREST. --- pixman/pixman-image.c | 37 + 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/pixman/pixman-image.c b/