## gltransformation gltransformation |

## Properties

gfloat | fov | Read / Write
GrapheneMatrix * | mvp-matrix | Read / Write
gboolean | ortho | Read / Write
gfloat | pivot-x | Read / Write
gfloat | pivot-y | Read / Write
gfloat | pivot-z | Read / Write
gfloat | rotation-x | Read / Write
gfloat | rotation-y | Read / Write
gfloat | rotation-z | Read / Write
gfloat | scale-x | Read / Write
gfloat | scale-y | Read / Write
gfloat | translation-x | Read / Write
gfloat | translation-y | Read / Write
gfloat | translation-z | Read / Write

## Types and Values

struct | GstGLTransformation

## Object Hierarchy

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

## Description

Transforms video on the GPU.

#### Examples

    1
    gst-launch-1.0 gltestsrc ! gltransformation rotation-z=45 ! glimagesink

A pipeline to rotate by 45 degrees

    1
    gst-launch-1.0 gltestsrc ! gltransformation translation-x=0.5 ! glimagesink

Translate the video by 0.5

    1
    gst-launch-1.0 gltestsrc ! gltransformation scale-y=0.5 scale-x=0.5 ! glimagesink

Resize the video by 0.5

    1
    gst-launch-1.0 gltestsrc ! gltransformation rotation-x=-45 ortho=True ! glimagesink

Rotate the video around the X-Axis by -45° with an orthographic projection

## Synopsis

### Element Information

plugin | opengl
author | Lubosz Sarnecki <lubosz@gmail.com> Matthew Waters <matthew@centricular.com>
class | Filter/Effect/Video

### Element Pads

name | sink
direction | sink
presence | always
details | video/x-raw(ANY), format=(string)RGBA, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], texture-target=(string)2D
| video/x-raw(memory:GLMemory), format=(string)RGBA, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], texture-target=(string)2D

name | src
direction | source
presence | always
details | video/x-raw(memory:GLMemory), format=(string)RGBA, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], texture-target=(string)2D
| video/x-raw(ANY), format=(string)RGBA, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], texture-target=(string)2D

## Functions

## Types and Values

### struct GstGLTransformation

    struct GstGLTransformation;

## Property Details

### The `“fov”` property

      “fov”                      gfloat

Field of view angle in degrees.

Flags: Read / Write

Allowed values: >= 0

Default value: 90

### The `“mvp-matrix”` property

      “mvp-matrix”               GrapheneMatrix *

The final Graphene 4x4 Matrix for transformation.

Flags: Read / Write

### The `“ortho”` property

      “ortho”                    gboolean

Use orthographic projection.

Flags: Read / Write

Default value: FALSE

### The `“pivot-x”` property

      “pivot-x”                  gfloat

Rotation pivot point X coordinate, where 0 is the center, -1 the left border, +1 the right border and <-1, >1 outside.

Flags: Read / Write

Default value: 0

### The `“pivot-y”` property

      “pivot-y”                  gfloat

Rotation pivot point X coordinate, where 0 is the center, -1 the left border, +1 the right border and <-1, >1 outside.

Flags: Read / Write

Default value: 0

### The `“pivot-z”` property

      “pivot-z”                  gfloat

Relevant for rotation in 3D space. You look into the negative Z axis direction.

Flags: Read / Write

Default value: 0

### The `“rotation-x”` property

      “rotation-x”               gfloat

Rotates the video around the X-Axis in degrees.

Flags: Read / Write

Default value: 0

### The `“rotation-y”` property

      “rotation-y”               gfloat

Rotates the video around the Y-Axis in degrees.

Flags: Read / Write

Default value: 0

### The `“rotation-z”` property

      “rotation-z”               gfloat

Rotates the video around the Z-Axis in degrees.

Flags: Read / Write

Default value: 0

### The `“scale-x”` property

      “scale-x”                  gfloat

Scale multiplier for the X-Axis.

Flags: Read / Write

Default value: 1

### The `“scale-y”` property

      “scale-y”                  gfloat

Scale multiplier for the Y-Axis.

Flags: Read / Write

Default value: 1

### The `“translation-x”` property

      “translation-x”            gfloat

Translates the video at the X-Axis, in universal [0-1] coordinate.

Flags: Read / Write

Default value: 0

### The `“translation-y”` property

      “translation-y”            gfloat

Translates the video at the Y-Axis, in universal [0-1] coordinate.

Flags: Read / Write

Default value: 0

### The `“translation-z”` property

      “translation-z”            gfloat

Translates the video at the Z-Axis, in universal [0-1] coordinate.

Flags: Read / Write

Default value: 0