Commit Graph

460 Commits

Author SHA1 Message Date
Frederic Plourde
ddfb69ae87 Enable/fix MMX compilation under Win32 with Visual Studio 2008-03-13 14:24:08 -07:00
Søren Sandmann
f2d8a5caa6 Add rounding epsilon for NEAREST filter after transformation, not before.
For nearest filtering, the transformed location must be rounded to the
nearest sample. For locations that precisely in the middle between two
samples, we round down by adding -epsilon to the coordinates.

Before, we would do this on untransformed coordinates. This patch
changes it to happen after transformation. It also clarifies the
difference between sample locations and rounding.

Reported by Robert O'Callahan.
2008-03-10 23:41:52 -04:00
Antoine Azar
5bcde57da7 Fixed transformed/untransformed cases of extend_pad by using fbfetchtransformed in all cases and making sure no fast path can be taken. 2008-03-05 15:27:11 -08:00
Søren Sandmann
476f10237e Update TODO 2008-02-29 18:32:44 -05:00
Antoine Azar
8533dcbccc Fix EXTEND_PAD for untransformed sources 2008-02-27 11:32:13 -05:00
Søren Sandmann Pedersen
77c43c6c49 Fix another NULL dereference in pixman-compose.c, reported by Joel
Bosveld.

Update TODO.
2008-02-25 20:12:42 -05:00
Bertram Felgenhauer
8d79c48126 Fix a NULL pointer dereference in fbFetchFromNRectangles().
As pointed out by Soeren Sandmann Pedersen, calling
pixman_region_contains_point with a NULL box argument leads to a crash.
Also fix a few warnings.
2008-02-16 09:39:59 +01:00
Antoine Azar
435086f6a4 Refactor fbFetchTransformed() 2008-02-07 21:14:30 +01:00
Vladimir Vukicevic
e95638c629 Include only pixman-private.h, not pixman.h, in local .c files
This is so that changes (such as symbol renames) can take place in
pixman-private and ensure that they're included before the prototypes from
pixman.h.  pixman-private.h includes pixman.h right at the start.
2008-01-27 14:49:12 -08:00
Bertram Felgenhauer
787cc57c7c export pixman_transform_point_3d function 2008-01-23 16:08:48 +01:00
Carl Worth
e4d482a6bb A tiny amount of ifdef reduction.
Just moving two common assignments outside the condition to
drop the #else part.
2008-01-22 16:33:58 -08:00
Carl Worth
bcac333589 Merge commit 'inte/sampling' 2008-01-22 16:31:44 -08:00
Carl Worth
e5ceddf038 Ignore test/fetch-test 2008-01-22 16:29:05 -08:00
Carl Worth
ad773927d8 Add release-publish target and RELEASING instructions 2008-01-22 16:29:05 -08:00
Bertram Felgenhauer
054be10736 eliminate a special case in fbRasterizeEdges{4,8}. 2008-01-22 08:00:05 +01:00
Bertram Felgenhauer
5467807e75 fix cairo's a1-traps-sample test
For 1 bit alpha targets, the left and right boundaries of edges were
not rounded correctly.
2008-01-22 07:57:54 +01:00
Bertram Felgenhauer
1d89bac5a7 fix cairo's a1-image-sample test
Move the sampling point for image surfaces very slightly so that it's in
the upper left quadrant of the pixel.
2008-01-19 15:38:16 +01:00
Alp Toker
45074018c3 Avoid use of C++ keyword xor in header 2008-01-15 16:34:57 -05:00
Vladimir Vukicevic
e0af5922cd Remove trailing ; in SETUP_YV12 macro
Causes compilation problems with MSVC.
2008-01-15 16:51:59 -08:00
Vladimir Vukicevic
9a0639650e Remove last CVS $Id$ tags 2008-01-15 13:33:57 -08:00
Søren Sandmann
df964790e8 Don't use the pixbuf fast paths when the source picture has alpha. Bug
13650, reported by Wu Nian.
2007-12-20 00:23:18 -05:00
Luca Barbato
49240111db Merge branch 'master' of git://anongit.freedesktop.org/pixman 2007-12-16 00:38:16 +01:00
Søren Sandmann
72b46bcf34 Guard MMX get_fast_path() with pixman_have_mmx() 2007-12-07 18:59:54 -05:00
Søren Sandmann
bb056d4e02 Use -fvisibility=hidden by default.
Add a PIXMAN_EXPORT macro that expands to the appropriate GCC magic.
Various formatting fixes.
2007-12-03 13:14:42 -05:00
Søren Sandmann
48d52fadc2 Make the tables static; remove unused flag 2007-12-01 22:50:05 -05:00
Søren Sandmann
0a53c41dbc Set maskRepeat to FALSE when the function is NEED_SOLID_MASK 2007-12-01 21:56:25 -05:00
Søren Sandmann
47d39c002d Conditionalize MMX code with USE_MMX 2007-12-01 20:55:56 -05:00
Søren Sandmann
14d628b015 Add some commented-out plain C fast paths. 2007-12-01 20:54:13 -05:00
Søren Sandmann
a916c69cc6 Delete switch of doom. 2007-12-01 20:46:29 -05:00
Søren Sandmann
4dcddfa6e9 Check for correct op. 2007-12-01 20:41:49 -05:00
Søren Sandmann
60134ed7ab Add code to locate fast paths. Comment out switch of doom. 2007-12-01 20:35:03 -05:00
Søren Sandmann
819a6d6878 Beginning of the end for the Switch of Doom.
Add tables with information about the MMX and plain-C fast paths.
Update TODO.
2007-12-01 19:56:26 -05:00
Julien Cristau
a604a394e1 Prepare changelog for upload and add bug closer. 2007-11-25 00:42:51 +01:00
Julien Cristau
3362831e2b Delete unused file. 2007-11-08 11:26:19 +01:00
Julien Cristau
df9c870e24 New upstream release.
Drop patches 02_no-sse.diff and 03_fbFetchTransformed_64bit_fix.diff.
2007-11-08 11:21:32 +01:00
Julien Cristau
37882df5df Merge tag 'pixman-0.9.6' into debian-unstable 2007-11-08 11:12:24 +01:00
Carl Worth
f1f52ae4b1 Track name change from pixman.pc to pixman-1.pc in .gitignore 2007-10-30 11:48:50 -07:00
Alan Hourihane
d4d78c8c1a Merge branch 'master' of git+ssh://git.freedesktop.org/git/pixman into yuv-porting 2007-10-24 21:39:34 +01:00
Søren Sandmann Pedersen
b39ca42fce Bump version number 2007-10-24 15:48:45 -04:00
Alan Hourihane
85bccce4d8 Merge branch 'master' of git+ssh://git.freedesktop.org/git/pixman into yuv-porting
Conflicts:

	pixman/pixman-compose.c
	pixman/pixman.h
