summaryrefslogtreecommitdiff
path: root/gst/proxy/gstproxysink.h
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-09-26 20:12:24 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-12-19 01:09:50 +0530
commit8a056af05e23ad5b81cd1dc2699ae20abcf9b91a (patch)
tree0b2f08e3112e39acaf9b68bad171438b86b90e67 /gst/proxy/gstproxysink.h
parent387e229773d25d57301417229407931d3cdb884f (diff)
downloadgstreamer-plugins-bad-8a056af05e23ad5b81cd1dc2699ae20abcf9b91a.tar.gz
New element 'proxy' to send data to in-process pipelines
This plugin is useful when you want to pipe arbitrary data to a different pipeline within the same process. Buffers, events, and caps are transmitted as-is without copying or manipulation.
Diffstat (limited to 'gst/proxy/gstproxysink.h')
-rw-r--r--gst/proxy/gstproxysink.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/gst/proxy/gstproxysink.h b/gst/proxy/gstproxysink.h
new file mode 100644
index 000000000..00fe1ff0c
--- /dev/null
+++ b/gst/proxy/gstproxysink.h
@@ -0,0 +1,62 @@
+/*
+ * Copyright (C) 2015 Centricular Ltd.
+ * Author: Sebastian Dröge <sebastian@centricular.com>
+ * Author: Nirbheek Chauhan <nirbheek@centricular.com>
+ *
+ * Redistribution and use in source and binary forms, with or without modification,
+ * are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright notice, this
+ * list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright notice, this
+ * list of conditions and the following disclaimer in the documentation and/or other
+ * materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
+ * OF SUCH DAMAGE.
+ */
+
+#ifndef __GST_PROXY_SINK_H__
+#define __GST_PROXY_SINK_H__
+
+#include <gst/gst.h>
+
+G_BEGIN_DECLS
+
+#define GST_TYPE_PROXY_SINK (gst_proxy_sink_get_type())
+#define GST_PROXY_SINK(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_PROXY_SINK, GstProxySink))
+#define GST_IS_PROXY_SINK(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_PROXY_SINK))
+#define GST_PROXY_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) , GST_TYPE_PROXY_SINK, GstProxySinkClass))
+#define GST_IS_PROXY_SINK_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) , GST_TYPE_PROXY_SINK))
+#define GST_PROXY_SINK_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) , GST_TYPE_PROXY_SINK, GstProxySinkClass))
+
+typedef struct _GstProxySink GstProxySink;
+typedef struct _GstProxySinkClass GstProxySinkClass;
+typedef struct _GstProxySinkPrivate GstProxySinkPrivate;
+
+struct _GstProxySink {
+ GstElement parent;
+
+ /* < private > */
+ GstProxySinkPrivate *priv;
+ gpointer _gst_reserved[GST_PADDING];
+};
+
+struct _GstProxySinkClass {
+ GstElementClass parent_class;
+};
+
+GType gst_proxy_sink_get_type (void);
+
+G_END_DECLS
+
+#endif /* __GST_PROXY_SINK_H__ */