summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2009-02-05 13:13:51 -0800
committerDavid Schleef <ds@schleef.org>2009-02-07 17:09:04 -0800
commit6c12097012696fb8296722ce0778cc549c26eaa1 (patch)
tree37b664f50c1d43c0451e9e88e191284e04caf4a9
parentb315abde08f1d015f18a08e4670014b2d000ba5e (diff)
Rename glpixbufoverlay to gloverlaypng
-rw-r--r--configure.ac18
-rw-r--r--docs/plugins/inspect/plugin-opengl.xml8
-rw-r--r--gst/gl/CMakeLists.txt2
-rw-r--r--gst/gl/Makefile.am2
-rw-r--r--gst/gl/gstgloverlay.c (renamed from gst/gl/gstglpixbufoverlay.c)192
-rw-r--r--gst/gl/gstopengl.c4
-rw-r--r--tests/examples/gtk/fxtest/pixbufdrop.c4
-rw-r--r--unix/codeblocks/gstopengl/gstopengl.cbp2
-rw-r--r--win32/codeblock/gstopengl.cbp2
-rw-r--r--win32/vs8/libgstopengl.vcproj2
-rw-r--r--win32/vs9/libgstopengl.vcproj2
11 files changed, 119 insertions, 119 deletions
diff --git a/configure.ac b/configure.ac
index e42addc..09e920a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -203,16 +203,16 @@ AC_SUBST(GTK_CFLAGS)
AC_SUBST(HAVE_GTK)
AM_CONDITIONAL(HAVE_GTK, test "x$HAVE_GTK" = "xyes")
-dnl optional gdk-pixbuf (for pixbufoverlay)
-HAVE_GDKPIXBUF=NO
+dnl optional gdk-pixbuf (for examples)
+#HAVE_GDKPIXBUF=NO
#PKG_CHECK_MODULES(GDKPIXBUF, gdk-pixbuf-2.0, HAVE_GDKPIXBUF=yes, HAVE_GDKPIXBUF=no)
-AC_SUBST(GDKPIXBUF_LIBS)
-AC_SUBST(GDKPIXBUF_CFLAGS)
-AC_SUBST(HAVE_GDKPIXBUF)
-AM_CONDITIONAL(HAVE_GDKPIXBUF, test "x$HAVE_GDKPIXBUF" = "xyes")
-if test "x$HAVE_GDKPIXBUF" = "xyes"; then
- AC_DEFINE_UNQUOTED([HAVE_GDKPIXBUF], [], ["Have GdkPixbuf"])
-fi
+#AC_SUBST(GDKPIXBUF_LIBS)
+#AC_SUBST(GDKPIXBUF_CFLAGS)
+#AC_SUBST(HAVE_GDKPIXBUF)
+#AM_CONDITIONAL(HAVE_GDKPIXBUF, test "x$HAVE_GDKPIXBUF" = "xyes")
+#if test "x$HAVE_GDKPIXBUF" = "xyes"; then
+# AC_DEFINE_UNQUOTED([HAVE_GDKPIXBUF], [], ["Have GdkPixbuf"])
+#fi
dnl clutter is optional and used in examples
diff --git a/docs/plugins/inspect/plugin-opengl.xml b/docs/plugins/inspect/plugin-opengl.xml
index 6c492a5..c43c519 100644
--- a/docs/plugins/inspect/plugin-opengl.xml
+++ b/docs/plugins/inspect/plugin-opengl.xml
@@ -256,10 +256,10 @@
</pads>
</element>
<element>
- <name>glpixbufoverlay</name>
- <longname>Gstreamer OpenGL PixbufOverlay</longname>
+ <name>gloverlay</name>
+ <longname>Gstreamer OpenGL Overlay</longname>
<class>Filter/Effect</class>
- <description>Overlay GL video texture with a gdkpixbuf</description>
+ <description>Overlay GL video texture with a PNG image</description>
<author>Filippo Argiolas &lt;filippo.argiolas@gmail.com&gt;</author>
<pads>
<caps>
@@ -313,4 +313,4 @@
</pads>
</element>
</elements>
-</plugin> \ No newline at end of file
+</plugin>
diff --git a/gst/gl/CMakeLists.txt b/gst/gl/CMakeLists.txt
index f154962..2080f2b 100644
--- a/gst/gl/CMakeLists.txt
+++ b/gst/gl/CMakeLists.txt
@@ -29,7 +29,7 @@ endif (WIN32)
if (PNG_FOUND AND ZLIB_FOUND)
set(OTHER_ELEMENTS
- gstglpixbufoverlay.c
+ gstgloverlay.c
gstgldifferencematte.c
gstglbumper.c)
endif (PNG_FOUND AND ZLIB_FOUND)
diff --git a/gst/gl/Makefile.am b/gst/gl/Makefile.am
index a4ba8ac..6b620a7 100644
--- a/gst/gl/Makefile.am
+++ b/gst/gl/Makefile.am
@@ -27,7 +27,7 @@ libgstopengl_la_SOURCES = \
gstglcolorscale.c \
gstglcolorscale.h \
gstgldifferencematte.c \
- gstglpixbufoverlay.c \
+ gstgloverlay.c \
gltestsrc.c \
gltestsrc.h \
gstgltestsrc.c \
diff --git a/gst/gl/gstglpixbufoverlay.c b/gst/gl/gstgloverlay.c
index 0b0e037..51509c7 100644
--- a/gst/gl/gstglpixbufoverlay.c
+++ b/gst/gl/gstgloverlay.c
@@ -19,14 +19,14 @@
*/
/**
- * SECTION:element-glpixbufoverlay
+ * SECTION:element-gloverlay
*
* Overlay GL video texture with a PNG image
*
* <refsect2>
* <title>Examples</title>
* |[
- * gst-launch videotestsrc ! "video/x-raw-rgb" ! glupload ! glpixbufoverlay location=imagefile ! glimagesink
+ * gst-launch videotestsrc ! "video/x-raw-rgb" ! glupload ! gloverlay location=imagefile ! glimagesink
* ]|
* FBO (Frame Buffer Object) is required.
* </refsect2>
@@ -40,14 +40,14 @@
#include <gstglfilter.h>
#include <gstgleffectssources.h>
-#define GST_TYPE_GL_PIXBUFOVERLAY (gst_gl_pixbufoverlay_get_type())
-#define GST_GL_PIXBUFOVERLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_GL_PIXBUFOVERLAY,GstGLPixbufOverlay))
-#define GST_IS_GL_PIXBUFOVERLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_GL_PIXBUFOVERLAY))
-#define GST_GL_PIXBUFOVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) , GST_TYPE_GL_PIXBUFOVERLAY,GstGLPixbufOverlayClass))
-#define GST_IS_GL_PIXBUFOVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) , GST_TYPE_GL_PIXBUFOVERLAY))
-#define GST_GL_PIXBUFOVERLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) , GST_TYPE_GL_PIXBUFOVERLAY,GstGLPixbufOverlayClass))
+#define GST_TYPE_GL_OVERLAY (gst_gl_overlay_get_type())
+#define GST_GL_OVERLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_GL_OVERLAY,GstGLOverlay))
+#define GST_IS_GL_OVERLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_GL_OVERLAY))
+#define GST_GL_OVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) , GST_TYPE_GL_OVERLAY,GstGLOverlayClass))
+#define GST_IS_GL_OVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) , GST_TYPE_GL_OVERLAY))
+#define GST_GL_OVERLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) , GST_TYPE_GL_OVERLAY,GstGLOverlayClass))
-struct _GstGLPixbufOverlay
+struct _GstGLOverlay
{
GstGLFilter filter;
@@ -61,38 +61,38 @@ struct _GstGLPixbufOverlay
// gboolean stretch;
};
-struct _GstGLPixbufOverlayClass
+struct _GstGLOverlayClass
{
GstGLFilterClass filter_class;
};
-typedef struct _GstGLPixbufOverlay GstGLPixbufOverlay;
-typedef struct _GstGLPixbufOverlayClass GstGLPixbufOverlayClass;
+typedef struct _GstGLOverlay GstGLOverlay;
+typedef struct _GstGLOverlayClass GstGLOverlayClass;
-#define GST_CAT_DEFAULT gst_gl_pixbufoverlay_debug
+#define GST_CAT_DEFAULT gst_gl_overlay_debug
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
#define DEBUG_INIT(bla) \
- GST_DEBUG_CATEGORY_INIT (gst_gl_pixbufoverlay_debug, "glpixbufoverlay", 0, "glpixbufoverlay element");
+ GST_DEBUG_CATEGORY_INIT (gst_gl_overlay_debug, "gloverlay", 0, "gloverlay element");
-GST_BOILERPLATE_FULL (GstGLPixbufOverlay, gst_gl_pixbufoverlay, GstGLFilter,
+GST_BOILERPLATE_FULL (GstGLOverlay, gst_gl_overlay, GstGLFilter,
GST_TYPE_GL_FILTER, DEBUG_INIT);
-static void gst_gl_pixbufoverlay_set_property (GObject * object, guint prop_id,
+static void gst_gl_overlay_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
-static void gst_gl_pixbufoverlay_get_property (GObject * object, guint prop_id,
+static void gst_gl_overlay_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
-static void gst_gl_pixbufoverlay_init_resources (GstGLFilter* filter);
-static void gst_gl_pixbufoverlay_reset_resources (GstGLFilter* filter);
+static void gst_gl_overlay_init_resources (GstGLFilter* filter);
+static void gst_gl_overlay_reset_resources (GstGLFilter* filter);
-static gboolean gst_gl_pixbufoverlay_filter (GstGLFilter * filter,
+static gboolean gst_gl_overlay_filter (GstGLFilter * filter,
GstGLBuffer * inbuf, GstGLBuffer * outbuf);
-static gboolean gst_gl_pixbufoverlay_loader (GstGLFilter* filter);
+static gboolean gst_gl_overlay_loader (GstGLFilter* filter);
static const GstElementDetails element_details = GST_ELEMENT_DETAILS (
- "Gstreamer OpenGL PixbufOverlay",
+ "Gstreamer OpenGL Overlay",
"Filter/Effect",
"Overlay GL video texture with a PNG image",
"Filippo Argiolas <filippo.argiolas@gmail.com>");
@@ -112,22 +112,22 @@ enum
/* init resources that need a gl context */
static void
-gst_gl_pixbufoverlay_init_gl_resources (GstGLFilter *filter)
+gst_gl_overlay_init_gl_resources (GstGLFilter *filter)
{
-// GstGLPixbufOverlay *pixbufoverlay = GST_GL_PIXBUFOVERLAY (filter);
+// GstGLOverlay *overlay = GST_GL_OVERLAY (filter);
}
/* free resources that need a gl context */
static void
-gst_gl_pixbufoverlay_reset_gl_resources (GstGLFilter *filter)
+gst_gl_overlay_reset_gl_resources (GstGLFilter *filter)
{
- GstGLPixbufOverlay *pixbufoverlay = GST_GL_PIXBUFOVERLAY (filter);
+ GstGLOverlay *overlay = GST_GL_OVERLAY (filter);
- glDeleteTextures (1, &pixbufoverlay->pbuftexture);
+ glDeleteTextures (1, &overlay->pbuftexture);
}
static void
-gst_gl_pixbufoverlay_base_init (gpointer klass)
+gst_gl_overlay_base_init (gpointer klass)
{
GstElementClass *element_class = GST_ELEMENT_CLASS (klass);
@@ -135,19 +135,19 @@ gst_gl_pixbufoverlay_base_init (gpointer klass)
}
static void
-gst_gl_pixbufoverlay_class_init (GstGLPixbufOverlayClass * klass)
+gst_gl_overlay_class_init (GstGLOverlayClass * klass)
{
GObjectClass *gobject_class;
gobject_class = (GObjectClass *) klass;
- gobject_class->set_property = gst_gl_pixbufoverlay_set_property;
- gobject_class->get_property = gst_gl_pixbufoverlay_get_property;
+ gobject_class->set_property = gst_gl_overlay_set_property;
+ gobject_class->get_property = gst_gl_overlay_get_property;
- GST_GL_FILTER_CLASS (klass)->filter = gst_gl_pixbufoverlay_filter;
- GST_GL_FILTER_CLASS (klass)->display_init_cb = gst_gl_pixbufoverlay_init_gl_resources;
- GST_GL_FILTER_CLASS (klass)->display_reset_cb = gst_gl_pixbufoverlay_reset_gl_resources;
- GST_GL_FILTER_CLASS (klass)->onStart = gst_gl_pixbufoverlay_init_resources;
- GST_GL_FILTER_CLASS (klass)->onStop = gst_gl_pixbufoverlay_reset_resources;
+ GST_GL_FILTER_CLASS (klass)->filter = gst_gl_overlay_filter;
+ GST_GL_FILTER_CLASS (klass)->display_init_cb = gst_gl_overlay_init_gl_resources;
+ GST_GL_FILTER_CLASS (klass)->display_reset_cb = gst_gl_overlay_reset_gl_resources;
+ GST_GL_FILTER_CLASS (klass)->onStart = gst_gl_overlay_init_resources;
+ GST_GL_FILTER_CLASS (klass)->onStop = gst_gl_overlay_reset_resources;
g_object_class_install_property (gobject_class,
PROP_LOCATION,
@@ -166,9 +166,9 @@ gst_gl_pixbufoverlay_class_init (GstGLPixbufOverlayClass * klass)
}
void
-gst_gl_pixbufoverlay_draw_texture (GstGLPixbufOverlay * pixbufoverlay, GLuint tex)
+gst_gl_overlay_draw_texture (GstGLOverlay * overlay, GLuint tex)
{
- GstGLFilter *filter = GST_GL_FILTER (pixbufoverlay);
+ GstGLFilter *filter = GST_GL_FILTER (overlay);
gfloat width = (gfloat) filter->width;
gfloat height = (gfloat) filter->height;
@@ -190,18 +190,18 @@ gst_gl_pixbufoverlay_draw_texture (GstGLPixbufOverlay * pixbufoverlay, GLuint te
glEnd ();
- if (pixbufoverlay->pbuftexture == 0) return;
+ if (overlay->pbuftexture == 0) return;
-// if (pixbufoverlay->stretch) {
- width = (gfloat) pixbufoverlay->width;
- height = (gfloat) pixbufoverlay->height;
+// if (overlay->stretch) {
+ width = (gfloat) overlay->width;
+ height = (gfloat) overlay->height;
// }
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
glEnable (GL_TEXTURE_RECTANGLE_ARB);
- glBindTexture (GL_TEXTURE_RECTANGLE_ARB, pixbufoverlay->pbuftexture);
+ glBindTexture (GL_TEXTURE_RECTANGLE_ARB, overlay->pbuftexture);
glBegin (GL_QUADS);
@@ -221,39 +221,39 @@ gst_gl_pixbufoverlay_draw_texture (GstGLPixbufOverlay * pixbufoverlay, GLuint te
}
static void
-gst_gl_pixbufoverlay_init (GstGLPixbufOverlay * pixbufoverlay,
- GstGLPixbufOverlayClass * klass)
+gst_gl_overlay_init (GstGLOverlay * overlay,
+ GstGLOverlayClass * klass)
{
- pixbufoverlay->location = NULL;
- pixbufoverlay->pixbuf = NULL;
- pixbufoverlay->pbuftexture = 0;
- pixbufoverlay->pbuftexture = 0;
- pixbufoverlay->width = 0;
- pixbufoverlay->height = 0;
-// pixbufoverlay->stretch = TRUE;
- pixbufoverlay->pbuf_has_changed = FALSE;
+ overlay->location = NULL;
+ overlay->pixbuf = NULL;
+ overlay->pbuftexture = 0;
+ overlay->pbuftexture = 0;
+ overlay->width = 0;
+ overlay->height = 0;
+// overlay->stretch = TRUE;
+ overlay->pbuf_has_changed = FALSE;
}
static void
-gst_gl_pixbufoverlay_reset_resources (GstGLFilter* filter)
+gst_gl_overlay_reset_resources (GstGLFilter* filter)
{
- // GstGLPixbufOverlay* pixbufoverlay = GST_GL_PIXBUFOVERLAY(filter);
+ // GstGLOverlay* overlay = GST_GL_OVERLAY(filter);
}
static void
-gst_gl_pixbufoverlay_set_property (GObject * object, guint prop_id,
+gst_gl_overlay_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
- GstGLPixbufOverlay *pixbufoverlay = GST_GL_PIXBUFOVERLAY (object);
+ GstGLOverlay *overlay = GST_GL_OVERLAY (object);
switch (prop_id) {
case PROP_LOCATION:
- if (pixbufoverlay->location != NULL) g_free (pixbufoverlay->location);
- pixbufoverlay->pbuf_has_changed = TRUE;
- pixbufoverlay->location = g_value_dup_string (value);
+ if (overlay->location != NULL) g_free (overlay->location);
+ overlay->pbuf_has_changed = TRUE;
+ overlay->location = g_value_dup_string (value);
break;
/* case PROP_STRETCH:
- pixbufoverlay->stretch = g_value_get_boolean (value);
+ overlay->stretch = g_value_get_boolean (value);
break;
*/
default:
@@ -263,17 +263,17 @@ gst_gl_pixbufoverlay_set_property (GObject * object, guint prop_id,
}
static void
-gst_gl_pixbufoverlay_get_property (GObject * object, guint prop_id,
+gst_gl_overlay_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec)
{
- GstGLPixbufOverlay *pixbufoverlay = GST_GL_PIXBUFOVERLAY (object);
+ GstGLOverlay *overlay = GST_GL_OVERLAY (object);
switch (prop_id) {
case PROP_LOCATION:
- g_value_set_string (value, pixbufoverlay->location);
+ g_value_set_string (value, overlay->location);
break;
/* case PROP_STRETCH:
- g_value_set_boolean (value, pixbufoverlay->stretch);
+ g_value_set_boolean (value, overlay->stretch);
break;
*/
default:
@@ -283,63 +283,63 @@ gst_gl_pixbufoverlay_get_property (GObject * object, guint prop_id,
}
static void
-gst_gl_pixbufoverlay_init_resources (GstGLFilter* filter)
+gst_gl_overlay_init_resources (GstGLFilter* filter)
{
-// GstGLPixbufOverlay *pixbufoverlay = GST_GL_PIXBUFOVERLAY (filter);
+// GstGLOverlay *overlay = GST_GL_OVERLAY (filter);
}
static void
-gst_gl_pixbufoverlay_callback (gint width, gint height, guint texture, gpointer stuff)
+gst_gl_overlay_callback (gint width, gint height, guint texture, gpointer stuff)
{
- GstGLPixbufOverlay* pixbufoverlay = GST_GL_PIXBUFOVERLAY (stuff);
+ GstGLOverlay* overlay = GST_GL_OVERLAY (stuff);
glMatrixMode (GL_PROJECTION);
glLoadIdentity ();
- gst_gl_pixbufoverlay_draw_texture (pixbufoverlay, texture);
+ gst_gl_overlay_draw_texture (overlay, texture);
}
static void init_pixbuf_texture (GstGLDisplay *display, gpointer data)
{
- GstGLPixbufOverlay *pixbufoverlay = GST_GL_PIXBUFOVERLAY (data);
+ GstGLOverlay *overlay = GST_GL_OVERLAY (data);
- if (pixbufoverlay->pixbuf) {
+ if (overlay->pixbuf) {
- glDeleteTextures (1, &pixbufoverlay->pbuftexture);
- glGenTextures (1, &pixbufoverlay->pbuftexture);
- glBindTexture (GL_TEXTURE_RECTANGLE_ARB, pixbufoverlay->pbuftexture);
+ glDeleteTextures (1, &overlay->pbuftexture);
+ glGenTextures (1, &overlay->pbuftexture);
+ glBindTexture (GL_TEXTURE_RECTANGLE_ARB, overlay->pbuftexture);
glTexImage2D (GL_TEXTURE_RECTANGLE_ARB, 0, GL_RGBA,
- (gint)pixbufoverlay->width, (gint)pixbufoverlay->height, 0,
- GL_RGBA, GL_UNSIGNED_BYTE, pixbufoverlay->pixbuf);
+ (gint)overlay->width, (gint)overlay->height, 0,
+ GL_RGBA, GL_UNSIGNED_BYTE, overlay->pixbuf);
}
else
display->isAlive = FALSE;
}
static gboolean
-gst_gl_pixbufoverlay_filter (GstGLFilter* filter, GstGLBuffer* inbuf,
+gst_gl_overlay_filter (GstGLFilter* filter, GstGLBuffer* inbuf,
GstGLBuffer* outbuf)
{
- GstGLPixbufOverlay* pixbufoverlay = GST_GL_PIXBUFOVERLAY(filter);
+ GstGLOverlay* overlay = GST_GL_OVERLAY(filter);
- if (pixbufoverlay->pbuf_has_changed && (pixbufoverlay->location != NULL)) {
+ if (overlay->pbuf_has_changed && (overlay->location != NULL)) {
- if (!gst_gl_pixbufoverlay_loader (filter))
- pixbufoverlay->pixbuf = NULL;
+ if (!gst_gl_overlay_loader (filter))
+ overlay->pixbuf = NULL;
/* if loader failed then display is turned off */
- gst_gl_display_thread_add (filter->display, init_pixbuf_texture, pixbufoverlay);
+ gst_gl_display_thread_add (filter->display, init_pixbuf_texture, overlay);
- if (pixbufoverlay->pixbuf) {
- free (pixbufoverlay->pixbuf);
- pixbufoverlay->pixbuf = NULL;
+ if (overlay->pixbuf) {
+ free (overlay->pixbuf);
+ overlay->pixbuf = NULL;
}
- pixbufoverlay->pbuf_has_changed = FALSE;
+ overlay->pbuf_has_changed = FALSE;
}
gst_gl_filter_render_to_target (filter, inbuf->texture, outbuf->texture,
- gst_gl_pixbufoverlay_callback, pixbufoverlay);
+ gst_gl_overlay_callback, overlay);
return TRUE;
}
@@ -350,12 +350,12 @@ user_warning_fn(png_structp png_ptr, png_const_charp warning_msg)
g_warning("%s\n", warning_msg);
}
-#define LOAD_ERROR(msg) { GST_WARNING ("unable to load %s: %s", pixbufoverlay->location, msg); return FALSE; }
+#define LOAD_ERROR(msg) { GST_WARNING ("unable to load %s: %s", overlay->location, msg); return FALSE; }
static gboolean
-gst_gl_pixbufoverlay_loader (GstGLFilter* filter)
+gst_gl_overlay_loader (GstGLFilter* filter)
{
- GstGLPixbufOverlay* pixbufoverlay = GST_GL_PIXBUFOVERLAY(filter);
+ GstGLOverlay* overlay = GST_GL_OVERLAY(filter);
png_structp png_ptr;
png_infop info_ptr;
@@ -372,7 +372,7 @@ gst_gl_pixbufoverlay_loader (GstGLFilter* filter)
if (!filter->display)
return TRUE;
- if ((fp = fopen(pixbufoverlay->location, "rb")) == NULL)
+ if ((fp = fopen(overlay->location, "rb")) == NULL)
LOAD_ERROR ("file not found");
png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
@@ -409,15 +409,15 @@ gst_gl_pixbufoverlay_loader (GstGLFilter* filter)
LOAD_ERROR ("color type is not rgb");
}
- pixbufoverlay->width = width;
- pixbufoverlay->height = height;
+ overlay->width = width;
+ overlay->height = height;
- pixbufoverlay->pixbuf = (guchar*) malloc ( sizeof(guchar) * width * height * 4 );
+ overlay->pixbuf = (guchar*) malloc ( sizeof(guchar) * width * height * 4 );
rows = (guchar**)malloc(sizeof(guchar*) * height);
for (y = 0; y < height; ++y)
- rows[y] = (guchar*) (pixbufoverlay->pixbuf + y * width * 4);
+ rows[y] = (guchar*) (overlay->pixbuf + y * width * 4);
png_read_image(png_ptr, rows);
diff --git a/gst/gl/gstopengl.c b/gst/gl/gstopengl.c
index 90d9ca6..250ba7a 100644
--- a/gst/gl/gstopengl.c
+++ b/gst/gl/gstopengl.c
@@ -63,7 +63,7 @@ GType gst_gl_filtersobel_get_type (void);
GType gst_gl_filter_edge_get_type (void);
GType gst_gl_filter_laplacian_get_type (void);
GType gst_gl_filter_glass_get_type (void);
-GType gst_gl_pixbufoverlay_get_type (void);
+GType gst_gl_overlay_get_type (void);
GType gst_gl_differencematte_get_type (void);
GType gst_gl_bumper_get_type (void);
@@ -91,7 +91,7 @@ plugin_init (GstPlugin * plugin)
return FALSE;
}
if (!gst_element_register (plugin, "gloverlay",
- GST_RANK_NONE, gst_gl_pixbufoverlay_get_type())) {
+ GST_RANK_NONE, gst_gl_overlay_get_type())) {
return FALSE;
}
if (!gst_element_register (plugin, "gldifferencematte",
diff --git a/tests/examples/gtk/fxtest/pixbufdrop.c b/tests/examples/gtk/fxtest/pixbufdrop.c
index 06df5d1..bd4ba7f 100644
--- a/tests/examples/gtk/fxtest/pixbufdrop.c
+++ b/tests/examples/gtk/fxtest/pixbufdrop.c
@@ -165,7 +165,7 @@ main (gint argc, gchar * argv[])
GOptionEntry options[] = {
{ "source-bin", 's', 0, G_OPTION_ARG_STRING_ARRAY, &source_desc_array,
"Use a custom source bin description (gst-launch style)", NULL },
- { "method", 'm', 0, G_OPTION_ARG_INT, &method, "1 for gstdifferencematte, 2 for gstpixbufoverlay", "M" },
+ { "method", 'm', 0, G_OPTION_ARG_INT, &method, "1 for gstdifferencematte, 2 for gloverlay", "M" },
{ "delay", 'd', 0, G_OPTION_ARG_INT, &delay, "Wait N seconds before to send the image to gstreamer (useful with differencematte)", "N" },
{ NULL }
};
@@ -207,7 +207,7 @@ main (gint argc, gchar * argv[])
uload = gst_element_factory_make ("glupload", "glu");
if (method == 2) {
- filter = gst_element_factory_make ("glpixbufoverlay", "flt");
+ filter = gst_element_factory_make ("gloverlay", "flt");
} else {
filter = gst_element_factory_make ("gldifferencematte", "flt");
}
diff --git a/unix/codeblocks/gstopengl/gstopengl.cbp b/unix/codeblocks/gstopengl/gstopengl.cbp
index 85fa7f0..950ace1 100644
--- a/unix/codeblocks/gstopengl/gstopengl.cbp
+++ b/unix/codeblocks/gstopengl/gstopengl.cbp
@@ -184,7 +184,7 @@
<Option compilerVar="CC" />
</Unit>
<Unit filename="../../../gst/gl/gstglimagesink.h" />
- <Unit filename="../../../gst/gl/gstglpixbufoverlay.c">
+ <Unit filename="../../../gst/gl/gstgloverlay.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="../../../gst/gl/gstgltestsrc.c">
diff --git a/win32/codeblock/gstopengl.cbp b/win32/codeblock/gstopengl.cbp
index e7b044b..3547f47 100644
--- a/win32/codeblock/gstopengl.cbp
+++ b/win32/codeblock/gstopengl.cbp
@@ -199,7 +199,7 @@
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\..\gst\gl\gstglimagesink.h" />
- <Unit filename="..\..\gst\gl\gstglpixbufoverlay.c">
+ <Unit filename="..\..\gst\gl\gstgloverlay.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\..\gst\gl\gstgltestsrc.c">
diff --git a/win32/vs8/libgstopengl.vcproj b/win32/vs8/libgstopengl.vcproj
index 2c48c98..f9a42a8 100644
--- a/win32/vs8/libgstopengl.vcproj
+++ b/win32/vs8/libgstopengl.vcproj
@@ -262,7 +262,7 @@
>
</File>
<File
- RelativePath="..\..\gst\gl\gstglpixbufoverlay.c"
+ RelativePath="..\..\gst\gl\gstgloverlay.c"
>
</File>
<File
diff --git a/win32/vs9/libgstopengl.vcproj b/win32/vs9/libgstopengl.vcproj
index e106a98..a352432 100644
--- a/win32/vs9/libgstopengl.vcproj
+++ b/win32/vs9/libgstopengl.vcproj
@@ -261,7 +261,7 @@
>
</File>
<File
- RelativePath="..\..\gst\gl\gstglpixbufoverlay.c"
+ RelativePath="..\..\gst\gl\gstgloverlay.c"
>
</File>
<File