~vcs-imports/libpixman/master

  • Committer: Manuel Stoeckl
  • Date: 2021-08-10 01:43:58 UTC
  • Revision ID: git-v1:5f5e752f15acff7f39c861f2defed8ca10fa041c
Fix masked pixel fetching with wide format

In __bits_image_fetch_affine_no_alpha and __bits_image_fetch_general,
when `wide` is true, the mask is actually an array of argb_t instead
of the array of uint32_t it was cast to, and the access to `mask[i]`
does not correctly detect when the pixel is nontrivial. The code now
uses a check appropriate for argb_t when `wide` is true.

One caveat: this new check only skips entries when the mask pixel data
is binary all zero; this misses cases like `-0.f` which would be caught
by the FLOAT_IS_ZERO macro. As the mask check only appears to be a
performance optimization to avoid loading inconsequential pixels, it
erring on the side of loading more pixels is safe.

Signed-off-by: Manuel Stoeckl <code@mstoeckl.com>
Filename Latest Rev Last Changed Committer Comment Size
..
contrib 2060 5 years ago Adam Jackson Merge branch 'ci' into 'master' ci: Add .gitlab-c Diff
demos 1278 13 years ago Søren Sandmann Pedersen Move all the GTK+ based test programs to a new sub Diff
pixman 1 17 years ago Soren Sandmann Pedersen Add the files. Diff
test 14 17 years ago Soren Sandmann Pedersen Add a simple test program; fix linking problems Diff
.editorconfig 2069 5 years ago Matt Turner editorconfig: use tabs for Makefiles Reviewed-by: 225 bytes Diff Download File
.gitignore 2094 4 years ago Bryce Harrington demos: Add a dithering demo This adds a dither.c 658 bytes Diff Download File
.gitlab-ci.yml 2064.1.3 5 years ago Adam Jackson gitlab-ci: Add meson build to pipeline test 450 bytes Diff Download File
arm-simd-test.S 2079 5 years ago Dylan Baker meson: store ARM SIMD and NEON tests as text files 184 bytes Diff Download File
AUTHORS 1 17 years ago Soren Sandmann Pedersen Add the files. Empty Diff Download File
File autogen.sh 1481 12 years ago Søren Sandmann Pedersen autogen.sh: Support GNOME Build API http://people 209 bytes Diff Download File
ChangeLog 1 17 years ago Soren Sandmann Pedersen Add the files. Empty Diff Download File
CODING_STYLE 1062 13 years ago Søren Sandmann Pedersen CODING_STYLE: Delete the stuff about trailing spac 4.1 KB Diff Download File
configure.ac 2145 4 years ago Matt Turner Post-release version bump to 0.40.1 Signed-off-by 32.9 KB Diff Download File
COPYING 1214 13 years ago Siarhei Siamashka COPYING: added Nokia to the list of copyright hold 2 KB Diff Download File
INSTALL 2 17 years ago Soren Sandmann Pedersen Change autogen.sh to call autoreconf. Remove refer 9.1 KB Diff Download File
Makefile.am 2143 4 years ago Matt Turner Move from MD5/SHA1 to SHA256/SHA512 digests Signe 4.9 KB Diff Download File
Makefile.win32 1667 11 years ago Andrea Canciani build: Improve win32 build system Handle cross-di 384 bytes Diff Download File
Makefile.win32.common 2081 5 years ago Matt Turner Windows: Support building with SHELL=cmd.exe When 1.5 KB Diff Download File
meson.build 2151 3 years ago Dylan Baker meson: remove pixman dependency AFAICT from the g 16.1 KB Diff Download File
meson_options.txt 2152 3 years ago Érico Rolim meson: update option descriptions. - gtk is only 2.8 KB Diff Download File
neon-test.S 2079 5 years ago Dylan Baker meson: store ARM SIMD and NEON tests as text files 216 bytes Diff Download File
NEWS 1 17 years ago Soren Sandmann Pedersen Add the files. Empty Diff Download File
pixman-1-uninstalled.pc.in 378 15 years ago Chris Wilson Fix pixman-1-uninstalled.pc to point to the libtoo 193 bytes Diff Download File
pixman-1.pc.in 1668 11 years ago Matt Turner build: Remove useless DEP_CFLAGS/DEP_LIBS variable 230 bytes Diff Download File
README 2148 3 years ago Tim-Philipp Müller Update README a little - bugzilla -> gitlab - con 4.5 KB Diff Download File
RELEASING 2073 5 years ago Maarten Lankhorst Bump version to 0.38.0 And update RELEASING for t 1.6 KB Diff Download File