glfiltercube

glfiltercube — Map input texture on the 6 cube faces

Properties

gdouble aspect Write
gfloat blue Write
gdouble fovy Write
gfloat green Write
gfloat red Write
gdouble zfar Write
gdouble znear Write

Types and Values

Object Hierarchy

    GObject
    ╰── GstObject
        ╰── GstElement
            ╰── GstBaseTransform
                ╰── GstGLFilter
                    ╰── GstGLFilterCube

Description

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

Examples

1
gst-launch -v videotestsrc ! glupload ! glfiltercube ! glimagesink
A pipeline to mpa textures on the 6 cube faces.. FBO is required.
1
gst-launch -v videotestsrc ! glupload ! glfiltercube ! video/x-raw-gl, width=640, height=480 ! glimagesink
Resize scene after drawing the cube. The scene size is greater than the input video size.
1
gst-launch -v videotestsrc ! glupload ! video/x-raw-gl, width=640, height=480  ! glfiltercube ! glimagesink
Resize scene before drawing the cube. The scene size is greater than the input video size.

Synopsis

Element Information

plugin

opengl

author

Julien Isorce <julien.isorce@gmail.com>

class

Filter/Effect

Element Pads

name

sink

direction

sink

presence

always

details

video/x-raw-gl, width=(int)[ 1, 8000 ], height=(int)[ 1, 6000 ], pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)[ 0/1, 100/1 ]

name

src

direction

source

presence

always

details

video/x-raw-gl, width=(int)[ 1, 8000 ], height=(int)[ 1, 6000 ], pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)[ 0/1, 100/1 ]

Functions

Types and Values

struct GstGLFilterCube

struct GstGLFilterCube;

Property Details

The “aspect” property

  “aspect”                   gdouble

Field of view in the x direction.

Flags: Write

Allowed values: [0,100]

Default value: 0


The “blue” property

  “blue”                     gfloat

Background blue color.

Flags: Write

Allowed values: [0,1]

Default value: 0


The “fovy” property

  “fovy”                     gdouble

Field of view angle in degrees.

Flags: Write

Allowed values: [0,180]

Default value: 45


The “green” property

  “green”                    gfloat

Background reen color.

Flags: Write

Allowed values: [0,1]

Default value: 0


The “red” property

  “red”                      gfloat

Background red color.

Flags: Write

Allowed values: [0,1]

Default value: 0


The “zfar” property

  “zfar”                     gdouble

Specifies the distance from the viewer to the far clipping plane.

Flags: Write

Allowed values: [0,1000]

Default value: 100


The “znear” property

  “znear”                    gdouble

Specifies the distance from the viewer to the near clipping plane.

Flags: Write

Allowed values: [0,100]

Default value: 0.1