Commit Graph

1929 Commits

Author SHA1 Message Date
Carl Worth
7fa668f4ac New API: pixman_format_supported_destination and pixman_format_supported_source
These functions allow for callers to use the PIXMAN_FORMAT macro to
construct a format code and to then determine if the resulting code
is supported by pixman for either destination or source surfaces.
2008-03-25 13:12:29 -07:00
Carl Worth
bd2a53fc4e Add pixman_version function and related macros
The complete new API here makes available compile-tim version checks:

	PIXMAN_VERSION
	PIXMAN_VERSION_STRING
	PIXMAN_VERSION_ENCODE

as well as run-time version checks:

	pixman_version()
	pixman_version_string()
2008-03-25 12:38:01 -07:00
Carl Worth
b078cb3250 Increment pixman version to 0.9.7
This represents the in-development state, (so that the next release
will be 0.9.8 with an even-number micro component).
2008-03-25 12:38:01 -07:00
Carl Worth
0c2c891c8f Document incrementing the micro version immediately after a release
This is a cairo-like scheme where the version number is incremented
both immediately before and immediately after a release.
2008-03-25 12:38:01 -07:00
Vladimir Vukicevic
11cfd5d1bb Only define pixman_have_sse() as function if USE_SSE2 is also defined
.. otherwise it's already a macro evaluating to FALSE.
2008-03-25 11:45:56 -07:00
Luca Barbato
e63bf1554b Make configure message alike the mmx/sse/sse2 ones 2008-03-23 16:12:31 +01:00
Luca Barbato
dcc5301780 Update vmx 2008-03-23 16:04:26 +01:00
Luca Barbato
550e5f54ab update patch 2008-03-22 11:28:48 +01:00
Aaron Plattner
4f33f454c6 Move fbFetchTransformed and friends into pixman-transformed.c. 2008-03-21 19:02:18 -07:00
Aaron Plattner
90ff2bfbe5 Move pixmanFetchSourcePict and friends into pixman-source.c. 2008-03-21 19:01:39 -07:00
Aaron Plattner
76febfcd20 Move fetch, fetchPixel, and store routines into pixman-access.c. 2008-03-21 19:00:59 -07:00
Aaron Plattner
d6143b8634 Get rid of fbPrepareAccess and fbFinishAccess, since the former was unused and neither one did anything anyway. 2008-03-21 17:13:32 -07:00
Aaron Plattner
9fe5913c34 Rename pixman-compose-operators.c to pixman-combine.c and fix the build.
Add pixman-combine.c to the source list.  Make the functions in it static.  Call
fbCombineInU through the PIXMAN_COMPOSE_FUNCTIONS table.  Declare the functions
tables as extern in pixman-private.h.
2008-03-21 14:15:34 -07:00
Antoine Azar
d47a686d91 [PATCH] Moved all composition operators from pixman-compose.c to their own c/h file
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2008-03-21 13:54:08 -07:00
Kamalneet Singh
29a8ae4185 Fix computation of x_offset in pixman_add_traps. 2008-03-19 10:02:11 -04:00
nmiell@gmail.com
aa9907b237 Fix the SSE related AMD64 build breakage
The introduction of pixman_have_sse() copied the #ifdef __amd64__
found around pixman_have_mmx() in pixman-mmx.c but didn't include the
equivalents of the macros in pixman-mmx.h. As a result, the AMD64 link
fails because the pixman_have_sse() function doesn't exist.

I also introduced header inclusion guards to pixman-mmx.h and
pixman-sse.h while I was at it.
2008-03-17 20:21:37 -04:00
Søren Sandmann
6449782f8a Fix typo; include pixman-sse.h 2008-03-14 19:24:28 -04:00
Søren Sandmann
917e73385f Require MMX and MMX_Extensions for SSE. Various code style fixes. 2008-03-14 19:20:34 -04:00
Rodrigo Kumpera
6cb327be1f Add build system support for SSE2. 2008-03-14 19:11:17 -04:00
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