diff options
Diffstat (limited to 'sys/glsink/gstglconvert.c')
-rw-r--r-- | sys/glsink/gstglconvert.c | 65 |
1 files changed, 5 insertions, 60 deletions
diff --git a/sys/glsink/gstglconvert.c b/sys/glsink/gstglconvert.c index 57daec5a..f4f525e9 100644 --- a/sys/glsink/gstglconvert.c +++ b/sys/glsink/gstglconvert.c @@ -58,24 +58,6 @@ static const GstElementDetails element_details = GST_ELEMENT_DETAILS ("FIXME", "FIXME GL conversion filter", "FIXME <fixme@fixme.com>"); -#if 0 -#define GST_GL_VIDEO_CAPS "video/x-raw-gl" - -static GstStaticPadTemplate gst_gl_convert_src_pad_template = -GST_STATIC_PAD_TEMPLATE ("src", - GST_PAD_SRC, - GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_GL_VIDEO_CAPS) - ); - -static GstStaticPadTemplate gst_gl_convert_sink_pad_template = -GST_STATIC_PAD_TEMPLATE ("sink", - GST_PAD_SINK, - GST_PAD_ALWAYS, - GST_STATIC_CAPS (GST_GL_VIDEO_CAPS) - ); -#endif - enum { PROP_0 @@ -92,11 +74,8 @@ static void gst_gl_convert_set_property (GObject * object, guint prop_id, static void gst_gl_convert_get_property (GObject * object, guint prop_id, GValue * value, GParamSpec * pspec); -static void gst_gl_convert_reset (GstGLConvert * filter); -static gboolean gst_gl_convert_transform (GstGLFilter * filter, - GstGLBuffer * outbuf, GstGLBuffer * inbuf); -static gboolean gst_gl_convert_start (GstGLFilter * _filter); -static gboolean gst_gl_convert_stop (GstGLFilter * _filter); +static gboolean gst_gl_convert_filter (GstGLFilter * filter, + GstGLBuffer * inbuf, GstGLBuffer * outbuf); static void @@ -105,13 +84,6 @@ gst_gl_convert_base_init (gpointer klass) GstElementClass *element_class = GST_ELEMENT_CLASS (klass); gst_element_class_set_details (element_class, &element_details); - -#if 0 - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_gl_convert_src_pad_template)); - gst_element_class_add_pad_template (element_class, - gst_static_pad_template_get (&gst_gl_convert_sink_pad_template)); -#endif } static void @@ -123,15 +95,12 @@ gst_gl_convert_class_init (GstGLConvertClass * klass) gobject_class->set_property = gst_gl_convert_set_property; gobject_class->get_property = gst_gl_convert_get_property; - GST_GL_FILTER_CLASS (klass)->transform = gst_gl_convert_transform; - GST_GL_FILTER_CLASS (klass)->start = gst_gl_convert_start; - GST_GL_FILTER_CLASS (klass)->stop = gst_gl_convert_stop; + GST_GL_FILTER_CLASS (klass)->filter = gst_gl_convert_filter; } static void gst_gl_convert_init (GstGLConvert * filter, GstGLConvertClass * klass) { - gst_gl_convert_reset (filter); } static void @@ -160,33 +129,9 @@ gst_gl_convert_get_property (GObject * object, guint prop_id, } } -static void -gst_gl_convert_reset (GstGLConvert * filter) -{ - -} - -static gboolean -gst_gl_convert_start (GstGLFilter * _filter) -{ - //GstGLConvert *convert = GST_GL_CONVERT(_filter); - - return TRUE; -} - -static gboolean -gst_gl_convert_stop (GstGLFilter * _filter) -{ - GstGLConvert *convert = GST_GL_CONVERT (_filter); - - gst_gl_convert_reset (convert); - - return TRUE; -} - static gboolean -gst_gl_convert_transform (GstGLFilter * filter, GstGLBuffer * outbuf, - GstGLBuffer * inbuf) +gst_gl_convert_filter (GstGLFilter * filter, GstGLBuffer * inbuf, + GstGLBuffer * outbuf) { //GstGLConvert *convert = GST_GL_CONVERT(filter); |