summaryrefslogtreecommitdiff
path: root/clutter-gst/clutter-gst-content.h
diff options
context:
space:
mode:
authorBastian Winkler <buz@netbuz.org>2013-05-03 15:40:07 +0200
committerLionel Landwerlin <llandwerlin@gmail.com>2013-07-08 12:09:35 +0100
commita661cbdca1c5a807ab48017cd4c93c149f878b0b (patch)
treee250c4b8e9716ebcafe387e2f953fa6138e33825 /clutter-gst/clutter-gst-content.h
parent90577622f044adb722154ba42a19a81a9a7d56d1 (diff)
downloadclutter-gst-a661cbdca1c5a807ab48017cd4c93c149f878b0b.tar.gz
Add ClutterGstContent
This adds a ClutterContent implementation that uses a CoglGstVideoSink to display GStreamer video frames in any ClutterActor. It does not implement the ClutterGstPlayer interface, so you have to manage all GStreamer related tasks on your own. https://bugzilla.gnome.org/show_bug.cgi?id=699825
Diffstat (limited to 'clutter-gst/clutter-gst-content.h')
-rw-r--r--clutter-gst/clutter-gst-content.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/clutter-gst/clutter-gst-content.h b/clutter-gst/clutter-gst-content.h
new file mode 100644
index 0000000..15d1337
--- /dev/null
+++ b/clutter-gst/clutter-gst-content.h
@@ -0,0 +1,91 @@
+/*
+ * Clutter-GStreamer.
+ *
+ * GStreamer integration library for Clutter.
+ *
+ * Copyright (C) 2013 Bastian Winkler <buz@netbuz.org>
+ *
+ * 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 __CLUTTER_GST_CONTENT_H__
+#define __CLUTTER_GST_CONTENT_H__
+
+#include <glib-object.h>
+
+#include <cogl-gst/cogl-gst.h>
+#include <clutter/clutter.h>
+
+G_BEGIN_DECLS
+
+
+#define CLUTTER_GST_TYPE_CONTENT (clutter_gst_content_get_type())
+#define CLUTTER_GST_CONTENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_GST_TYPE_CONTENT, ClutterGstContent))
+#define CLUTTER_GST_IS_CONTENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_GST_TYPE_CONTENT))
+#define CLUTTER_GST_CONTENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_GST_TYPE_CONTENT, ClutterGstContentClass))
+#define CLUTTER_GST_IS_CONTENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_GST_TYPE_CONTENT))
+#define CLUTTER_GST_CONTENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_GST_TYPE_CONTENT, ClutterGstContentClass))
+
+
+typedef struct _ClutterGstContent ClutterGstContent;
+typedef struct _ClutterGstContentPrivate ClutterGstContentPrivate;
+typedef struct _ClutterGstContentClass ClutterGstContentClass;
+
+
+/**
+ * ClutterGstContent:
+ *
+ * The #ClutterGstContent structure contains only private data
+ * and should be accessed using the provided API
+ *
+ * Since: 0.0
+ */
+struct _ClutterGstContent
+{
+ /*< private >*/
+ GObject parent_instance;
+
+ ClutterGstContentPrivate *priv;
+};
+
+/**
+ * ClutterGstContentClass:
+ *
+ * The #ClutterGstContentClass structure contains only private data
+ * and should be accessed using the provided API
+ *
+ * Since: 0.0
+ */
+struct _ClutterGstContentClass
+{
+ /*< private >*/
+ GObjectClass parent_class;
+};
+
+GType clutter_gst_content_get_type (void) G_GNUC_CONST;
+
+ClutterContent * clutter_gst_content_new (void);
+
+ClutterContent * clutter_gst_content_new_with_sink (CoglGstVideoSink *sink);
+
+void clutter_gst_content_set_sink (ClutterGstContent *self,
+ CoglGstVideoSink *sink);
+
+CoglGstVideoSink * clutter_gst_content_get_sink (ClutterGstContent *self);
+
+G_END_DECLS
+
+#endif /* __CLUTTER_GST_CONTENT_H__ */