2008-05-18 11:12:46 +00:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* include gl filters headers */
|
|
|
|
#include "gstglgraphicmaker.h"
|
|
|
|
#include "gstglvideomaker.h"
|
|
|
|
|
|
|
|
#include "gstglimagesink.h"
|
|
|
|
|
|
|
|
#define GST_CAT_DEFAULT gst_gl_gstgl_debug
|
|
|
|
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
|
|
|
|
|
|
|
|
/* Register filters that make up the gstgl plugin */
|
|
|
|
static gboolean
|
|
|
|
plugin_init (GstPlugin * plugin)
|
|
|
|
{
|
2008-05-18 16:04:56 +00:00
|
|
|
GST_DEBUG_CATEGORY_INIT (gst_gl_gstgl_debug, "gstopengl", 0, "gstopengl");
|
2008-05-18 11:12:46 +00:00
|
|
|
|
|
|
|
if (!gst_element_register (plugin, "glvideomaker",
|
|
|
|
GST_RANK_NONE, GST_TYPE_GL_VIDEOMAKER)) {
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!gst_element_register (plugin, "glgraphicmaker",
|
|
|
|
GST_RANK_NONE, GST_TYPE_GL_GRAPHICMAKER)) {
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!gst_element_register (plugin, "glimagesink",
|
|
|
|
GST_RANK_NONE, GST_TYPE_GLIMAGE_SINK)) {
|
|
|
|
return FALSE;
|
|
|
|
}
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
|
|
GST_VERSION_MINOR,
|
2008-05-18 16:04:56 +00:00
|
|
|
"opengl",
|
2008-05-18 11:12:46 +00:00
|
|
|
"OpenGL plugin",
|
|
|
|
plugin_init, VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)
|