[Pixman] [PATCH] Add a version of bilinear_interpolation for precision <=4

Søren Sandmann sandmann at cs.au.dk
Fri Jan 25 08:08:00 PST 2013


Jeff Muizelaar <jmuizelaar at mozilla.com> writes:

> +#if BILINEAR_INTERPOLATION_BITS <= 4
> +/* Inspired by Filter_32_opaque from Skia */
> +static force_inline uint32_t
> +bilinear_interpolation(uint32_t tl, uint32_t tr,
> +		       uint32_t bl, uint32_t br,
> +		       int distx, int disty)
> +{
> +    int distxy, distxiy, distixy, distixiy;
> +    uint32_t lo, hi;

Needs a space before the ( in the function definition, but looks
otherwise good to me.


Søre3n


More information about the Pixman mailing list