videoflip

videoflip — Flips and rotates video

Synopsis

                    GstVideoFlip;
enum                GstVideoFlipMethod;

Object Hierarchy

  GObject
   +----GstObject
         +----GstElement
               +----GstBaseTransform
                     +----GstVideoFilter
                           +----GstVideoFlip

Properties

  "method"                   GstVideoFlipMethod    : Read / Write

Description

Example launch line

Flips and rotates video.

gst-launch videotestsrc ! videoflip method=clockwise ! ffmpegcolorspace ! ximagesink

This pipeline flips the test image 90 degrees clockwise.

Last reviewed on 2006-03-03 (0.10.3)

Synopsis

Element Information

plugin

videoflip

author

David Schleef <ds@schleef.org>

class

Filter/Effect/Video

Element Pads

name

src

direction

source

presence

always

details

video/x-raw-yuv, format=(fourcc){ IYUV, I420, YV12 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

name

sink

direction

sink

presence

always

details

video/x-raw-yuv, format=(fourcc){ IYUV, I420, YV12 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

Details

GstVideoFlip

typedef struct _GstVideoFlip GstVideoFlip;

Opaque datastructure.


enum GstVideoFlipMethod

typedef enum {
  GST_VIDEO_FLIP_METHOD_IDENTITY,
  GST_VIDEO_FLIP_METHOD_90R,
  GST_VIDEO_FLIP_METHOD_180,
  GST_VIDEO_FLIP_METHOD_90L,
  GST_VIDEO_FLIP_METHOD_HORIZ,
  GST_VIDEO_FLIP_METHOD_VERT,
  GST_VIDEO_FLIP_METHOD_TRANS,
  GST_VIDEO_FLIP_METHOD_OTHER
} GstVideoFlipMethod;

The different flip methods.

GST_VIDEO_FLIP_METHOD_IDENTITY

Identity (no rotation)

GST_VIDEO_FLIP_METHOD_90R

Rotate clockwise 90 degrees

GST_VIDEO_FLIP_METHOD_180

Rotate 180 degrees

GST_VIDEO_FLIP_METHOD_90L

Rotate counter-clockwise 90 degrees

GST_VIDEO_FLIP_METHOD_HORIZ

Flip horizontally

GST_VIDEO_FLIP_METHOD_VERT

Flip vertically

GST_VIDEO_FLIP_METHOD_TRANS

Flip across upper left/lower right diagonal

GST_VIDEO_FLIP_METHOD_OTHER

Flip across upper right/lower left diagonal

Property Details

The "method" property

  "method"                   GstVideoFlipMethod    : Read / Write

method.

Default value: Rotate clockwise 90 degrees