mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
[171/906] import fxtest (little gtk app to easily test effects) from cvs branch, fixed rgbtocurve.
This commit is contained in:
parent
91870f6d34
commit
4440a3cfed
2 changed files with 16 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue