Changeset 2800 for libpipi/trunk


Ignore:
Timestamp:
Aug 29, 2008, 2:03:41 AM (12 years ago)
Author:
Sam Hocevar
Message:
  • blur.c: fix the separate filter optimisation in the blur code by not interpolating the Gaussian kernel integral when dx = dy = angle = 0.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/filter/blur.c

    r2743 r2800  
    9898                ey = Ky * v * v;
    9999                d += samples[k * 3 + 2] * exp(ex + ey);
     100
     101                /* Do not interpolate if this is a standard gaussian. */
     102                if(!dx && !dy && !angle)
     103                    break;
    100104            }
    101105
Note: See TracChangeset for help on using the changeset viewer.