textwrite

textwrite — Performs text writing to the video

Synopsis

                    GstStretch;
                    GstTemplateMatch;
                    Gsttextwrite;

Properties

  "colorB"                   gint                  : Read / Write
  "colorG"                   gint                  : Read / Write
  "colorR"                   gint                  : Read / Write
  "height"                   gdouble               : Read / Write
  "text"                     gchar*                : Read / Write
  "thickness"                gint                  : Read / Write
  "width"                    gdouble               : Read / Write
  "xpos"                     gint                  : Read / Write
  "ypos"                     gint                  : Read / Write

Description

FIXME:Describe textwrite here.

Example launch line

1
gst-launch -v -m fakesrc ! textwrite ! fakesink silent=TRUE

Details

GstStretch

typedef struct _GstStretch GstStretch;


GstTemplateMatch

typedef struct {
  GstElement element;

  GstPad *sinkpad, *srcpad;

  gint method;
  gboolean display;

  gchar *template;

  IplImage *cvImage, *cvGray, *cvTemplateImage, *cvDistImage;
} GstTemplateMatch;


Gsttextwrite

typedef struct {
  GstElement element;

  GstPad *sinkpad, *srcpad;

 
  IplImage *cvImage;
  CvMemStorage *cvStorage;
  CvFont font;  

  gint xpos;
  gint ypos;
  gint thickness;
  gint colorR,colorG,colorB;
  gdouble height;
  gdouble width;
  gchar *textbuf;
} Gsttextwrite;

Property Details

The "colorB" property

  "colorB"                   gint                  : Read / Write

Sets the color -B.

Allowed values: [0,255]

Default value: 0


The "colorG" property

  "colorG"                   gint                  : Read / Write

Sets the color -G.

Allowed values: [0,255]

Default value: 0


The "colorR" property

  "colorR"                   gint                  : Read / Write

Sets the color -R.

Allowed values: [0,255]

Default value: 0


The "height" property

  "height"                   gdouble               : Read / Write

Sets the height of fonts.

Allowed values: [1,5]

Default value: 1


The "text" property

  "text"                     gchar*                : Read / Write

Text to be display.

Default value: ""


The "thickness" property

  "thickness"                gint                  : Read / Write

Sets the Thickness of Font.

Allowed values: >= 0

Default value: 2


The "width" property

  "width"                    gdouble               : Read / Write

Sets the width of fonts.

Allowed values: [1,5]

Default value: 1


The "xpos" property

  "xpos"                     gint                  : Read / Write

Sets the Horizontal position.

Allowed values: >= 0

Default value: 50


The "ypos" property

  "ypos"                     gint                  : Read / Write

Sets the Vertical position.

Allowed values: >= 0

Default value: 50