summaryrefslogtreecommitdiff
path: root/gst/geometrictransform/gsttwirl.h
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-06-02 00:48:15 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-06-04 15:31:21 -0300
commit53d40802d2d7463f39dc53432c4920c78a2fd2d7 (patch)
treeee31072e467453f5e6110f45ffd1347315e08602 /gst/geometrictransform/gsttwirl.h
parent2f9a630a6293e6e6ae5244c5c148f712520981ce (diff)
downloadgstreamer-plugins-bad-53d40802d2d7463f39dc53432c4920c78a2fd2d7.tar.gz
gsttwirl: Adds new element twirl
Adds a new element to geometrictransform plugin: twirl
Diffstat (limited to 'gst/geometrictransform/gsttwirl.h')
-rw-r--r--gst/geometrictransform/gsttwirl.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/gst/geometrictransform/gsttwirl.h b/gst/geometrictransform/gsttwirl.h
new file mode 100644
index 000000000..5cfb8f1f7
--- /dev/null
+++ b/gst/geometrictransform/gsttwirl.h
@@ -0,0 +1,87 @@
+/*
+ * GStreamer
+ * Copyright (C) 2010 Thiago Santos <thiago.sousa.santos@collabora.co.uk>
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+ * DEALINGS IN THE SOFTWARE.
+ *
+ * Alternatively, the contents of this file may be used under the
+ * GNU Lesser General Public License Version 2.1 (the "LGPL"), in
+ * which case the following provisions apply instead of the ones
+ * mentioned above:
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __GST_TWIRL_H__
+#define __GST_TWIRL_H__
+
+#include <gst/gst.h>
+#include "gstcirclegeometrictransform.h"
+
+G_BEGIN_DECLS
+
+/* #defines don't like whitespacey bits */
+#define GST_TYPE_TWIRL \
+ (gst_twirl_get_type())
+#define GST_TWIRL(obj) \
+ (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TWIRL,GstTwirl))
+#define GST_TWIRL_CAST(obj) \
+ ((GstTwirl *)(obj))
+#define GST_TWIRL_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TWIRL,GstTwirlClass))
+#define GST_IS_TWIRL(obj) \
+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TWIRL))
+#define GST_IS_TWIRL_CLASS(klass) \
+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TWIRL))
+
+typedef struct _GstTwirl GstTwirl;
+typedef struct _GstTwirlClass GstTwirlClass;
+
+struct _GstTwirl
+{
+ GstCircleGeometricTransform element;
+
+ gdouble angle;
+};
+
+struct _GstTwirlClass
+{
+ GstCircleGeometricTransformClass parent_class;
+};
+
+GType gst_twirl_get_type (void);
+
+gboolean gst_twirl_plugin_init (GstPlugin * plugin);
+
+G_END_DECLS
+
+#endif /* __GST_TWIRL_H__ */