summaryrefslogtreecommitdiff
path: root/gst/geometrictransform/gstgeometrictransform.h
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-06-07 22:21:10 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-06-07 22:55:24 -0300
commit1c33b79c0ce6ff1c825cc2492e6519e16cec1f7b (patch)
treee3286f1255c03142866cd721caf1508b5815d06d /gst/geometrictransform/gstgeometrictransform.h
parent5417900a0eb9c737a2e936115ee581cad0fe05f4 (diff)
downloadgstreamer-plugins-bad-1c33b79c0ce6ff1c825cc2492e6519e16cec1f7b.tar.gz
geometrictransform: Make properties controllable
Makes the element's properties controllable and threadsafe. Fixes #620825
Diffstat (limited to 'gst/geometrictransform/gstgeometrictransform.h')
-rw-r--r--gst/geometrictransform/gstgeometrictransform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/geometrictransform/gstgeometrictransform.h b/gst/geometrictransform/gstgeometrictransform.h
index c92c408f9..09c026b3e 100644
--- a/gst/geometrictransform/gstgeometrictransform.h
+++ b/gst/geometrictransform/gstgeometrictransform.h
@@ -29,6 +29,7 @@ G_BEGIN_DECLS
(gst_geometric_transform_get_type())
#define GST_GEOMETRIC_TRANSFORM(obj) \
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GEOMETRIC_TRANSFORM,GstGeometricTransform))
+#define GST_GEOMETRIC_TRANSFORM_CAST(obj) ((GstGeometricTransform *)(obj))
#define GST_GEOMETRIC_TRANSFORM_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_GEOMETRIC_TRANSFORM,GstGeometricTransformClass))
#define GST_IS_GEOMETRIC_TRANSFORM(obj) \
@@ -70,6 +71,8 @@ typedef gboolean (*GstGeometricTransformMapFunc) (GstGeometricTransform * gt,
*
* Called right before starting to calculate the mapping so that
* instances might precalculate some values.
+ *
+ * Called with the object lock
*/
typedef gboolean (*GstGeometricTransformPrepareFunc) (
GstGeometricTransform * gt);
@@ -92,6 +95,7 @@ struct _GstGeometricTransform {
* pixel mapping table. Like 'diffuse' that uses random values for each pic.
*/
gboolean precalc_map;
+ gboolean needs_remap;
/* properties */
gint off_edge_pixels;
@@ -108,6 +112,8 @@ struct _GstGeometricTransformClass {
GType gst_geometric_transform_get_type (void);
+void gst_geometric_transform_set_need_remap (GstGeometricTransform * gt);
+
G_END_DECLS
#endif /* __GST_GEOMETRIC_TRANSFORM_H__ */