Søren Sandmann Pedersen [Sat, 18 Jul 2009 21:59:43 +0000 (17:59 -0400)]
Align the stack in _pixman_implementation_create_sse2()
When compiled without optimization, GCC will place various temporaries
on the stack. Since Firefox sometimes causes the stack to be aligned
to four bytes, this causes movdqa to generate faults.
M Joonas Pihlaja [Sun, 19 Jul 2009 15:20:53 +0000 (18:20 +0300)]
Check whether the linker understands the hwcap file before using it.
If we're trying to use the GNU linker on Solaris we shouldn't use
our solaris-hwcap.mapfile since it doesn't grok the mapfile format.
Søren Sandmann Pedersen [Sat, 18 Jul 2009 02:40:41 +0000 (22:40 -0400)]
Move read and write functions to the bits_image_t struct.
Those fields were duplicated between image_common and bits_image_t
before.
Benjamin Otte [Fri, 17 Jul 2009 14:01:59 +0000 (16:01 +0200)]
Handle degenerate case in pixman_init_rect()
Create an empty region in that case.
Søren Sandmann Pedersen [Fri, 17 Jul 2009 10:43:35 +0000 (06:43 -0400)]
Add back check for need_workaround that got removed during reindenting
Søren Sandmann Pedersen [Thu, 16 Jul 2009 14:38:22 +0000 (10:38 -0400)]
Fix combine_src_ca() to fill out all of the destination line.
Søren Sandmann Pedersen [Thu, 16 Jul 2009 13:34:22 +0000 (09:34 -0400)]
Change composite test to use a rainbow gradient as source.
Also make the destination a yellow patch. This makes the output a bit
more comparable to the image in the PDF specification.
Søren Sandmann Pedersen [Thu, 16 Jul 2009 10:23:25 +0000 (06:23 -0400)]
Various minor formatting changes
Søren Sandmann Pedersen [Thu, 16 Jul 2009 10:06:17 +0000 (06:06 -0400)]
Change name of macro from RGB16_TO_ENTRY to RGB15_TO_ENTRY
Benjamin Otte [Thu, 16 Jul 2009 13:33:43 +0000 (15:33 +0200)]
Clarify color burn code - no semantical changes
- Improve documentation to be equal to Proposed ISO32000 Extension
- Simplify code in default case
Benjamin Otte [Thu, 16 Jul 2009 13:28:05 +0000 (15:28 +0200)]
Clarify color dodge code - no semantical changes
- Improve documentation to be equal to Proposed ISO32000 Extension
- Simplify code in default case
Benjamin Otte [Thu, 16 Jul 2009 13:02:51 +0000 (15:02 +0200)]
Fix terms in comments describing the blend modes
Søren Sandmann Pedersen [Tue, 14 Jul 2009 22:49:43 +0000 (18:49 -0400)]
Add -fno-strict-aliasing
Søren Sandmann Pedersen [Tue, 14 Jul 2009 02:22:20 +0000 (22:22 -0400)]
Post-release version bump
Søren Sandmann Pedersen [Tue, 14 Jul 2009 02:00:52 +0000 (22:00 -0400)]
Pre-release version bump
Søren Sandmann Pedersen [Mon, 13 Jul 2009 23:58:04 +0000 (19:58 -0400)]
Reindent and rename identifiers in scaling-test.c
Søren Sandmann Pedersen [Mon, 13 Jul 2009 06:37:19 +0000 (02:37 -0400)]
Reformat pixman.h
Søren Sandmann Pedersen [Mon, 13 Jul 2009 05:35:15 +0000 (01:35 -0400)]
Reindent and reformat pixman-private.h
Søren Sandmann Pedersen [Mon, 13 Jul 2009 05:17:53 +0000 (01:17 -0400)]
Reindent and reformat pixman-combine.h.template
Søren Sandmann Pedersen [Mon, 13 Jul 2009 05:13:47 +0000 (01:13 -0400)]
Reindent and reformat pixman-combine.c.template
Søren Sandmann Pedersen [Mon, 13 Jul 2009 02:05:32 +0000 (22:05 -0400)]
Reindent and reformat pixman-vmx.c
Søren Sandmann Pedersen [Mon, 13 Jul 2009 01:57:08 +0000 (21:57 -0400)]
Reformat and reindent pixman-utils.c
Søren Sandmann Pedersen [Mon, 13 Jul 2009 01:40:41 +0000 (21:40 -0400)]
Reformat and reindent pixman-trap.c
Søren Sandmann Pedersen [Mon, 13 Jul 2009 01:37:16 +0000 (21:37 -0400)]
Reformat pixman-timer.c
Søren Sandmann Pedersen [Mon, 13 Jul 2009 01:36:32 +0000 (21:36 -0400)]
Reformat and reindent pixman-sse2.c
Søren Sandmann Pedersen [Mon, 13 Jul 2009 00:31:26 +0000 (20:31 -0400)]
Reformat and reindent pixman-solid-fill.c
Søren Sandmann Pedersen [Mon, 13 Jul 2009 00:30:44 +0000 (20:30 -0400)]
Reformat and reindent pixman-region.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 23:59:17 +0000 (19:59 -0400)]
Reindent and reformat pixman-radial-gradient.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 23:37:45 +0000 (19:37 -0400)]
Reindent and reformat pixman-mmx.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 23:24:31 +0000 (19:24 -0400)]
Reindent and reformat pixman-matrix.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 23:19:13 +0000 (19:19 -0400)]
Reindent and reformat pixman-linear-gradient.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 23:15:17 +0000 (19:15 -0400)]
Reindent and reformat pixman-implementation.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 23:13:17 +0000 (19:13 -0400)]
Reindent and reformat pixman-image.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 23:10:53 +0000 (19:10 -0400)]
Reindent and reformat pixman-gradient-walker.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 23:09:24 +0000 (19:09 -0400)]
Reindent and reformat pixman-general.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 23:06:30 +0000 (19:06 -0400)]
Reindent and reformat pixman-fastpath.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 23:02:29 +0000 (19:02 -0400)]
Reindent and reformat pixman-edge.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 22:59:10 +0000 (18:59 -0400)]
Reindent and reformat pixman-cpu.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 22:55:45 +0000 (18:55 -0400)]
Reindent and reformat pixman-conical-gradient.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 22:54:31 +0000 (18:54 -0400)]
Reindent and reformat pixman.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 22:52:33 +0000 (18:52 -0400)]
Reindent and reformat pixman-bits-image.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 22:45:56 +0000 (18:45 -0400)]
Reindent and reformat pixman-arm-simd.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 22:42:31 +0000 (18:42 -0400)]
Reindent and reformat pixman-arm-neon.c
Søren Sandmann Pedersen [Sun, 12 Jul 2009 22:04:21 +0000 (18:04 -0400)]
Reindent and reformat pixman-access.c.
Benjamin Otte [Mon, 13 Jul 2009 22:02:09 +0000 (18:02 -0400)]
Fix burn and dodge operators to match acroread output
Søren Sandmann Pedersen [Mon, 13 Jul 2009 09:58:43 +0000 (05:58 -0400)]
Return immediately if the operator is CONJOINT_DST or DISJOINT_DST
These are noops just like plain DST is.
Søren Sandmann Pedersen [Mon, 13 Jul 2009 09:39:40 +0000 (05:39 -0400)]
Fix bits_image_fetch_{un}transformed() for 64 bit buffers.
The buffer pointer has to advance twice as far as in the 32 bit case.
Søren Sandmann Pedersen [Mon, 13 Jul 2009 08:43:37 +0000 (04:43 -0400)]
Make sure we get all 64 bits in bits_image_fetch_solid_64()
Previously we would only store the first 32 bits.
Søren Sandmann Pedersen [Mon, 13 Jul 2009 08:04:59 +0000 (04:04 -0400)]
Fix typo in bits_image_fetch_solid_64().
Found by blitters-test.
Søren Sandmann Pedersen [Sun, 12 Jul 2009 07:55:23 +0000 (03:55 -0400)]
Only destroy the regions when pixman_compute_composite_region() returns TRUE
Søren Sandmann Pedersen [Sat, 11 Jul 2009 07:25:25 +0000 (03:25 -0400)]
Move workaround logic to pixman-bits-image.c.
Instead of computing whether a workaround is needed on every call to
_pixman_run_fast_path(), just cache this information in the image.
Also, when workarounds are needed, clip against the source geometry to
prevent out of bound reads.
Søren Sandmann Pedersen [Fri, 10 Jul 2009 22:18:00 +0000 (18:18 -0400)]
Only apply the workaround to source images when out_of_bounds_workaround is set.
Pointed out by Siarhei Siamashka.
Siarhei Siamashka [Fri, 10 Jul 2009 17:50:15 +0000 (13:50 -0400)]
Return nonzero code from scaling-test program in case of failure.
This can potentially help in tests automation.
Siarhei Siamashka [Fri, 10 Jul 2009 08:49:53 +0000 (11:49 +0300)]
Fix scaling-test to work on big endian systems
Michel Dänzer [Fri, 10 Jul 2009 09:28:11 +0000 (11:28 +0200)]
Convert some leftover instances of Alpha() in pixman-vmx.c.
They were probably missed due to the space before the parens.
Søren Sandmann Pedersen [Thu, 9 Jul 2009 05:35:11 +0000 (01:35 -0400)]
Add workarounds for X servers doing out-of-bounds accesses.
Old X servers rely on out-of-bounds accesses when they are asked
to composite with a window as the source. They create a pixman image
pointing to some bogus position in memory, but then they set a clip
region to the position where the actual bits are.
Due to a bug in old versions of pixman, where it would not clip
against the image bounds when a clip region was set, this would
actually work.
The workaround added by this commit is to try and detect whether a
source drawable is actually a window without a client clip set. Such a
window will generally have a clip region that corresponds exactly to
the hierarchy clip in the server, whereas pixmaps will have a clip
region that is an exact match to the drawable.
When we detect such a window, we allow a fast path to run that would
normally be rejected due to the sources not completely subsuming the
composite region.
Fixed X servers should call the new function
pixman_disable_out_of_bounds_workaround() to disable the workaround.
This was reported in bug 22484.
Søren Sandmann Pedersen [Fri, 10 Jul 2009 03:17:56 +0000 (23:17 -0400)]
Add a BUILT_SOURCES with pixman-combine{32,64}.{c.h}
Bug 22681.
Adrian Bunk [Thu, 9 Jul 2009 21:11:15 +0000 (00:11 +0300)]
Fix the NEON build after "Convert CamelCase names to underscore_names."
This patch fixes the following build error caused
by commit
a98b71eff4041df58c9dcc2b1e25cefa38f364ff
(Convert CamelCase names to underscore_names.):
<-- snip -->
...
pixman-arm-neon.c: In function 'neon_composite_over_n_8_0565':
pixman-arm-neon.c:1784: error: 'x_dst' undeclared (first use in this function)
pixman-arm-neon.c:1784: error: (Each undeclared identifier is reported only once
pixman-arm-neon.c:1784: error: for each function it appears in.)
pixman-arm-neon.c:1785: error: 'p_dst' undeclared (first use in this function)
pixman-arm-neon.c: In function 'neon_composite_over_n_0565':
pixman-arm-neon.c:1937: error: 'x_dst' undeclared (first use in this function)
pixman-arm-neon.c:1938: error: 'p_dst' undeclared (first use in this function)
pixman-arm-neon.c: In function 'neon_composite_over_8888_0565':
pixman-arm-neon.c:2074: error: 'x_dst' undeclared (first use in this function)
pixman-arm-neon.c:2075: error: 'p_dst' undeclared (first use in this function)
make[3]: *** [libpixman_arm_neon_la-pixman-arm-neon.lo] Error 1
...
<-- snip -->
Søren Sandmann Pedersen [Thu, 9 Jul 2009 08:04:00 +0000 (04:04 -0400)]
Update the CRC value in scaling-test.c.
The changes in pixman behavior justifying this are:
- New clipping rules
- Bug fixes in region code. In particular, when
pixman_region_init_rects() is called on these two boxes:
{ 2, 6, 7, 6 }
{ 4, 1, 6, 7 }
it now ignores the first one, which is empty and produces
{ 4, 1, 6, 7 }
Previously, it would produce:
{ 2, 1, 7, 7 }
for some reason.
Søren Sandmann Pedersen [Thu, 9 Jul 2009 08:00:19 +0000 (04:00 -0400)]
Fix bug in pixman-region.c where empty regions would not be properly initialized.
Also add a couple more tests to region-test.c.
Søren Sandmann Pedersen [Thu, 9 Jul 2009 05:47:19 +0000 (01:47 -0400)]
Fix a couple of problems with the tests when HAVE_GTK is not defined.
- Make sure the non-gtk+ test programs are added to noinst_PROGRAMS
when HAVE_GTK is not set.
- Don't include glib.h in oob-test.c
Søren Sandmann Pedersen [Wed, 8 Jul 2009 22:59:15 +0000 (18:59 -0400)]
Merge branch 'naming'
Søren Sandmann Pedersen [Wed, 8 Jul 2009 22:41:41 +0000 (18:41 -0400)]
Eliminate boxes with x1 > x2 or y1 > y2 in pixman_region_init_rects().
Søren Sandmann Pedersen [Wed, 8 Jul 2009 22:39:43 +0000 (18:39 -0400)]
Add a box with y2 < y1 in region-test.c
Søren Sandmann Pedersen [Tue, 7 Jul 2009 00:33:05 +0000 (20:33 -0400)]
Fix up some overeager search-and-replace renamings
Søren Sandmann Pedersen [Mon, 6 Jul 2009 16:48:59 +0000 (12:48 -0400)]
Rename num_rects back to numRects.
The name numRects is public API and can't be changed.
Søren Sandmann Pedersen [Sun, 5 Jul 2009 06:12:21 +0000 (02:12 -0400)]
Rename combine_*_c to combine_*_ca
s/combine_(.+)_c([^a-z0-9A-Z])/combine_$1_ca$2/g;
Søren Sandmann Pedersen [Sun, 5 Jul 2009 05:42:28 +0000 (01:42 -0400)]
Various sse2 renamings
Søren Sandmann Pedersen [Sun, 5 Jul 2009 05:38:10 +0000 (01:38 -0400)]
s/sse2combine/sse2_combine/g
Søren Sandmann Pedersen [Sun, 5 Jul 2009 05:35:14 +0000 (01:35 -0400)]
Convert CamelCase names to underscore_names.
s/sizeRI/size_ri/g;
s/numRI/num_ri/g;
s/RepeatNone/REPEAT_NONE/g;
s/fbOver/over/g;
s/fbIn/in/g;
s/iSrc/src_image/g;
s/iMask/mask_image/g;
s/iDst/dest_image/g;
s/SaDa/Sa.Da/g;
s/FbMaskBits/MASK_BITS/g;
s/RenderSamplesX/RENDER_SAMPLES_X/g;
s/MMXData/mmx_data_t/g;
s/RegionInfo/region_info_t/g;
s/([^0x])([a-z])([A-Z])/$1$2_\l$3/g;
s/([^0x])([A-Z])([A-Z])([a-z])/$1$2_\l$3$4/g;
s/([^0x])([A-Z])([a-z]+)_([a-z])/$1\l$2$3_$4/g;
s/([a-z])_([A-Z])/$1_\l$2/g;
s/su_sE/SuSE/g;
s/X_Free86/XFree86/g;
s/X_free86/XFree86/g;
s/_ULL/ULL/g;
s/_uLL/ULL/g;
s/U_nc/UNc/g;
s/combine ##/combine_ ##/g;
s/## U/## _u/g;
s/## C/## _c/g;
s/UNc_aDD/UNc_ADD/g;
s/BLEND_MODE \((.+)\)/BLEND_MODE (\l$1)/g;
s/blend_(.+)/blend_\l$1/g;
s/AN_ds/ANDs/g;
s/O_rs/ORs/g;
s/over565/over_565/g;
s/8pix/8_pix/g;
s/Over565/over_565/g;
s/inU/in_u/g;
s/inPart/in_part/g;
s/inC/in_c/g;
s/inreverse/in_reverse/g;
s/get_exception_code/GetExceptionCode/g; # GetExceptionCode is WinCE API
s/CP_us/CPUs/g;
s/authentic_aMD/AuthenticAMD/g;
s/op_sR_cx_mAS_kx_dST/op_src_mask_dest/g;
s/no_VERBOSE/noVERBOSE/g;
s/mc_cormack/McCormack/g;
s/r1band/r1_band/g;
s/r2band/r2_band/g;
s/as GOOD things/as good things/g;
s/brokendata/broken_data/g;
s/X_render/XRender/g;
s/__open_bSD__/__OpenBSD__/g;
s/^Quick/quick/g;
s/NextRect/next_rect/g;
s/RectIn/rect_in/g;
s/pboxout/pbox_out/g;
s/F_sorted/FSorted/g;
s/usse2/u_sse2/g;
s/csse2/c_sse2/g;
s/cPixelsse2/c_pixel_sse2/g;
s/Mask565/mask_565/g;
s/565fix_rB/565_fix_rb/g;
s/565fix_g/565_fix_g/g;
s/565r/565_r/g;
s/565g/565_g/g;
s/565b/565_b/g;
s/uPixelsse2/u_pixel_sse2/g;
s/Mask00ff/mask_00ff/g;
s/Mask0080/mask_0080/g;
s/Mask0101/mask_0101/g;
s/Maskffff/mask_ffff/g;
s/Maskff000000/mask_ff000000/g;
s/load128Aligned/load_128_aligned/g;
s/load128Unaligned/load_128_unaligned/g;
s/save128Aligned/save_128_aligned/g;
s/save128Unaligned/save_128_unaligned/g;
s/fillsse2/fill_sse2/g;
s/unpack565/unpack_565/g;
s/pack565/pack_565/g;
s/bltsse2/blt_sse2/g;
s/x565Unpack/x565_unpack/g;
s/r1End/r1_end/g;
s/r2End/r2_end/g;
s/argb8Pixels/argb8_pixels/g;
Søren Sandmann Pedersen [Sun, 5 Jul 2009 05:34:07 +0000 (01:34 -0400)]
Remove reference to 8888_RevNP
Søren Sandmann Pedersen [Sun, 5 Jul 2009 04:55:45 +0000 (00:55 -0400)]
Remove reference to 8888RevNP
Søren Sandmann Pedersen [Sun, 5 Jul 2009 04:41:53 +0000 (00:41 -0400)]
NoFeatures => NO_FEATURES
Søren Sandmann Pedersen [Sun, 5 Jul 2009 04:31:07 +0000 (00:31 -0400)]
s/FbScrRight/SCREEN_SHIFT_RIGHT/g
Søren Sandmann Pedersen [Sun, 5 Jul 2009 04:26:30 +0000 (00:26 -0400)]
CPUFeatures => cpu_features
Søren Sandmann Pedersen [Sun, 5 Jul 2009 04:19:18 +0000 (00:19 -0400)]
Rename FbGet8 to GET8
Søren Sandmann Pedersen [Sun, 5 Jul 2009 04:11:57 +0000 (00:11 -0400)]
Rename RBmask/Gmask => rb_mask/g_mask in pixman-arm-neon.c
Søren Sandmann Pedersen [Sun, 5 Jul 2009 04:06:59 +0000 (00:06 -0400)]
Use ALPHA_8 in pixman-image.c instead of Alpha
Søren Sandmann Pedersen [Sun, 5 Jul 2009 04:05:42 +0000 (00:05 -0400)]
Uppercase a few more macros in pixman-combine.c.template
Søren Sandmann Pedersen [Sun, 5 Jul 2009 04:02:45 +0000 (00:02 -0400)]
Rename macros for non-separable blend modes
Lum => LUM
Sat => SAT
Min => CH_MIN
Max => CH_MAX
Søren Sandmann Pedersen [Sun, 5 Jul 2009 03:45:01 +0000 (23:45 -0400)]
Rename some macros in pixman-combine.c.template
s/Combine([AB])([a-zA-Z]+)([^a-zA-Z])/COMBINE_$1_\U$2$3/g;
s/CombineA/COMBINE_A/g;
s/CombineB/COMBINE_B/g;
s/CombineXor/COMBINE_XOR/g;
s/CombineClear/COMBINE_CLEAR/g;
Søren Sandmann Pedersen [Sun, 5 Jul 2009 03:24:27 +0000 (23:24 -0400)]
Rename U{no}mask => U_{no_}mask in pixman-vmx.c
Søren Sandmann Pedersen [Sun, 5 Jul 2009 03:13:55 +0000 (23:13 -0400)]
Change name fbComposeGetStart to PIXMAN_IMAGE_GET_LINE.
Søren Sandmann Pedersen [Sun, 5 Jul 2009 03:12:18 +0000 (23:12 -0400)]
Rename fbCombine* to combine*
s/fbCombine/combine/g;
Søren Sandmann Pedersen [Mon, 29 Jun 2009 16:51:28 +0000 (12:51 -0400)]
Fix overeager search and replace
Søren Sandmann Pedersen [Mon, 29 Jun 2009 16:07:56 +0000 (12:07 -0400)]
Uppercase some more macro names
Søren Sandmann Pedersen [Mon, 29 Jun 2009 15:40:21 +0000 (11:40 -0400)]
Consolidate channel macros in pixman-combine.h
There are now RED_8/RED_16 etc. macros instead of the old Red/Green/Blue.
Søren Sandmann Pedersen [Mon, 29 Jun 2009 15:17:28 +0000 (11:17 -0400)]
Change some macro names to be all uppercase
Søren Sandmann Pedersen [Mon, 29 Jun 2009 13:29:32 +0000 (09:29 -0400)]
Change names of the FbByte* macros to be more descriptive.
But also more cryptic unfortunately. For example FbByteMul() becomes
UN8x4_MUL_UN8() to indicate that it multiplies 4 UN8 numbers with one
UN8 number.
Søren Sandmann Pedersen [Mon, 29 Jun 2009 12:42:19 +0000 (08:42 -0400)]
Clarify a couple of comments
Søren Sandmann Pedersen [Mon, 29 Jun 2009 12:30:36 +0000 (08:30 -0400)]
Change name of macros that operate on normalized integers.
For example IntMul becomes MUL_UN8 to indicate that it multiplies two
unsigned normalized 8 bit integers.
Søren Sandmann Pedersen [Mon, 29 Jun 2009 12:10:20 +0000 (08:10 -0400)]
Fix names in the trap rasterizer.
s/Shift4/SHIFT_4/g;
s/Get4/GET_4/g;
s/Put4/PUT_4/g;
s/DefineAlpha/DEFINE_ALPHA/g;
s/AddAlpha/ADD_ALPHA/g;
s/StepAlpha/STEP_ALPHA/g;
s/add_saturate_8/ADD_SATURATE_8/g;
s/RenderEdgeStepSmall/RENDER_EDGE_STEP_SMALL/g;
s/RenderEdgeStepBig/RENDER_EDGE_STEP_BIG/g;
s/fbRasterizeEdges/b00_re/g;
s/rasterizeEdges/RASTERIZE_EDGES/g;
s/b00_re/rasterize_edges_/g;
Søren Sandmann Pedersen [Mon, 29 Jun 2009 12:02:45 +0000 (08:02 -0400)]
Rename QuadwordCopy_neon to neon_quadword_copy
s/QuadwordCopy_neon/neon_quadword_copy/g;
Søren Sandmann Pedersen [Mon, 29 Jun 2009 12:00:56 +0000 (08:00 -0400)]
Fix up the names in pixman_compute_composite_region()
s/miClipPictureSrc/clip_source_image/g;
s/miClipPictureReg/clip_general_image/g;
Søren Sandmann Pedersen [Mon, 29 Jun 2009 11:59:10 +0000 (07:59 -0400)]
Fix some more pFoo names
s/([^a-z])pReg/$1region/g;
s/([^a-z])pY/$1y_line/g;
s/([^a-z])pU/$1u_line/g;
s/([^a-z])pV/$1v_line/g;
s/([^a-z])p([A-Z])/$1\l$2/g;
Søren Sandmann Pedersen [Mon, 29 Jun 2009 11:54:10 +0000 (07:54 -0400)]
Fix the names of some common parameters
s/xDst/dest_x/g;
s/yDst/dest_y/g;
s/xMask/mask_x/g;
s/yMask/mask_y/g;
s/xSrc/src_x/g;
s/ySrc/src_y/g;
Søren Sandmann Pedersen [Mon, 29 Jun 2009 11:46:11 +0000 (07:46 -0400)]
Various simple renamings
s/CvtR8G8B8toY15/CONVERT_RGB24_TO_Y15/g;
s/cvt8888to0565/CONVERT_8888_TO_0565/g;
s/cvt0565to0888/CONVERT_0565_TO_0888/g;
s/miIndexToEnt15/RGB16_TO_ENTRY/g;
s/miIndexToEnt24/RGB24_TO_ENTRY/g;
s/miIndexToEntY24/RGB24_TO_ENTRY_Y/g;
s/miCvtR8G8B8to15/CONVERT_RGB24_TO_RGB15/g;
s/is_same/IS_SAME/g;
s/is_zero/IS_ZERO/g;
s/is_int([ (])/IS_INT$1/g;
s/is_one/IS_ONE/g;
s/is_unit/IS_UNIT/g;
s/Fetch4/FETCH_4/g;
s/Store4/STORE_4/g;
s/Fetch8/FETCH_8/g;
s/Store8/STORE_8/g;
s/Fetch24/fetch_24/g;
s/Store24/store_24/g;
s/_64_generic/64_generic/g;
s/64_generic/_generic_64/g;
s/32_generic_lossy/_generic_lossy_32/g;
s/PdfSeparableBlendMode/PDF_SEPARABLE_BLEND_MODE/g;
s/PdfNonSeparableBlendMode/PDF_NON_SEPARABLE_BLEND_MODE/g;
s/([^_])HSL/$1Hsl/g;
s/Blend/blend_/g;
s/FbScrLeft/SCREEN_SHIFT_LEFT/g;
s/FbScrRigth/SCREEN_SHIFT_RIGHT/g;
s/FbLeftMask/LEFT_MASK/g;
s/FbRightMask/RIGHT_MASK/g;
s/Splita/SPLIT_A/g;
s/Split/SPLIT/g;
s/MMX_Extensions/MMX_EXTENSIONS/g;
Søren Sandmann Pedersen [Mon, 29 Jun 2009 11:35:40 +0000 (07:35 -0400)]
Get rid of pFoo names.
s/([^o])pSrc/$1src_image/g;
s/([^o])pDst/$1dst_image/g;
s/([^o])pMask/$1mask_image/g;
s/pRegion/region/g;
s/pNextRect/next_rect/g;
Søren Sandmann Pedersen [Mon, 29 Jun 2009 11:30:47 +0000 (07:30 -0400)]
Change the name of some routines that were simply misnamed.
s/Src_pixbuf/_over_pixbuf/g;
s/Src_x888_n/_over_x888_n/g;
s/CompositeSrc_8888_8888/composite_over_8888_8888/g;
s/CompositeSrc_8888_0565/composite_over_8888_0565/g;
s/CompositeSrc_8888_8_8888/composite_over_8888_n_8888/g;
Søren Sandmann Pedersen [Mon, 29 Jun 2009 01:06:01 +0000 (21:06 -0400)]
Fix up names of compositing functions
s/SrcAdd/Add/g;
s/SolidMaskSrc/Src/g;
s/SolidMaskIn/In/g;
s/SolidMask/Over/g;
s/Solid_n/Over_n/g;
s/SrcIn/In/g;
s/(fb)(Composite.*)sse2/sse2_$2/g;
s/(fb)(Composite.*)mmx/mmx_$2/g;
s/(fb)(Composite.*)neon/neon_$2/g;
s/(fb)(Composite.*)arm/arm_$2/g;
s/(fb)(Composite.*)vmx/vmx_$2/g;
s/(fb)(Composite.*)/fast_$2/g;
s/b8g8r8x8/f00bar/g;
s/8888C/8888_ca/g;
s/0565C/0565_ca/g;
s/8888RevNPx/pixbuf_x_/g;
s/8x0/8_x_0/g;
s/00x8/00_x_8/g;
s/8x8/8_x_8/g;
s/8x8/8_x_8/g;
s/nx8/n_x_8/g;
s/24x16/24_x_16/g;
s/16x16/16_x_16/g;
s/8xx8/8_x_x8/g;
s/8xn/8_x_n/g;
s/nx0/n_x_0/g;
s/_x_/_/g;
s/f00bar/b8g8r8x8/;
# Fix up NEON type names
s/uint8_8/uint8x8/g;