summaryrefslogtreecommitdiffstats
path: root/ext/cairo/gsttextoverlay.h
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2004-12-16 05:32:07 +0000
committerDavid Schleef <ds@schleef.org>2004-12-16 05:32:07 +0000
commit0163a876c004fc0edd8ca64e9cf5cb72f854b274 (patch)
tree73b5933c6c70335e4b5037e8b6cc08b8e7dabcd3 /ext/cairo/gsttextoverlay.h
parent4c750ac9658a0aa08fd6e0a30e6bcb760683f301 (diff)
configure.ac: add audioresample and cairo plugins. Remove
Original commit message from CVS: * configure.ac: add audioresample and cairo plugins. Remove HAVE_MMX stuff, because it's not used. * ext/Makefile.am: same * ext/audioresample/Makefile.am: You are not ready for an audio resampling element based on audioresample. * ext/audioresample/gstaudioresample.c: * ext/audioresample/gstaudioresample.h: * ext/cairo/Makefile.am: You are not ready for overlay elements based on cairo. Don't look too closely, these elements kinda suck right now. * ext/cairo/gstcairo.c: new * ext/cairo/gsttextoverlay.c: new * ext/cairo/gsttextoverlay.h: new * ext/cairo/gsttimeoverlay.c: new * ext/cairo/gsttimeoverlay.h: new * gst-libs/gst/media-info/media-info-priv.h: fix compile problem with compilers that don't support variadic macros.
Diffstat (limited to 'ext/cairo/gsttextoverlay.h')
-rw-r--r--ext/cairo/gsttextoverlay.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/ext/cairo/gsttextoverlay.h b/ext/cairo/gsttextoverlay.h
new file mode 100644
index 00000000..ff539131
--- /dev/null
+++ b/ext/cairo/gsttextoverlay.h
@@ -0,0 +1,75 @@
+
+#ifndef __GST_TEXTOVERLAY_H__
+#define __GST_TEXTOVERLAY_H__
+
+#include <gst/gst.h>
+#include <cairo.h>
+
+G_BEGIN_DECLS
+
+#define GST_TYPE_TEXTOVERLAY (gst_textoverlay_get_type())
+#define GST_TEXTOVERLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
+ GST_TYPE_TEXTOVERLAY, GstTextOverlay))
+#define GST_TEXTOVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\
+ GST_TYPE_ULAW, GstTextOverlay))
+#define GST_TEXTOVERLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
+ GST_TYPE_TEXTOVERLAY, GstTextOverlayClass))
+#define GST_IS_TEXTOVERLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\
+ GST_TYPE_TEXTOVERLAY))
+#define GST_IS_TEXTOVERLAY_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),\
+ GST_TYPE_TEXTOVERLAY))
+
+typedef struct _GstTextOverlay GstTextOverlay;
+typedef struct _GstTextOverlayClass GstTextOverlayClass;
+
+typedef enum _GstTextOverlayVAlign GstTextOverlayVAlign;
+typedef enum _GstTextOverlayHAlign GstTextOverlayHAlign;
+
+enum _GstTextOverlayVAlign {
+ GST_TEXT_OVERLAY_VALIGN_BASELINE,
+ GST_TEXT_OVERLAY_VALIGN_BOTTOM,
+ GST_TEXT_OVERLAY_VALIGN_TOP
+};
+
+enum _GstTextOverlayHAlign {
+ GST_TEXT_OVERLAY_HALIGN_LEFT,
+ GST_TEXT_OVERLAY_HALIGN_CENTER,
+ GST_TEXT_OVERLAY_HALIGN_RIGHT
+};
+
+
+struct _GstTextOverlay {
+ GstElement element;
+
+ GstPad *video_sinkpad;
+ GstPad *text_sinkpad;
+ GstPad *srcpad;
+ gint width;
+ gint height;
+
+ GstTextOverlayVAlign valign;
+ GstTextOverlayHAlign halign;
+ gint x0;
+ gint y0;
+ gchar *default_text;
+
+ cairo_t *cr;
+ guchar *pixbuf;
+ int text_width;
+ int text_height;
+
+ GstBuffer *current_buffer;
+ GstBuffer *next_buffer;
+ gboolean need_render;
+
+};
+
+struct _GstTextOverlayClass {
+ GstElementClass parent_class;
+};
+
+GType gst_textoverlay_get_type(void) G_GNUC_CONST;
+
+G_END_DECLS
+
+#endif /* __GST_TEXTOVERLAY_H */