2007-10-18 17:33:43 +01:00
Søren Sandmann
28532430ef Only compile with -msse on x86-64. 2007-10-17 20:01:27 -04:00
Søren Sandmann
ab6743b170 Make stride signed in various places. This should fix some the
crashers that people have reported in bug 12398.
2007-10-17 19:20:55 -04:00
Søren Sandmann
aca8b610d9 Remove comma from enumerator list. Bug 12621, reported by Matt Kraai. 2007-10-17 18:43:13 -04:00
Søren Sandmann
089c3e6ad0 Add README file based on text from Bjorn Lindquist 2007-10-17 18:40:28 -04:00
Alan Hourihane
8aa38d2256 Merge branch 'master' of git+ssh://git.freedesktop.org/git/pixman into yuv-porting
Conflicts:

	pixman/pixman-image.c
2007-10-17 19:39:41 +01:00
Julien Cristau
6f65ce9886 Fix 64-bit arithmetic bug in fbFetchTransformed.
Add patch by Francis Whittle from upstream bug#12398
(https://bugs.freedesktop.org/attachment.cgi?id=11896) to fix arithmetic
bug in fbFetchTransformed (causing X crashes on 64bit); closes: #444457.
2007-10-16 10:03:53 +02:00
Luca Barbato
808e4f541b Merge branch 'master' of git://anongit.freedesktop.org/pixman 2007-10-01 22:13:05 +00:00
Tilman Sauerbeck
39a67d35f0 Fixed the declaration of pixman_image_set_source_clipping(). 2007-09-29 22:46:19 +02:00
Chris Wilson
7f820e1507 [pixman-image] [mlk] Free the locally allocated bits.
If we fail to allocate the image, remember to free the bits if we have
created the buffer on behalf of the caller.
2007-09-27 13:51:04 +01:00
Chris Wilson
b4f0cc6eea [pixman-image] Avoid a potential malloc(0).
Do not attempt to allocate bits if either the image width or height is
0 - Cairo has a habit of attempting to create such surfaces when
generating glyphs. The malloc(0) may return a NULL pointer and be treated
as an out-of-memory error.
2007-09-27 13:50:55 +01:00