~kiko/pixman/trunk

Viewing all changes in revision 2072.

  • Committer: Maarten Lankhorst
  • Date: 2019-02-11 11:48:57 UTC
  • Revision ID: git-v1:6240ad15c67ff33f4a05831711cae23be7d51733
pixman: Use maximum precision for pixman-bits-image, v2.

pixman-bits-image's wide helpers first obtains the 8-bits image,
then converts it to float. This destroys all the precision that
the wide path was offering.

Fix this by making get_pixel() take a pointer instead of returning
a value. Floating point will fill in a argb_t, while the 8-bits path
will fill a 32-bits ARGB value. This also requires writing a floating
point bilinear interpolator. With this change pixman can use the full
floating point precision internally in all paths.

Changes since v1:
- Make accum and reduce an argument to convolution functions,
  to remove duplication.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Basile Clement <basile-pixman@clement.pm>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: