2005-07-21 18:07:38 +00:00
|
|
|
/* GStreamer
|
|
|
|
* Copyright (C) <2003> Julien Moutte <julien@moutte.net>
|
|
|
|
*
|
|
|
|
* 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
|
2012-11-03 23:05:09 +00:00
|
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
|
|
* Boston, MA 02110-1301, USA.
|
2005-07-21 18:07:38 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "ximagesink.h"
|
|
|
|
|
2015-07-03 19:48:52 +00:00
|
|
|
GST_DEBUG_CATEGORY (gst_debug_x_image_pool);
|
|
|
|
GST_DEBUG_CATEGORY (gst_debug_x_image_sink);
|
2016-02-20 11:31:43 +00:00
|
|
|
GST_DEBUG_CATEGORY (CAT_PERFORMANCE);
|
2005-07-21 18:07:38 +00:00
|
|
|
|
|
|
|
static gboolean
|
|
|
|
plugin_init (GstPlugin * plugin)
|
|
|
|
{
|
|
|
|
if (!gst_element_register (plugin, "ximagesink",
|
2015-07-03 19:48:52 +00:00
|
|
|
GST_RANK_SECONDARY, GST_TYPE_X_IMAGE_SINK))
|
2005-07-21 18:07:38 +00:00
|
|
|
return FALSE;
|
|
|
|
|
2015-07-03 19:48:52 +00:00
|
|
|
GST_DEBUG_CATEGORY_INIT (gst_debug_x_image_sink, "ximagesink", 0,
|
2005-07-21 18:07:38 +00:00
|
|
|
"ximagesink element");
|
2015-07-03 19:48:52 +00:00
|
|
|
GST_DEBUG_CATEGORY_INIT (gst_debug_x_image_pool, "ximagepool", 0,
|
2011-03-03 15:48:23 +00:00
|
|
|
"ximagepool object");
|
2005-07-21 18:07:38 +00:00
|
|
|
|
2016-02-20 11:31:43 +00:00
|
|
|
GST_DEBUG_CATEGORY_GET (CAT_PERFORMANCE, "GST_PERFORMANCE");
|
2011-04-06 10:26:47 +00:00
|
|
|
|
2005-07-21 18:07:38 +00:00
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
2012-04-05 13:11:05 +00:00
|
|
|
ximagesink,
|
2005-11-21 16:08:19 +00:00
|
|
|
"X11 video output element based on standard Xlib calls",
|
2005-10-16 13:54:44 +00:00
|
|
|
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|