Benjamin Otte
e3ad87033e
fix ColorDodge and ColorBurn to conform to the PDF spec
2009-06-23 14:42:34 -04:00
Benjamin Otte
35bb57e723
use PDF algorithm for soft-light
2009-06-23 14:42:34 -04:00
Benjamin Otte
0735aeeaeb
Add INVERT and SUBTRACT blend modes used in Flash
2009-06-23 14:42:33 -04:00
Benjamin Otte
740425ab96
use a pixman_op_t here
...
This improves the readability in gdb when debugging this structure
2009-06-23 14:42:33 -04:00
Benjamin Otte
94e9673eaa
Add support for extended blend mode. First pass.
...
This adds support only for FbCombineU function.
This work is based on equations provided in SVG 1.2 specification draft.
http://www.w3.org/TR/SVG12/
Based on a previous patch by Emmanuel Pacaud <emmanuel.pacaud@free.fr>
2009-06-23 14:42:33 -04:00
Michel Dänzer
99108040f0
Fix the build on big endian machines.
2009-06-23 14:03:39 -04:00
Søren Sandmann Pedersen
bb3b3da18a
Rename PIXMAN_FORMAT_16BPC macro to PIXMAN_FORMAT_IS_WIDE
2009-06-23 13:57:03 -04:00
Søren Sandmann Pedersen
039d4618f7
Write alpha map fetching with FbByteMul() instead of div_255()
...
Delete the div_255/div_65535 macros.
2009-06-23 13:57:03 -04:00
Søren Sandmann Pedersen
3e39b566ee
Remove unused typedefs.
2009-06-23 14:00:22 -04:00
Søren Sandmann Pedersen
2c70814b6b
Delete unused _pixman_image_get_fetcher() function
2009-06-22 20:43:08 -04:00
Søren Sandmann Pedersen
b3bd739447
Move accessor macros to their own header.
...
Also rearrange some things in pixman-private.h
2009-06-22 19:51:13 -04:00
Søren Sandmann Pedersen
fe8ef09e98
Move FbGet8() macro into pixman-bits-image.c
...
It is only used for bilinear filtering now. Also some formatting
changes in pixman-private.h
2009-06-22 19:38:58 -04:00
Søren Sandmann Pedersen
0358776445
Delete FbInOverC macro
2009-06-22 19:35:11 -04:00
Søren Sandmann Pedersen
1c429b4fbe
Make pixman-mmx.c compile again.
2009-06-22 19:25:25 -04:00
Søren Sandmann Pedersen
7bb9df0382
Fix typo in CLIP macro.
2009-06-22 16:34:15 -04:00
Søren Sandmann Pedersen
63b050de5b
Turn the FbAdd() macro into an FbIntAdd() which doesn't take a channel.
...
The only use of the channel argument could be written better with FbByteAdd().
2009-06-22 16:33:40 -04:00
Søren Sandmann Pedersen
026ef58328
Delete FbInU macro.
...
Replace uses of it with FbIntMult().
2009-06-22 16:33:30 -04:00
Søren Sandmann Pedersen
5028c1599a
Use fbOver() instead of fbOver24.
...
fbOver() is faster anyway, and this lets us get rid of fbOverU.
Also use FbByteMul() in fbIn instead of four times FbInU.
Finally, delete FbOverC and FbInC since they weren't used.
2009-06-22 16:33:11 -04:00
Søren Sandmann Pedersen
ca4750be0a
Eliminate Fetch/Store24 macros.
...
Replace them with inline functions in pixman-bits-image.c.
2009-06-22 08:09:11 -04:00
Søren Sandmann Pedersen
e68f8bc118
Remove unused ACCESS macros in pixman-bits-image.c
2009-06-22 07:05:54 -04:00
Søren Sandmann Pedersen
233d8907ed
Various minor changes
...
- Add underscores to the pixman_image_get_solid(),
pixman_image_is_solid(), and pixman_is_opaque() names.
- A number of formatting fixes
- Move debug code to the end of pixman-private.h
- Collect all prototypes for image methods in one place
2009-06-22 06:51:04 -04:00
Søren Sandmann Pedersen
950bcd7d4a
Some formatting changes
2009-06-21 22:36:15 -04:00
Søren Sandmann Pedersen
8b616c5725
Delete struct point
2009-06-21 22:36:15 -04:00
Søren Sandmann Pedersen
653fe825c9
Move region helpers into pixman-utils.c
2009-06-21 22:36:15 -04:00
Søren Sandmann Pedersen
00d852c969
Move code around
2009-06-21 22:36:15 -04:00
Søren Sandmann Pedersen
a4ef790faa
Move pixman_version() to pixman.c
2009-06-21 22:36:15 -04:00
Søren Sandmann Pedersen
f1049c61d6
Move pixman_compute_composite_region() into pixman-utils.c
2009-06-21 22:36:15 -04:00
Søren Sandmann Pedersen
7690af20fc
Eliminate pointless Red/Green/Blue macros
2009-06-21 22:36:15 -04:00
Søren Sandmann Pedersen
f6faf538ee
Get rid of indexed argument to store functions
2009-06-21 22:36:15 -04:00
Søren Sandmann Pedersen
fdb25d9747
Move macros around in pixman-private.h
2009-06-21 22:36:15 -04:00
Søren Sandmann Pedersen
76bf3073d4
Move some macros into pixman-access.c
2009-06-21 22:36:15 -04:00
Søren Sandmann Pedersen
e2b5b05b38
Delete obsolete comment
2009-06-21 22:36:15 -04:00
Søren Sandmann Pedersen
271a0d34a0
Move edge stepper macros into pixman-edge.c
2009-06-21 22:36:14 -04:00
Søren Sandmann Pedersen
92eca118ad
Delete FB_MASK and FB_ALLONES macros
2009-06-21 22:36:14 -04:00
Søren Sandmann Pedersen
9541538a97
Implement fbStore_a2g2b2r2
2009-06-21 22:36:14 -04:00
Søren Sandmann Pedersen
433d94e60b
Replace switch functions in pixman-access.c with a table of accessors.
...
Also delete unused orig_data pointer.
2009-06-21 22:35:54 -04:00
Søren Sandmann Pedersen
d78e30b26b
Rename pixman_image_can_get_solid() to pixman_image_is_solid
2009-06-21 19:06:25 -04:00
Søren Sandmann Pedersen
6e20c25743
Turn fbComposeGetSolid() macro into a pixman_image_get_solid() function.
2009-06-21 18:58:53 -04:00
Søren Sandmann Pedersen
76aa72e8ca
Delete unused WRITE_ACCESS() macro
2009-06-21 18:51:36 -04:00
Søren Sandmann Pedersen
3c0ed5b92d
Move pixman_image_fill_rectangles() to pixman.c
2009-06-21 18:51:06 -04:00
Søren Sandmann Pedersen
fb0fe616f2
Delete unused mod macro
2009-06-21 18:43:27 -04:00
Søren Sandmann Pedersen
bfa6f8c0b0
Eliminate bit fiddling macros from pixman-private.h.
...
There was one remaining use of FbMaskBits in the a1 trap rasterizer;
just move that macro there.
2009-06-21 18:40:25 -04:00
Søren Sandmann Pedersen
84886292e2
Implement fbComposeGetSolid() as a call to pixman_image_get_scanline()
2009-06-21 18:29:39 -04:00
Søren Sandmann Pedersen
8e40734174
Eliminate FbStipMask macro.
...
It was only used for storing into a1 images, and that code could be
written more clearly by computing the bit index directly.
2009-06-21 16:45:17 -04:00
Søren Sandmann Pedersen
590d034bb3
Implement pixman_format_supported_destination() in terms of pixman_format_supported_source()
2009-06-21 16:07:50 -04:00
Søren Sandmann Pedersen
16a87a89e1
Move FbGen macro into pixman-combine.c
2009-06-21 15:09:02 -04:00
Søren Sandmann Pedersen
d18722cdb6
Use DIV instead of _div In pixman-trap.c.
2009-06-21 13:29:59 -04:00
Søren Sandmann Pedersen
81d6725f31
Move edge utilities into pixman-trap.c
2009-06-21 13:29:59 -04:00
Søren Sandmann Pedersen
793c92dadb
Move compiler dependencies to a new pixman-compiler.h file
2009-06-21 13:29:59 -04:00
Søren Sandmann Pedersen
5624ca0417
Rename FastPathInfo to pixman_fast_path_t
2009-06-21 13:29:59 -04:00