|
Packit |
971217 |
/* GStreamer
|
|
Packit |
971217 |
* Copyright (C) 2007 David Schleef <ds@schleef.org>
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
971217 |
* modify it under the terms of the GNU Library General Public
|
|
Packit |
971217 |
* License as published by the Free Software Foundation; either
|
|
Packit |
971217 |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
971217 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
971217 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
971217 |
* Library General Public License for more details.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* You should have received a copy of the GNU Library General Public
|
|
Packit |
971217 |
* License along with this library; if not, write to the
|
|
Packit |
971217 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Packit |
971217 |
* Boston, MA 02110-1301, USA.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* SECTION:element-appsrc
|
|
Packit |
971217 |
* @title: appsrc
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* The appsrc element can be used by applications to insert data into a
|
|
Packit |
971217 |
* GStreamer pipeline. Unlike most GStreamer elements, Appsrc provides
|
|
Packit |
971217 |
* external API functions.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* For the documentation of the API, please see the
|
|
Packit |
971217 |
* <link linkend="gst-plugins-base-libs-appsrc">libgstapp</link> section in the
|
|
Packit |
971217 |
* GStreamer Plugins Base Libraries documentation.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
/**
|
|
Packit |
971217 |
* SECTION:element-appsink
|
|
Packit |
971217 |
* @title: appsink
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* Appsink is a sink plugin that supports many different methods for making
|
|
Packit |
971217 |
* the application get a handle on the GStreamer data in a pipeline. Unlike
|
|
Packit |
971217 |
* most GStreamer elements, Appsink provides external API functions.
|
|
Packit |
971217 |
*
|
|
Packit |
971217 |
* For the documentation of the API, please see the
|
|
Packit |
971217 |
* <link linkend="gst-plugins-base-libs-appsink">libgstapp</link> section in
|
|
Packit |
971217 |
* the GStreamer Plugins Base Libraries documentation.
|
|
Packit |
971217 |
*/
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#ifdef HAVE_CONFIG_H
|
|
Packit |
971217 |
#include "config.h"
|
|
Packit |
971217 |
#endif
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <gst/gst.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
#include <gst/app/gstappsrc.h>
|
|
Packit |
971217 |
#include <gst/app/gstappsink.h>
|
|
Packit |
971217 |
|
|
Packit |
971217 |
static gboolean
|
|
Packit |
971217 |
plugin_init (GstPlugin * plugin)
|
|
Packit |
971217 |
{
|
|
Packit |
971217 |
gst_element_register (plugin, "appsrc", GST_RANK_NONE, GST_TYPE_APP_SRC);
|
|
Packit |
971217 |
gst_element_register (plugin, "appsink", GST_RANK_NONE, GST_TYPE_APP_SINK);
|
|
Packit |
971217 |
|
|
Packit |
971217 |
return TRUE;
|
|
Packit |
971217 |
}
|
|
Packit |
971217 |
|
|
Packit |
971217 |
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
Packit |
971217 |
GST_VERSION_MINOR,
|
|
Packit |
971217 |
app,
|
|
Packit |
971217 |
"Elements used to communicate with applications",
|
|
Packit |
971217 |
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|