Pārlūkot izejas kodu

* blur.c: fix the separate filter optimisation in the blur code by not

interpolating the Gaussian kernel integral when dx = dy = angle = 0.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@2800 92316355-f0b4-4df1-b90c-862c8a59935f
remotes/tiles
sam pirms 16 gadiem
vecāks
revīzija
5a9d928338
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  1. +4
    -0
      pipi/filter/blur.c

+ 4
- 0
pipi/filter/blur.c Parādīt failu

@@ -97,6 +97,10 @@ pipi_image_t *pipi_gaussian_blur_ext(pipi_image_t *src, float rx, float ry,
ex = Kx * u * u;
ey = Ky * v * v;
d += samples[k * 3 + 2] * exp(ex + ey);

/* Do not interpolate if this is a standard gaussian. */
if(!dx && !dy && !angle)
break;
}

kernel[(j + kry) * m + i + krx] = d;


Notiek ielāde…
Atcelt
Saglabāt