diff options
author | David Schleef <ds@schleef.org> | 2010-12-30 19:03:54 -0800 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-12-30 19:25:46 -0800 |
commit | 2f5c92f1c8540fb4d573436609b34a6b393211ba (patch) | |
tree | d5a71101cedb25ce9a10958ecd633734593b140e | |
parent | 512c66d8ba25c782e0c68782361722cb3d4974bd (diff) | |
download | gstreamer-plugins-bad-2f5c92f1c8540fb4d573436609b34a6b393211ba.tar.gz |
change M_PI to G_PI
-rw-r--r-- | gst/gaudieffects/gstgaussblur.c | 4 | ||||
-rw-r--r-- | gst/geometrictransform/gstrotate.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gst/gaudieffects/gstgaussblur.c b/gst/gaudieffects/gstgaussblur.c index 6691c4c36..6b1223e1d 100644 --- a/gst/gaudieffects/gstgaussblur.c +++ b/gst/gaudieffects/gstgaussblur.c @@ -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; } diff --git a/gst/geometrictransform/gstrotate.c b/gst/geometrictransform/gstrotate.c index a7433cce0..6c5ba62cb 100644 --- a/gst/geometrictransform/gstrotate.c +++ b/gst/geometrictransform/gstrotate.c @@ -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; |