glfiltercube

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

Examples

 gst-launch-1.0 -v videotestsrc ! glfiltercube ! glimagesink

A pipeline to mpa textures on the 6 cube faces.. FBO is required.

 gst-launch-1.0 -v videotestsrc ! glfiltercube ! video/x-raw, width=640, height=480 ! glimagesink

Resize scene after drawing the cube. The scene size is greater than the input video size.

 gst-launch-1.0 -v videotestsrc ! video/x-raw, width=640, height=480  ! glfiltercube ! glimagesink

Resize scene before drawing the cube. The scene size is greater than the input video size.

Hierarchy

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

Factory details

Authors: – Julien Isorce

Classification:Filter/Effect/Video

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

Presencealways

Directionsink

Object typeGstPad


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

Presencealways

Directionsrc

Object typeGstPad


Properties

aspect

“aspect” gdouble

Field of view in the x direction

Flags : Read / Write

Default value : 0


blue

“blue” gfloat

Background blue color

Flags : Read / Write

Default value : 0


fovy

“fovy” gdouble

Field of view angle in degrees

Flags : Read / Write

Default value : 45


green

“green” gfloat

Background green color

Flags : Read / Write

Default value : 0


red

“red” gfloat

Background red color

Flags : Read / Write

Default value : 0


zfar

“zfar” gdouble

Specifies the distance from the viewer to the far clipping plane

Flags : Read / Write

Default value : 100


znear

“znear” gdouble

Specifies the distance from the viewer to the near clipping plane

Flags : Read / Write

Default value : 0.1


The results of the search are