Commit graph

85 commits

Author SHA1 Message Date
Carl Worth
849a7ca8ef Port from render/mipict.c.
Merge in optimization from render/mitrap.c for op==ADD and solid alpha src.
2005-03-03 14:27:31 +00:00
Carl Worth
e533d2faeb Add a few more things that might be helpful when moving more files over from xserver. 2005-03-03 13:54:40 +00:00
Carl Worth
f482f2be49 Move definitions of MIN and MAX macros from ictrap.c to icint.h. 2005-03-03 13:52:49 +00:00
Carl Worth
76d89e8257 Remove dead "if (!format)" code which also makes things more in synch with the server's mitrap.c. 2005-03-03 13:47:04 +00:00
Carl Worth
15bb06aaa0 Restore original copyright and license which must have been inadvertently changed. 2005-03-03 13:36:30 +00:00
Carl Worth
b01798ea13 Fix comment to clarify that libpixman regards the xserver repository as its canonical upstream for some files. 2005-03-02 07:44:53 +00:00
Carl Worth
6d50e485fa Convert file encodings from ISO-8859 to UTF-8. 2005-03-02 07:43:33 +00:00
Carl Worth
272df99aab Add only-just-better-than-ASCII-art diagram showing all macros used in locating sub-pixel sample rows/columns.
Add missing protective parentheses around macro parameter usage.
2005-02-21 13:29:22 +00:00
Carl Worth
6d70b286f5 Move definition of __inline for non-gcc from ic.c to icint.h so it applies to more code in the implementation. 2005-02-21 12:57:27 +00:00
Carl Worth
6dce601fd3 Use 32-bits for pixman_bits_t, even on 64-bit platforms. This should fix bug #2335 as well as rendering problems seen on 64-bit platforms. 2005-01-26 09:10:15 +00:00
Carl Worth
c3e41a966c Add missing files to satisfy make distcheck. 2005-01-21 10:59:33 +00:00
Carl Worth
fd8974f2ad Add pixman-xserver-compat.h, (that was supposed to go in a couple of commits ago). 2005-01-21 10:52:55 +00:00
Carl Worth
dfa7b94c9c Avoid buffer ovverrun when trapezoid's right edge is on a pixel boundary. 2005-01-21 10:38:42 +00:00
Carl Worth
13225d4d3b Switch to use new fbRasterizeTrapezoid. Gut old IcRasterizeTrapezoid implementation. Remove lots of code, (and all the bugs with it).
Replace IcRasterizeTrapezoid with fbRasterizeTrapezoid. Add a couple of missing typedefs.
Minor changes to allow things to compile within libpixman tree, (replace xserver include directives with pixman-xserver-compat.h and sprinkle a few const qualifiers).
Add sources for new point-sampling rasterization.
2005-01-21 10:26:28 +00:00
Carl Worth
c64e2ccd06 Merge in changes from xserver, (mostly just whitespace). 2005-01-21 09:26:44 +00:00
Carl Worth
d894196840 Add pristine files from the X server containing Keith's newer point-sampling implementation of trapezoid rasterization. The plan is to munge these files as little as possible to make them work within libpixman, (so that it will be easier to share patches between libpixman and the X server). 2005-01-18 11:54:23 +00:00
Carl Worth
b0de4a7d09 (IcRasterizeTrapezoid): Fix the above correction so that it doesn't force 0 alpha when the left edge is positioned above but slopes so as to contain some of the pixel. 2005-01-13 18:08:57 +00:00
Carl Worth
46baad20ee Force alpha to 0 when the left edge is entirely above top. (This is a workaround for some bizarre edge effects in the current algorithm). 2005-01-13 14:53:13 +00:00
Carl Worth
dc0d812f6c Restore extern tag for variable declarations, (accidentally removed when recently removing extern from function prototypes). 2005-01-07 12:14:40 +00:00
Carl Worth
c90bd12ec7 Do nothing if src image has width or height == 0 to avoid potential divide-by-zero. 2005-01-04 11:55:36 +00:00
Carl Worth
f76d898cf1 Rename __internal_linkage to pixman_private.
Track rename to pixman_private and move it to before the function return value to quiet gcc warnings about visibility attribute ignored for non-class type.
2004-12-23 11:10:08 +00:00
Carl Worth
cd21775ef9 Fix to actually call pixman_fill_rect_32bpp in the 32 bpp case. Thanks to TOKUNAGA Hiroyuki <tkng@xem.jp>. (pixman_fill_rect_8bpp, pixman_fill_rect_32bpp): Fix typo in naming: bbp -> bpp. 2004-12-23 11:00:01 +00:00
Alexander Larsson
e291f1d882 Special case solid color rectangle fills. 2004-12-20 06:15:21 +00:00
Carl Worth
19d3fc2399 Switch from two different buggy mod macros to a new MOD macro which should work in C89 or C99. 2004-10-27 07:26:36 +00:00
David Reveman
3a1931baba Added pixman_format_get_masks and fixed a few format issues 2004-09-12 06:06:50 +00:00
David Reveman
d0e30df8cb Added function for setting component alpha 2004-09-11 19:55:24 +00:00
David Reveman
1ba0de94fb Fixed clipping 2004-09-11 19:42:40 +00:00
David Reveman
81d6658858 Byte-order fix 2004-09-11 19:33:23 +00:00
David Reveman
c5786fd0fe Added support for both transform and repeat 2004-09-11 19:27:59 +00:00
Carl Worth
9faef192af Leave clientClipType as CT_NONE if region is NULL (thanks to Vladimir Vukicevic <vladimir@pobox.com>). 2004-05-06 05:50:23 +00:00
Carl Worth
821a9f2f6c Fix bogus names such as PIXMAN_FORMAT_NAME_AR_GB32 that were left over from a broken search-and-replace. Normalize structure defintions, (eg. struct _pixman_region16_t -> struct pixman_region16). Normalize indentation.
Fix alphabetization.
2004-04-16 08:32:53 +00:00
Carl Worth
f1d98d27a6 Remove dead-code (useless n++). 2004-01-24 01:50:55 +00:00
Richard Worth
077fcb36da Add '-no-undefined' to end of libpixman_la_LDFLAGS tp enable building shared libary under cygwin.
Remove all 'extern ' and ' __external_linkage' (macro for __declspec(dllexport) and __declspec(dllimport)) from function declarations. These are no longer needed for cygwin.
2004-01-22 21:05:08 +00:00
Carl Worth
22792e2e7a Remove trailing commas from enum, (some compilers like to complain about this). 2003-12-17 13:17:13 +00:00
Dave Beckett
b694e4d1ff (libpixman_la_SOURCES): slim_export.h slim_import.h gone. 2003-12-12 15:11:23 +00:00
Dave Beckett
09abb6df40 Remove LIBPIXMAN_CFLAGS/LIBS cruft. 2003-12-12 15:09:55 +00:00
Carl Worth
0278468fc1 Fold contents of slim_export/import.h directly into this file to avoid dependence on external slim package.
Use quote-based include now that slim_internal is an internal file.
Follow convention of other files for multi-inclusion guard (_IC_INT_H_)
Remove cruft.
2003-12-12 10:47:59 +00:00
Dave Beckett
af1ab1a9f2 Correct some more renames where the order of the renaming caused later renames to fail due to earlier prefixes failing. 2003-12-10 15:39:45 +00:00
Dave Beckett
4ecffdf8b9 Correct over-eager renames of the form pixman_thing_tName into pixman_thing_name. It was inevitable really this would happen! 2003-12-10 15:23:11 +00:00
Dave Beckett
94988dbe09 Rename exported Ic* and PixRegion* functions, types, enums to be prefixed pixman (or PIXMAN for enum values) 2003-12-10 14:20:05 +00:00
Dave Beckett
7ba9ad2973 Change ic.h/pixregion.h headers inclusions to be pixman.h 2003-12-09 16:09:33 +00:00
Dave Beckett
b76a5ccf7f Removed ic.h, merged into pixman.h 2003-12-09 16:08:36 +00:00
Dave Beckett
08e0943c9f Merged pixregion.h (former name and CVS history of this file) and ic.h (now CVS deleted here). 2003-12-09 16:08:16 +00:00
Dave Beckett
9b086c3330 Updated for libpixregion,libic to libpixman source merges. Added -I$(srcdir) so we get internal headers from here even when srcdir != builddir. 2003-12-09 16:06:52 +00:00
Carl Worth
3369c676f0 Bump version to 0.1.5 for new 64-bit fixes.
One more fix needed for 64-bit machine (alpha in this case). Thanks to Jakub Bogusz <qboosh@pld-linux.org>.
2003-11-25 07:45:34 +00:00
Carl Worth
75ced44ae0 Fixes needed to compile libic on x86_64. Many thanks to David R Bacon <dbacon@cis.ksu.edu>. 2003-11-17 07:43:06 +00:00
Carl Worth
3262cd9f95 Removed stale version from ic.h. Better to have no version listed than the wrong one. 2003-11-06 07:56:10 +00:00
Carl Worth
0819fbb164 Add IcImageGetDepth. Bump version to 0.1.3 2003-11-01 05:23:55 +00:00
Carl Worth
22c167e00f Fix memory leak of image->transform. Remove currently unused DevUnion type and IcImageChange function. 2003-10-29 10:54:26 +00:00
Carl Worth
ece5507937 Patch from Bryan Worth <bryan@theworths.org> to eliminate lots of leftover, undesired dependencies on X header files. 2003-10-29 10:45:02 +00:00