gstreamer/ext/gl/gstopengl.c

114 lines
3.8 KiB
C
Raw Normal View History

2014-03-16 10:23:16 +00:00
/*
* GStreamer
* Copyright (C) 2003 Julien Moutte <julien@moutte.net>
* Copyright (C) 2005,2006,2007 David A. Schleef <ds@schleef.org>
* Copyright (C) 2008 Julien Isorce <julien.isorce@gmail.com>
* Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com>
*
* 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., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
/**
* SECTION:plugin-opengl
* @title: GstOpengl
2014-03-16 10:23:16 +00:00
*
* Cross-platform OpenGL plugin.
*
* ## Debugging
*
* ## Examples
2014-03-16 10:23:16 +00:00
* |[
* gst-launch-1.0 --gst-debug=gldisplay:3 videotestsrc ! glimagesink
2014-03-16 10:23:16 +00:00
* ]| A debugging pipeline.
|[
* GST_DEBUG=gl*:6 gst-launch-1.0 videotestsrc ! glimagesink
2014-03-16 10:23:16 +00:00
* ]| A debugging pipelines related to shaders.
*
2014-03-16 10:23:16 +00:00
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "gstglelements.h"
#include "gstglmixerbin.h"
2014-06-22 12:14:27 +00:00
#include "gstglvideomixer.h"
#include "gstglstereomix.h"
2014-03-16 10:23:16 +00:00
/* Register filters that make up the gstgl plugin */
static gboolean
plugin_init (GstPlugin * plugin)
{
gboolean ret = FALSE;
ret |= GST_ELEMENT_REGISTER (glimagesink, plugin);
ret |= GST_ELEMENT_REGISTER (glimagesinkelement, plugin);
ret |= GST_ELEMENT_REGISTER (glupload, plugin);
ret |= GST_ELEMENT_REGISTER (gldownload, plugin);
ret |= GST_ELEMENT_REGISTER (glcolorconvert, plugin);
ret |= GST_ELEMENT_REGISTER (glcolorbalance, plugin);
ret |= GST_ELEMENT_REGISTER (glfilterbin, plugin);
ret |= GST_ELEMENT_REGISTER (glsinkbin, plugin);
ret |= GST_ELEMENT_REGISTER (glsrcbin, plugin);
ret |= GST_ELEMENT_REGISTER (glmixerbin, plugin);
ret |= GST_ELEMENT_REGISTER (glfiltercube, plugin);
#ifdef HAVE_GRAPHENE
ret |= GST_ELEMENT_REGISTER (gltransformation, plugin);
ret |= GST_ELEMENT_REGISTER (glvideoflip, plugin);
#endif
ret |= GST_ELEMENT_REGISTER (gleffects, plugin);
ret |= GST_ELEMENT_REGISTER (glcolorscale, plugin);
ret |= GST_ELEMENT_REGISTER (glvideomixer, plugin);
ret |= GST_ELEMENT_REGISTER (glvideomixerelement, plugin);
ret |= GST_ELEMENT_REGISTER (glshader, plugin);
ret |= GST_ELEMENT_REGISTER (glfilterapp, plugin);
ret |= GST_ELEMENT_REGISTER (glviewconvert, plugin);
ret |= GST_ELEMENT_REGISTER (glstereosplit, plugin);
ret |= GST_ELEMENT_REGISTER (glstereomix, plugin);
ret |= GST_ELEMENT_REGISTER (gltestsrc, plugin);
ret |= GST_ELEMENT_REGISTER (gldeinterlace, plugin);
ret |= GST_ELEMENT_REGISTER (glalpha, plugin);
ret |= GST_ELEMENT_REGISTER (gloverlaycompositor, plugin);
#if defined(HAVE_JPEG) && defined(HAVE_PNG)
ret |= GST_ELEMENT_REGISTER (gloverlay, plugin);
#endif
2014-03-16 10:23:16 +00:00
#if GST_GL_HAVE_OPENGL
ret |= GST_ELEMENT_REGISTER (glfilterglass, plugin);
2014-11-27 05:17:50 +00:00
#if 0
ret |= GST_ELEMENT_REGISTER (glfilterreflectedscreen, plugin);
2014-11-27 05:17:50 +00:00
#endif
ret |= GST_ELEMENT_REGISTER (glmosaic, plugin);
#ifdef HAVE_PNG
ret |= GST_ELEMENT_REGISTER (gldifferencematte, plugin);
2014-11-27 05:17:50 +00:00
#if 0
ret |= GST_ELEMENT_REGISTER (glbumper, plugin);
2014-11-27 05:17:50 +00:00
#endif
2014-03-16 10:23:16 +00:00
#endif /* HAVE_PNG */
#endif /* GST_GL_HAVE_OPENGL */
#if GST_GL_HAVE_WINDOW_COCOA
ret |= GST_ELEMENT_REGISTER (caopengllayersink, plugin);
#endif
2014-03-16 10:23:16 +00:00
return ret;
2014-03-16 10:23:16 +00:00
}
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
GST_VERSION_MINOR,
opengl,
"OpenGL plugin",
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)