summaryrefslogtreecommitdiff
path: root/gst/geometrictransform/gstpinch.h
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-05-30 12:50:56 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-06-04 15:31:20 -0300
commitdcda4b606c83a3af14668f073e9dcf2766eee558 (patch)
tree76da070f9926b34e96fae89fd43f6e2f27c9e222 /gst/geometrictransform/gstpinch.h
parent8c5360a55968c829b4e267e933fa3ba15ab5f290 (diff)
downloadgstreamer-plugins-bad-dcda4b606c83a3af14668f073e9dcf2766eee558.tar.gz
pinch: Some optimization using the prepare func
Small optimization by precalculating the center of the effect, also use newly added _CAST macro.
Diffstat (limited to 'gst/geometrictransform/gstpinch.h')
-rw-r--r--gst/geometrictransform/gstpinch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/geometrictransform/gstpinch.h b/gst/geometrictransform/gstpinch.h
index 207c90701..e9a0ddeb1 100644
--- a/gst/geometrictransform/gstpinch.h
+++ b/gst/geometrictransform/gstpinch.h
@@ -54,6 +54,8 @@ G_BEGIN_DECLS
(gst_pinch_get_type())
#define GST_PINCH(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_PINCH,GstPinch))
+#define GST_PINCH_CAST(obj) \
+ ((GstPinch *)(obj))
#define GST_PINCH_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_PINCH,GstPinchClass))
#define GST_IS_PINCH(obj) \
@@ -72,6 +74,9 @@ struct _GstPinch
gdouble y_center;
gdouble radius;
gdouble intensity;
+
+ gdouble precalc_x_center;
+ gdouble precalc_y_center;
};
struct _GstPinchClass