gloverlay

gloverlay

Synopsis

struct              GstGLOverlay;

Properties

  "location"                 gchar*                : Read / Write
  "proportion"               gint                  : Read / Write
  "xpos"                     gint                  : Read / Write
  "ypos"                     gint                  : Read / Write
  "angle-png"                gint                  : Read / Write
  "angle-video"              gint                  : Read / Write
  "proportion-png"           gint                  : Read / Write
  "proportion-video"         gint                  : Read / Write
  "rotate-png"               gint                  : Read / Write
  "rotate-video"             gint                  : Read / Write
  "video-top"                gboolean              : Read / Write
  "xpos-png"                 gint                  : Read / Write
  "xpos-video"               gint                  : Read / Write
  "ypos-png"                 gint                  : Read / Write
  "ypos-video"               gint                  : Read / Write
  "ratio-video"              gint                  : Read / Write

Description

Overlay GL video texture with a PNG image

Examples

gst-launch  videotestsrc ! "video/x-raw-rgb" ! glupload ! gloverlay location=imagefile ! glimagesink
FBO (Frame Buffer Object) is required.

Details

struct GstGLOverlay

struct GstGLOverlay {
  GstGLFilter filter;
  gchar *location;
  gboolean pbuf_has_changed;
  gint8 pos_x_png;
  gint8 pos_y_png;
  guint8 size_png;
  gint8 pos_x_video;
  gint8 pos_y_video;
  guint8 size_video;
  gboolean video_top;
  guint8 rotate_png;
  guint8 rotate_video;
  gint8 angle_png;
  gint8 angle_video;
  guchar *pixbuf;
  gint width, height;
  GLuint pbuftexture;
  GLint internalFormat;
  GLenum format;
  gint type_file;               // 0 = No; 1 = PNG and 2 = JPEG
  gfloat width_window;
  gfloat height_window;
  gfloat posx;
  gfloat posy;
  gfloat ratio_window;
  gfloat ratio_texture;
  gfloat ratio_x;
  gfloat ratio_y;
  gfloat ratio_video;

/*  gboolean stretch; */
};

Property Details

The "location" property

  "location"                 gchar*                : Read / Write

Location of the image.

Default value: NULL


The "proportion" property

  "proportion"               gint                  : Read / Write

Relative size of iverlay image, in percents.

Allowed values: [0,100]

Default value: 0


The "xpos" property

  "xpos"                     gint                  : Read / Write

X position of overlay image in percents.

Allowed values: [0,100]

Default value: 0


The "ypos" property

  "ypos"                     gint                  : Read / Write

Y position of overlay image in percents.

Allowed values: [0,100]

Default value: 0


The "angle-png" property

  "angle-png"                gint                  : Read / Write

choose angle in axis to choosen between -90 and 90.

Allowed values: [-90,90]

Default value: 0


The "angle-video" property

  "angle-video"              gint                  : Read / Write

choose angle in axis to choosen between -90 and 90.

Allowed values: [-90,90]

Default value: 0


The "proportion-png" property

  "proportion-png"           gint                  : Read / Write

Relative size of iverlay image, in percents.

Allowed values: [0,100]

Default value: 0


The "proportion-video" property

  "proportion-video"         gint                  : Read / Write

Relative size of iverlay video, in percents.

Allowed values: [0,100]

Default value: 0


The "rotate-png" property

  "rotate-png"               gint                  : Read / Write

choose rotation axis for the moment only Y axis is implemented.

Allowed values: [0,3]

Default value: 0


The "rotate-video" property

  "rotate-video"             gint                  : Read / Write

choose rotation axis for the moment only Y axis is implemented.

Allowed values: [0,3]

Default value: 0


The "video-top" property

  "video-top"                gboolean              : Read / Write

Video is over png image.

Default value: FALSE


The "xpos-png" property

  "xpos-png"                 gint                  : Read / Write

X position of overlay image in percents.

Allowed values: [0,100]

Default value: 0


The "xpos-video" property

  "xpos-video"               gint                  : Read / Write

X position of overlay video in percents.

Allowed values: [0,100]

Default value: 0


The "ypos-png" property

  "ypos-png"                 gint                  : Read / Write

Y position of overlay image in percents.

Allowed values: [0,100]

Default value: 0


The "ypos-video" property

  "ypos-video"               gint                  : Read / Write

Y position of overlay video in percents.

Allowed values: [0,100]

Default value: 0


The "ratio-video" property

  "ratio-video"              gint                  : Read / Write

Allowed values: [0,3]

Default value: 0