diff options
Diffstat (limited to 'gst/geometrictransform/gstsquare.c')
-rw-r--r-- | gst/geometrictransform/gstsquare.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/geometrictransform/gstsquare.c b/gst/geometrictransform/gstsquare.c index 8e4c99cbc..ba0d2bf4f 100644 --- a/gst/geometrictransform/gstsquare.c +++ b/gst/geometrictransform/gstsquare.c @@ -157,12 +157,12 @@ square_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x, /* zoom at the center, smoothstep around half quadrant and get back to normal */ norm_x *= (1.0 / square->zoom) * (1.0 + (square->zoom - - 1.0) * smoothstep (square->width - 0.125, square->width + 0.125, - ABS (norm_x))); + 1.0) * gst_gm_smoothstep (square->width - 0.125, + square->width + 0.125, ABS (norm_x))); norm_y *= (1.0 / square->zoom) * (1.0 + (square->zoom - - 1.0) * smoothstep (square->height - 0.125, square->height + 0.125, - ABS (norm_y))); + 1.0) * gst_gm_smoothstep (square->height - 0.125, + square->height + 0.125, ABS (norm_y))); /* unnormalize */ *in_x = 0.5 * (norm_x + 1.0) * width; |