summaryrefslogtreecommitdiff
path: root/clutter-gst/clutter-gst-types.h
diff options
context:
space:
mode:
Diffstat (limited to 'clutter-gst/clutter-gst-types.h')
-rw-r--r--clutter-gst/clutter-gst-types.h61
1 files changed, 44 insertions, 17 deletions
diff --git a/clutter-gst/clutter-gst-types.h b/clutter-gst/clutter-gst-types.h
index 7124d90..b8c7c3e 100644
--- a/clutter-gst/clutter-gst-types.h
+++ b/clutter-gst/clutter-gst-types.h
@@ -36,9 +36,13 @@
#define CLUTTER_GST_TYPE_FRAME (clutter_gst_frame_get_type ())
#define CLUTTER_GST_TYPE_BOX (clutter_gst_box_get_type ())
+#define CLUTTER_GST_TYPE_OVERLAY (clutter_gst_overlay_get_type ())
+#define CLUTTER_GST_TYPE_OVERLAYS (clutter_gst_overlays_get_type ())
typedef struct _ClutterGstBox ClutterGstBox;
typedef struct _ClutterGstFrame ClutterGstFrame;
+typedef struct _ClutterGstOverlay ClutterGstOverlay;
+typedef struct _ClutterGstOverlays ClutterGstOverlays;
typedef struct _ClutterGstVideoResolution ClutterGstVideoResolution;
/**
@@ -72,6 +76,25 @@ typedef enum _ClutterGstBufferingMode
} ClutterGstBufferingMode;
/**
+ * ClutterGstBox:
+ * @x1: X coordinate of the top left corner
+ * @y1: Y coordinate of the top left corner
+ * @x2: X coordinate of the bottom right corner
+ * @y2: Y coordinate of the bottom right corner
+ *
+ * Bounding box of an area in a video texture or actor's allocation.
+ * Coordinates are usually expressed in the [0, 1] interval.
+ */
+struct _ClutterGstBox
+{
+ gfloat x1;
+ gfloat y1;
+
+ gfloat x2;
+ gfloat y2;
+};
+
+/**
* ClutterGstVideoResolution:
* @width: the width, in pixels
* @height: the height, in pixels
@@ -90,7 +113,7 @@ struct _ClutterGstVideoResolution
/**
* ClutterGstFrame:
* @resolution: a #ClutterGstVideoResolution
- * @pipeline: a #CoglHandle to the pipeline to paint a frame
+ * @pipeline: a #CoglPipeline to paint a frame
*
* Represents a frame outputted by the #ClutterGstVideoSink.
*/
@@ -100,29 +123,33 @@ struct _ClutterGstFrame
CoglPipeline *pipeline;
};
-
/**
- * ClutterGstBox:
- * @x1: X coordinate of the top left corner
- * @y1: Y coordinate of the top left corner
- * @x2: X coordinate of the bottom right corner
- * @y2: Y coordinate of the bottom right corner
+ * ClutterGstOverlay:
+ * @position: a #ClutterGstBox representing the position of the
+ * overlay within a #ClutterGstFrame.
+ * @pipeline: a #CoglPipeline to paint an overlay
*
- * Bounding box of an area in a video texture or actor's allocation.
- * Coordinates are usually expressed in the [0, 1] interval.
+ * Represents a video overlay outputted by the #ClutterGstVideoSink.
*/
-struct _ClutterGstBox
+struct _ClutterGstOverlay
{
- gfloat x1;
- gfloat y1;
-
- gfloat x2;
- gfloat y2;
+ ClutterGstBox position;
+ CoglPipeline *pipeline;
};
+/**
+ * ClutterGstOverlays:
+ * @overlays: an array of #ClutterGstOverlay
+ */
+struct _ClutterGstOverlays
+{
+ GPtrArray *overlays;
+};
-GType clutter_gst_frame_get_type (void) G_GNUC_CONST;
-GType clutter_gst_box_get_type (void) G_GNUC_CONST;
+GType clutter_gst_frame_get_type (void) G_GNUC_CONST;
+GType clutter_gst_box_get_type (void) G_GNUC_CONST;
+GType clutter_gst_overlay_get_type (void) G_GNUC_CONST;
+GType clutter_gst_overlays_get_type (void) G_GNUC_CONST;
gfloat clutter_gst_box_get_width (const ClutterGstBox *box);
gfloat clutter_gst_box_get_height (const ClutterGstBox *box);