change M_PI to G_PI

This commit is contained in:
David Schleef 2010-12-30 19:03:54 -08:00
parent 512c66d8ba
commit 2f5c92f1c8
2 changed files with 3 additions and 3 deletions

View file

@ -307,7 +307,7 @@ make_gaussian_kernel (GaussBlur * gb, float sigma)
int i, center, left, right;
float sum, sum2;
const float fe = -0.5 / (sigma * sigma);
const float dx = 1.0 / (sigma * sqrt (2 * M_PI));
const float dx = 1.0 / (sigma * sqrt (2 * G_PI));
center = ceil (2.5 * fabs (sigma));
gb->windowsize = (int) (1 + 2 * center);
@ -330,7 +330,7 @@ make_gaussian_kernel (GaussBlur * gb, float sigma)
left = center - 1;
right = center + 1;
for (i = 1; i <= center; i++, left--, right++) {
float fx = dx * pow (M_E, fe * i * i);
float fx = dx * pow (G_E, fe * i * i);
gb->kernel[right] = gb->kernel[left] = fx;
sum += 2 * fx;
}

View file

@ -154,7 +154,7 @@ rotate_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
h = gt->height;
/* our parameters */
ar = rotate->angle * M_PI / 180.0; /* angle of rotation, degrees to radians */
ar = rotate->angle * G_PI / 180.0; /* angle of rotation, degrees to radians */
/* get in and out centers */
cox = 0.5 * w;