[171/906] import fxtest (little gtk app to easily test effects) from cvs branch, fixed rgbtocurve.

This commit is contained in:
Filippo Argiolas 2008-08-14 20:02:04 +02:00 committed by Tim-Philipp Müller
parent 91870f6d34
commit 4440a3cfed
2 changed files with 16 additions and 0 deletions

View file

@ -109,6 +109,8 @@ gst_gl_filter_class_init (GstGLFilterClass * klass)
klass->display_init_cb = NULL;
klass->display_reset_cb = NULL;
klass->onInitFBO = NULL;
klass->onStart = NULL;
klass->onStop = NULL;
klass->onReset = NULL;
}
@ -179,6 +181,12 @@ gst_gl_filter_reset (GstGLFilter* filter)
static gboolean
gst_gl_filter_start (GstBaseTransform* bt)
{
GstGLFilter *filter = GST_GL_FILTER (bt);
GstGLFilterClass *filter_class = GST_GL_FILTER_GET_CLASS (filter);
if (filter_class->onStart)
filter_class->onStart (filter);
return TRUE;
}
@ -186,6 +194,10 @@ static gboolean
gst_gl_filter_stop (GstBaseTransform* bt)
{
GstGLFilter *filter = GST_GL_FILTER (bt);
GstGLFilterClass *filter_class = GST_GL_FILTER_GET_CLASS (filter);
if (filter_class->onStop)
filter_class->onStop (filter);
gst_gl_filter_reset (filter);

View file

@ -46,6 +46,8 @@ typedef gboolean (*GstGLFilterProcessFunc) (GstGLFilter *filter,
GstGLBuffer *inbuf, GstGLBuffer *outbuf);
typedef void (*GstGLFilterOnInitFBO) (GstGLFilter *filter);
typedef void (*GstGLFilterOnReset) (GstGLFilter *filter);
typedef void (*GstGLFilterOnStart) (GstGLFilter *filter);
typedef void (*GstGLFilterOnStop) (GstGLFilter *filter);
typedef void (*GstGLFilterGLStartFunc) (GstGLFilter *filter);
typedef void (*GstGLFilterGLStopFunc) (GstGLFilter *filter);
@ -72,6 +74,8 @@ struct _GstGLFilterClass
GstGLFilterProcessFunc filter;
GstGLFilterOnInitFBO onInitFBO;
GstGLFilterOnStart onStart;
GstGLFilterOnStop onStop;
GstGLFilterOnReset onReset;
/* useful to init and cleanup custom gl resources */