GstGLFilter: GStreamer Bad Plugins 1.0 Library Reference Manual

## GstGLFilter GstGLFilter |

## Functions

void | gst_gl_filter_draw_texture ()
void | gst_gl_filter_render_to_target ()
void | gst_gl_filter_render_to_target_with_shader ()
gboolean | gst_gl_filter_filter_texture ()

## Types and Values

| GstGLFilter
| GstGLFilterClass

## Object Hierarchy

        GObject
        ╰── GInitiallyUnowned
            ╰── GstObject
                ╰── GstElement
                    ╰── GstBaseTransform
                        ╰── GstGLBaseFilter
                            ╰── GstGLFilter

## Description

## Functions

### gst_gl_filter_draw_texture ()

    void
    gst_gl_filter_draw_texture (GstGLFilter *filter,
                                GLuint texture,
                                guint width,
                                guint height);

### gst_gl_filter_render_to_target ()

    void
    gst_gl_filter_render_to_target (GstGLFilter *filter,
                                    gboolean resize,
                                    GLuint input,
                                    GLuint target,
                                    GLCB func,
                                    gpointer data);

### gst_gl_filter_render_to_target_with_shader ()

    void
    gst_gl_filter_render_to_target_with_shader
                                   (GstGLFilter *filter,
                                    gboolean resize,
                                    GLuint input,
                                    GLuint target,
                                    GstGLShader *shader);

### gst_gl_filter_filter_texture ()

    gboolean
    gst_gl_filter_filter_texture (GstGLFilter *filter,
                                  GstBuffer *inbuf,
                                  GstBuffer *outbuf);

## Types and Values

### GstGLFilter

    typedef struct _GstGLFilter GstGLFilter;

### GstGLFilterClass

    typedef struct {
      GstGLBaseFilterClass parent_class;

      gboolean (*set_caps)          (GstGLFilter* filter, GstCaps* incaps, GstCaps* outcaps);
      gboolean (*filter)            (GstGLFilter *filter, GstBuffer *inbuf, GstBuffer *outbuf);
      gboolean (*filter_texture)    (GstGLFilter *filter, guint in_tex, guint out_tex);
      gboolean (*init_fbo)          (GstGLFilter *filter);

      GstCaps *(*transform_internal_caps) (GstGLFilter *filter,
        GstPadDirection direction, GstCaps * caps, GstCaps * filter_caps);

      /* useful to init and cleanup custom gl resources */
      void (*display_init_cb)       (GstGLFilter *filter);
      void (*display_reset_cb)      (GstGLFilter *filter);
    } GstGLFilterClass;