1 #ifndef __GST_TEXT_RENDER_H__ |
|
2 #define __GST_TEXT_RENDER_H__ |
|
3 |
|
4 #include <gst/gst.h> |
|
5 #include <pango/pangoft2.h> |
|
6 |
|
7 G_BEGIN_DECLS |
|
8 |
|
9 #define GST_TYPE_TEXT_RENDER (gst_text_render_get_type()) |
|
10 #define GST_TEXT_RENDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\ |
|
11 GST_TYPE_TEXT_RENDER, GstTextRender)) |
|
12 #define GST_TEXT_RENDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\ |
|
13 GST_TYPE_TEXT_RENDER, GstTextRenderClass)) |
|
14 #define GST_TEXT_RENDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\ |
|
15 GST_TYPE_TEXT_RENDER, GstTextRenderClass)) |
|
16 #define GST_IS_TEXT_RENDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),\ |
|
17 GST_TYPE_TEXT_RENDER)) |
|
18 #define GST_IS_TEXT_RENDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),\ |
|
19 GST_TYPE_TEXT_RENDER)) |
|
20 |
|
21 typedef struct _GstTextRender GstTextRender; |
|
22 typedef struct _GstTextRenderClass GstTextRenderClass; |
|
23 |
|
24 /** |
|
25 * GstTextRender: |
|
26 * |
|
27 * Opaque textrender data structure. |
|
28 */ |
|
29 struct _GstTextRender { |
|
30 GstElement element; |
|
31 |
|
32 GstPad *sinkpad, *srcpad; |
|
33 gint width; |
|
34 gint height; |
|
35 PangoLayout *layout; |
|
36 FT_Bitmap bitmap; |
|
37 gint bitmap_buffer_size; |
|
38 gint baseline_y; |
|
39 }; |
|
40 |
|
41 struct _GstTextRenderClass { |
|
42 GstElementClass parent_class; |
|
43 |
|
44 PangoContext *pango_context; |
|
45 }; |
|
46 |
|
47 GType gst_text_render_get_type(void) G_GNUC_CONST; |
|
48 |
|
49 G_END_DECLS |
|
50 |
|
51 #endif /* __GST_TEXT_RENDER_H */ |
|