summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Pouzol <pierre.pouzol@hotmail.fr>2010-04-26 14:32:28 +0200
committerJulien Isorce <julien.isorce@gmail.com>2010-04-26 14:32:28 +0200
commitcd456d1d6a522d1996da4474df641eb7c5e3ee13 (patch)
treee80f92f22b4383335223852d46ec4e050867dab2
parenteebd5c7587530521741155b6cc01c71d5d3c1bf5 (diff)
glfilterreflectedscreen: add new OpenGL Reflected Screen filter
Fixes bug #612163
-rwxr-xr-xgst/gl/CMakeLists.txt1
-rw-r--r--gst/gl/Makefile.am2
-rw-r--r--gst/gl/gstopengl.c8
-rw-r--r--unix/codeblocks/gstopengl/gstopengl.cbp4
4 files changed, 14 insertions, 1 deletions
diff --git a/gst/gl/CMakeLists.txt b/gst/gl/CMakeLists.txt
index 5639cc2..24ebb2a 100755
--- a/gst/gl/CMakeLists.txt
+++ b/gst/gl/CMakeLists.txt
@@ -33,6 +33,7 @@ add_library (gstopengl MODULE
gstglfiltersobel.c
gstglfilterglass.c
gstglfilterapp.c
+ gstglfilterreflectedscreen.c
gstglcolorscale.c
gltestsrc.c
gstgltestsrc.c
diff --git a/gst/gl/Makefile.am b/gst/gl/Makefile.am
index b69a65c..55f37f2 100644
--- a/gst/gl/Makefile.am
+++ b/gst/gl/Makefile.am
@@ -19,6 +19,8 @@ OPENGL_SOURCES = \
gstglfilterglass.h \
gstglfilterapp.c \
gstglfilterapp.h \
+ gstglfilterreflectedscreen.c \
+ gstglfilterreflectedscreen.h \
gstglcolorscale.c \
gstglcolorscale.h \
gstgldeinterlace.c \
diff --git a/gst/gl/gstopengl.c b/gst/gl/gstopengl.c
index 94736cd..ee8e546 100644
--- a/gst/gl/gstopengl.c
+++ b/gst/gl/gstopengl.c
@@ -58,6 +58,7 @@ GType gst_gl_effects_get_type (void);
#include "gstglfilterlaplacian.h"
#include "gstglfilterglass.h"
#include "gstglfilterapp.h"
+#include "gstglfilterreflectedscreen.h"
#include "gstglcolorscale.h"
#include "gstgldeinterlace.h"
#include "gstglbumper.h"
@@ -65,6 +66,7 @@ GType gst_gl_effects_get_type (void);
GType gst_gl_deinterlace_get_type (void);
GType gst_gl_filter_app_get_type (void);
+GType gst_gl_filter_reflected_screen_get_type (void);
GType gst_gl_filterblur_get_type (void);
GType gst_gl_filtersobel_get_type (void);
GType gst_gl_filter_laplacian_get_type (void);
@@ -108,7 +110,6 @@ plugin_init (GstPlugin * plugin)
GST_RANK_NONE, gst_gl_effects_get_type ())) {
return FALSE;
}
-
#ifndef OPENGL_ES2
if (!gst_element_register (plugin, "gltestsrc",
GST_RANK_NONE, GST_TYPE_GL_TEST_SRC)) {
@@ -153,6 +154,11 @@ plugin_init (GstPlugin * plugin)
return FALSE;
}
+ if (!gst_element_register (plugin, "glfilterreflectedscreen",
+ GST_RANK_NONE, GST_TYPE_GL_FILTER_REFLECTED_SCREEN)) {
+ return FALSE;
+ }
+
if (!gst_element_register (plugin, "gldeinterlace",
GST_RANK_NONE, GST_TYPE_GL_DEINTERLACE)) {
return FALSE;
diff --git a/unix/codeblocks/gstopengl/gstopengl.cbp b/unix/codeblocks/gstopengl/gstopengl.cbp
index 965f92d..0b00790 100644
--- a/unix/codeblocks/gstopengl/gstopengl.cbp
+++ b/unix/codeblocks/gstopengl/gstopengl.cbp
@@ -183,6 +183,10 @@
<Option compilerVar="CC" />
</Unit>
<Unit filename="../../../gst/gl/gstglfilterlaplacian.h" />
+ <Unit filename="../../../gst/gl/gstglfilterreflectedscreen.c">
+ <Option compilerVar="CC" />
+ </Unit>
+ <Unit filename="../../../gst/gl/gstglfilterreflectedscreen.h" />
<Unit filename="../../../gst/gl/gstglfiltersobel.c">
<Option compilerVar="CC" />
</Unit>