# glfilterapp

The resize and redraw callbacks can be set from a client code.

## CLient callbacks

The graphic scene can be written from a client code through the two glfilterapp properties.

## Examples

see gst-plugins-gl/tests/examples/generic/recordgraphic

## Hierarchy

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

## Factory details

Authors: – Julien Isorce

Classification: – `Filter/Effect`

Rank – none

Plugin – opengl

Package – GStreamer Base Plug-ins

## Pad Templates

### `sink`

    video/x-raw(ANY):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

    video/x-raw(memory:GLMemory):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw(memory:GLMemory):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

    video/x-raw(ANY):
             format: RGBA
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]
     texture-target: 2D

Presence – always

Direction – src

Object type – GstPad

## Signals

### client-draw

    gboolean
    client_draw_callback (GstElement * object,
                          guint texture,
                          guint width,
                          guint height,
                          gpointer udata)

    def client_draw_callback (object, texture, width, height, udata):
        #python callback for the 'client-draw' signal

    function client_draw_callback(object: GstElement * object, texture: guint texture, width: guint width, height: guint height, udata: gpointer udata): {
        // javascript callback for the 'client-draw' signal
    }

Will be emitted before to draw the texture. The client should redraw the surface/contents with the texture, width and height.

Parameters:

`object` –

the

`texture` –

the guint id of the texture.

`width` –

the guint width of the texture.

`height` –

the guint height of the texture.

`udata` –
No description available
Returns (gboolean) –

whether the texture was redrawn by the signal. If not, a default redraw will occur.

Flags: Run Last

The results of the search are