# square

The square element distorts the center part of the image into a square.

## Example launch line

     gst-launch-1.0 -v videotestsrc ! square zoom=100 ! videoconvert ! autovideosink

## Hierarchy

    GObject
        ╰──GInitiallyUnowned
            ╰──GstObject
                ╰──GstElement
                    ╰──GstBaseTransform
                        ╰──GstVideoFilter
                            ╰──GstGeometricTransform
                                ╰──square

## Factory details

Authors: – Filippo Argiolas

Classification: – `Transform/Effect/Video`

Rank – none

Plugin – geometrictransform

Package – GStreamer Bad Plug-ins

## Pad Templates

### `sink`

    video/x-raw:
             format: { ARGB, BGR, BGRA, BGRx, RGB, RGBA, RGBx, AYUV, xBGR, xRGB, GRAY8, GRAY16_BE, GRAY16_LE }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – sink

Object type – GstPad

### `src`

    video/x-raw:
             format: { ARGB, BGR, BGRA, BGRx, RGB, RGBA, RGBx, AYUV, xBGR, xRGB, GRAY8, GRAY16_BE, GRAY16_LE }
              width: [ 1, 2147483647 ]
             height: [ 1, 2147483647 ]
          framerate: [ 0/1, 2147483647/1 ]

Presence – always

Direction – src

Object type – GstPad

## Properties

### height

    “height” gdouble

Height of the square, relative to the frame height

Flags : Read / Write

Default value : 0.5

### width

    “width” gdouble

Width of the square, relative to the frame width

Flags : Read / Write

Default value : 0.5

### zoom

    “zoom” gdouble

Zoom amount in the center region

Flags : Read / Write

Default value : 2

The results of the search are