summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-12-31 03:03:54 (GMT)
committerDavid Schleef <ds@schleef.org>2010-12-31 03:25:46 (GMT)
commit2f5c92f1c8540fb4d573436609b34a6b393211ba (patch)
treed5a71101cedb25ce9a10958ecd633734593b140e
parent512c66d8ba25c782e0c68782361722cb3d4974bd (diff)
change M_PI to G_PI
-rw-r--r--gst/gaudieffects/gstgaussblur.c4
-rw-r--r--gst/geometrictransform/gstrotate.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/gst/gaudieffects/gstgaussblur.c b/gst/gaudieffects/gstgaussblur.c
index 6691c4c..6b1223e 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 a7433cc..6c5ba62 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;