videomark

videomark — Marks a video signal with a pattern

Synopsis




            GstVideoMark;

Object Hierarchy


  GObject
   +----GstObject
         +----GstElement
               +----GstBaseTransform
                     +----GstVideoFilter
                           +----GstVideoMark

Properties


  "enabled"              gboolean              : Read / Write / Construct
  "pattern-count"        gint                  : Read / Write / Construct
  "pattern-data"         gint                  : Read / Write / Construct
  "pattern-data-count"   gint                  : Read / Write / Construct
  "pattern-height"       gint                  : Read / Write / Construct
  "pattern-width"        gint                  : Read / Write / Construct
  "bottom-offset"        gint                  : Read / Write / Construct
  "left-offset"          gint                  : Read / Write / Construct

Description

This plugin produces GstVideoMark::pattern-count squares in the bottom left corner of the video frames. The squares have a width and height of respectively GstVideoMark:pattern-width and GstVideoMark:pattern-height. Even squares will be black and odd squares will be white.

After writing the pattern, GstVideoMark:pattern-data-count squares after the pattern squares are produced as the bitarray given in GstVideoMark:pattern-data. 1 bits will produce white squares and 0 bits will produce black squares.

The element can be enabled with the GstVideoMark:enabled property. It is mostly used together with the GstVideoDetect plugin.

Example launch line

|[ gst-launch videotestsrc ! videomark ! ximagesink ]| Add the default black/white squares at the bottom left of the video frames.

Last reviewed on 2007-06-01 (0.10.6)

Synopsis

Element Information

plugin videosignal
author Wim Taymans <wim@fluendo.com>
class Filter/Effect/Video

Element Pads

name sink
direction sink
presence always
details video/x-raw-yuv, format=(fourcc){ I420, YV12 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]
name src
direction source
presence always
details video/x-raw-yuv, format=(fourcc){ I420, YV12 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]

Details

GstVideoMark

typedef struct _GstVideoMark GstVideoMark;

Opaque datastructure.

Property Details

The "enabled" property

  "enabled"              gboolean              : Read / Write / Construct

Enable or disable the filter.

Default value: TRUE


The "pattern-count" property

  "pattern-count"        gint                  : Read / Write / Construct

The number of pattern markers.

Allowed values: >= 1

Default value: 4


The "pattern-data" property

  "pattern-data"         gint                  : Read / Write / Construct

The extra data pattern markers.

Allowed values: >= 0

Default value: 10


The "pattern-data-count" property

  "pattern-data-count"   gint                  : Read / Write / Construct

The number of extra data pattern markers.

Allowed values: >= 0

Default value: 5


The "pattern-height" property

  "pattern-height"       gint                  : Read / Write / Construct

The height of the pattern markers.

Allowed values: >= 1

Default value: 16


The "pattern-width" property

  "pattern-width"        gint                  : Read / Write / Construct

The width of the pattern markers.

Allowed values: >= 1

Default value: 4


The "bottom-offset" property

  "bottom-offset"        gint                  : Read / Write / Construct

The offset from the bottom border where the pattern starts.

Allowed values: >= 0

Default value: 0


The "left-offset" property

  "left-offset"          gint                  : Read / Write / Construct

The offset from the left border where the pattern starts.

Allowed values: >= 0

Default value: 0

See Also

GstVideoDetect