[Pixman] [PATCH] bits: Fix potential divide-by-zero in projective code

2010-07-15 Thread Søren Sandmann
From: Søren Sandmann Pedersen If the homogeneous coordinate is 0, just set the coordinates to 0. --- pixman/pixman-bits-image.c | 16 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pixman/pixman-bits-image.c b/pixman/pixman-bits-image.c index 95710b4..36ea0af

Re: [Pixman] [cairo] Better quality downsampling in cairo/pixman

2010-07-15 Thread Soeren Sandmann
Bill Spitzak writes: [replying out of order] > I still feel the best approach for Cairo is for the source > images to keep track of a single "scaled" version. This is an > integer down-rez of the original image, the scale selected so > that it is the next larger 1/integer over the actual > tran

Re: [Pixman] [cairo] Better quality downsampling in cairo/pixman

2010-07-15 Thread Bill Spitzak
Soeren Sandmann wrote: We need to modify this algorithm to work like this: For each destination pixel, several transformed source/mask locations are computed corresponding to a subpixel grid in the destination pixel. The interpolated values for these locations are then averaged together before

[Pixman] [PATCH] [sse2] Add sse2_composite_in_n_8()

2010-07-15 Thread Søren Sandmann
From: Søren Sandmann Pedersen This shows up when epiphany displays the "ImageTest" on glimr.rubyforge.org/cake/canvas.html --- pixman/pixman-sse2.c | 109 +- 1 files changed, 108 insertions(+), 1 deletions(-) diff --git a/pixman/pixman-sse2.c b/p

[Pixman] [PATCH] [sse2] Add sse2_composite_add_n_8()

2010-07-15 Thread Søren Sandmann
From: Søren Sandmann Pedersen This shows up when epiphany displays the "ImageTest" on glimr.rubyforge.org/cake/canvas.html --- pixman/pixman-sse2.c | 98 ++ 1 files changed, 98 insertions(+), 0 deletions(-) diff --git a/pixman/pixman-sse2.c b/pi

[Pixman] [PATCH] [sse2] Add sse2_composite_src_x888_8888()

2010-07-15 Thread Søren Sandmann
From: Søren Sandmann Pedersen This operation shows up when Firefox displays http://dougx.net/plunder/plunder.html --- pixman/pixman-sse2.c | 84 ++ 1 files changed, 84 insertions(+), 0 deletions(-) diff --git a/pixman/pixman-sse2.c b/pixman/pixm

[Pixman] [PATCH] [fast] Add fast_composite_src_x888_8888()

2010-07-15 Thread Søren Sandmann
From: Søren Sandmann Pedersen This shows up on when Firefox displays http://dougx.net/plunder/plunder.html --- pixman/pixman-fast-path.c | 38 ++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/pixman/pixman-fast-path.c b/pixman/pixman-fast-p

Re: [Pixman] Better quality downsampling in cairo/pixman

2010-07-15 Thread Soeren Sandmann
Alexander Shulgin writes: > So if I understand correctly, Jeff's patch is good, but it's too > specialized for resampling pixman images wholesale, Basically, Jeff's patch only did scaling, but pixman supports arbitrary transformations and we need resampling in those cases too. It may be interes