ext/pango/gsttextrender.*: Add missing files.
Original commit message from CVS:
* ext/pango/gsttextrender.c: (gst_text_render_base_init),
(gst_text_render_class_init), (resize_bitmap),
(gst_text_render_render_text), (gst_text_render_setcaps),
(gst_text_render_fixate_caps), (gst_text_renderer_bitmap_to_ayuv),
(gst_text_render_chain), (gst_text_render_finalize),
(gst_text_render_init), (gst_text_render_set_property):
* ext/pango/gsttextrender.h:
Add missing files.
2005-11-30 14:53:29 +00:00
|
|
|
#ifndef __GST_TEXT_RENDER_H__
|
|
|
|
#define __GST_TEXT_RENDER_H__
|
|
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include <pango/pangoft2.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2006-04-08 18:09:17 +00:00
|
|
|
#define GST_TYPE_TEXT_RENDER (gst_text_render_get_type())
|
|
|
|
#define GST_TEXT_RENDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
|
ext/pango/gsttextrender.*: Add missing files.
Original commit message from CVS:
* ext/pango/gsttextrender.c: (gst_text_render_base_init),
(gst_text_render_class_init), (resize_bitmap),
(gst_text_render_render_text), (gst_text_render_setcaps),
(gst_text_render_fixate_caps), (gst_text_renderer_bitmap_to_ayuv),
(gst_text_render_chain), (gst_text_render_finalize),
(gst_text_render_init), (gst_text_render_set_property):
* ext/pango/gsttextrender.h:
Add missing files.
2005-11-30 14:53:29 +00:00
|
|
|
GST_TYPE_TEXT_RENDER, GstTextRender))
|
2006-04-08 18:09:17 +00:00
|
|
|
#define GST_TEXT_RENDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\
|
ext/pango/gsttextrender.*: Add missing files.
Original commit message from CVS:
* ext/pango/gsttextrender.c: (gst_text_render_base_init),
(gst_text_render_class_init), (resize_bitmap),
(gst_text_render_render_text), (gst_text_render_setcaps),
(gst_text_render_fixate_caps), (gst_text_renderer_bitmap_to_ayuv),
(gst_text_render_chain), (gst_text_render_finalize),
(gst_text_render_init), (gst_text_render_set_property):
* ext/pango/gsttextrender.h:
Add missing files.
2005-11-30 14:53:29 +00:00
|
|
|
GST_TYPE_TEXT_RENDER, GstTextRenderClass))
|
2006-04-08 18:09:17 +00:00
|
|
|
#define GST_TEXT_RENDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
|
|
|
|
GST_TYPE_TEXT_RENDER, GstTextRenderClass))
|
|
|
|
#define GST_IS_TEXT_RENDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\
|
ext/pango/gsttextrender.*: Add missing files.
Original commit message from CVS:
* ext/pango/gsttextrender.c: (gst_text_render_base_init),
(gst_text_render_class_init), (resize_bitmap),
(gst_text_render_render_text), (gst_text_render_setcaps),
(gst_text_render_fixate_caps), (gst_text_renderer_bitmap_to_ayuv),
(gst_text_render_chain), (gst_text_render_finalize),
(gst_text_render_init), (gst_text_render_set_property):
* ext/pango/gsttextrender.h:
Add missing files.
2005-11-30 14:53:29 +00:00
|
|
|
GST_TYPE_TEXT_RENDER))
|
2006-04-08 18:09:17 +00:00
|
|
|
#define GST_IS_TEXT_RENDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\
|
ext/pango/gsttextrender.*: Add missing files.
Original commit message from CVS:
* ext/pango/gsttextrender.c: (gst_text_render_base_init),
(gst_text_render_class_init), (resize_bitmap),
(gst_text_render_render_text), (gst_text_render_setcaps),
(gst_text_render_fixate_caps), (gst_text_renderer_bitmap_to_ayuv),
(gst_text_render_chain), (gst_text_render_finalize),
(gst_text_render_init), (gst_text_render_set_property):
* ext/pango/gsttextrender.h:
Add missing files.
2005-11-30 14:53:29 +00:00
|
|
|
GST_TYPE_TEXT_RENDER))
|
|
|
|
|
|
|
|
typedef struct _GstTextRender GstTextRender;
|
|
|
|
typedef struct _GstTextRenderClass GstTextRenderClass;
|
|
|
|
|
2009-05-07 14:48:08 +00:00
|
|
|
/**
|
|
|
|
* GstTextRenderVAlign:
|
|
|
|
* @GST_TEXT_RENDER_VALIGN_BASELINE: draw text on the baseline
|
|
|
|
* @GST_TEXT_RENDER_VALIGN_BOTTOM: draw text on the bottom
|
|
|
|
* @GST_TEXT_RENDER_VALIGN_TOP: draw test on top
|
|
|
|
*
|
|
|
|
* Vertical alignment of the text.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_TEXT_RENDER_VALIGN_BASELINE,
|
|
|
|
GST_TEXT_RENDER_VALIGN_BOTTOM,
|
|
|
|
GST_TEXT_RENDER_VALIGN_TOP
|
|
|
|
} GstTextRenderVAlign;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstTextRenderHAlign:
|
|
|
|
* @GST_TEXT_RENDER_HALIGN_LEFT: align text left
|
|
|
|
* @GST_TEXT_RENDER_HALIGN_CENTER: align text center
|
|
|
|
* @GST_TEXT_RENDER_HALIGN_RIGHT: align text right
|
|
|
|
*
|
|
|
|
* Horizontal alignment of the text.
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_TEXT_RENDER_HALIGN_LEFT,
|
|
|
|
GST_TEXT_RENDER_HALIGN_CENTER,
|
|
|
|
GST_TEXT_RENDER_HALIGN_RIGHT
|
|
|
|
} GstTextRenderHAlign;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* GstTextRenderLineAlign:
|
|
|
|
* @GST_TEXT_RENDER_LINE_ALIGN_LEFT: lines are left-aligned
|
|
|
|
* @GST_TEXT_RENDER_LINE_ALIGN_CENTER: lines are center-aligned
|
|
|
|
* @GST_TEXT_RENDER_LINE_ALIGN_RIGHT: lines are right-aligned
|
|
|
|
*
|
|
|
|
* Alignment of text lines relative to each other
|
|
|
|
*/
|
|
|
|
typedef enum {
|
|
|
|
GST_TEXT_RENDER_LINE_ALIGN_LEFT = PANGO_ALIGN_LEFT,
|
|
|
|
GST_TEXT_RENDER_LINE_ALIGN_CENTER = PANGO_ALIGN_CENTER,
|
|
|
|
GST_TEXT_RENDER_LINE_ALIGN_RIGHT = PANGO_ALIGN_RIGHT
|
|
|
|
} GstTextRenderLineAlign;
|
|
|
|
|
2006-03-01 16:24:37 +00:00
|
|
|
/**
|
|
|
|
* GstTextRender:
|
|
|
|
*
|
|
|
|
* Opaque textrender data structure.
|
|
|
|
*/
|
ext/pango/gsttextrender.*: Add missing files.
Original commit message from CVS:
* ext/pango/gsttextrender.c: (gst_text_render_base_init),
(gst_text_render_class_init), (resize_bitmap),
(gst_text_render_render_text), (gst_text_render_setcaps),
(gst_text_render_fixate_caps), (gst_text_renderer_bitmap_to_ayuv),
(gst_text_render_chain), (gst_text_render_finalize),
(gst_text_render_init), (gst_text_render_set_property):
* ext/pango/gsttextrender.h:
Add missing files.
2005-11-30 14:53:29 +00:00
|
|
|
struct _GstTextRender {
|
|
|
|
GstElement element;
|
|
|
|
|
|
|
|
GstPad *sinkpad, *srcpad;
|
|
|
|
gint width;
|
|
|
|
gint height;
|
|
|
|
PangoLayout *layout;
|
|
|
|
FT_Bitmap bitmap;
|
|
|
|
gint bitmap_buffer_size;
|
|
|
|
gint baseline_y;
|
2009-05-07 14:59:32 +00:00
|
|
|
gboolean use_ARGB;
|
2009-05-07 14:48:08 +00:00
|
|
|
|
|
|
|
GstTextRenderVAlign valign;
|
|
|
|
GstTextRenderHAlign halign;
|
|
|
|
GstTextRenderLineAlign line_align;
|
|
|
|
|
2009-05-07 14:59:32 +00:00
|
|
|
gint xpad;
|
2009-05-07 14:48:08 +00:00
|
|
|
gint ypad;
|
ext/pango/gsttextrender.*: Add missing files.
Original commit message from CVS:
* ext/pango/gsttextrender.c: (gst_text_render_base_init),
(gst_text_render_class_init), (resize_bitmap),
(gst_text_render_render_text), (gst_text_render_setcaps),
(gst_text_render_fixate_caps), (gst_text_renderer_bitmap_to_ayuv),
(gst_text_render_chain), (gst_text_render_finalize),
(gst_text_render_init), (gst_text_render_set_property):
* ext/pango/gsttextrender.h:
Add missing files.
2005-11-30 14:53:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct _GstTextRenderClass {
|
|
|
|
GstElementClass parent_class;
|
|
|
|
|
|
|
|
PangoContext *pango_context;
|
|
|
|
};
|
|
|
|
|
|
|
|
GType gst_text_render_get_type(void) G_GNUC_CONST;
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GST_TEXT_RENDER_H */
|