1 /* GStreamer
2 * Copyright (C) 2007 David Schleef <ds@schleef.org>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 */
19 /**
20 * SECTION:element-appsrc
21 * @title: appsrc
22 *
23 * The appsrc element can be used by applications to insert data into a
24 * GStreamer pipeline. Unlike most GStreamer elements, Appsrc provides
25 * external API functions.
26 *
27 * For the documentation of the API, please see the
28 * <link linkend="gst-plugins-base-libs-appsrc">libgstapp</link> section in the
29 * GStreamer Plugins Base Libraries documentation.
30 */
31 /**
32 * SECTION:element-appsink
33 * @title: appsink
34 *
35 * Appsink is a sink plugin that supports many different methods for making
36 * the application get a handle on the GStreamer data in a pipeline. Unlike
37 * most GStreamer elements, Appsink provides external API functions.
38 *
39 * For the documentation of the API, please see the
40 * <link linkend="gst-plugins-base-libs-appsink">libgstapp</link> section in
41 * the GStreamer Plugins Base Libraries documentation.
42 */
43
44 #ifdef HAVE_CONFIG_H
45 #include "config.h"
46 #endif
47
48 #include <gst/gst.h>
49
50 #include <gst/app/gstappsrc.h>
51 #include <gst/app/gstappsink.h>
52
53 static gboolean
plugin_init(GstPlugin * plugin)54 plugin_init (GstPlugin * plugin)
55 {
56 gst_element_register (plugin, "appsrc", GST_RANK_NONE, GST_TYPE_APP_SRC);
57 gst_element_register (plugin, "appsink", GST_RANK_NONE, GST_TYPE_APP_SINK);
58
59 return TRUE;
60 }
61
62 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
63 GST_VERSION_MINOR,
64 app,
65 "Elements used to communicate with applications",
66 plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
67