mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
81e72d14b4
Original commit message from CVS: * docs/plugins/Makefile.am: * docs/plugins/gst-plugins-base-plugins-docs.sgml: * docs/plugins/gst-plugins-base-plugins-sections.txt: * ext/pango/gstclockoverlay.h: * ext/pango/gsttextoverlay.h: * ext/pango/gsttextrender.h: * ext/pango/gsttimeoverlay.h: * ext/theora/gsttheoradec.h: * ext/theora/gsttheoraenc.h: * ext/theora/theoradec.c: * ext/theora/theoraenc.c: * gst/audioconvert/gstaudioconvert.h: * gst/audiotestsrc/gstaudiotestsrc.h: * gst/ffmpegcolorspace/gstffmpegcolorspace.h: * gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_class_init): * gst/tcp/gstmultifdsink.h: Updated/added documentation. * ext/pango/gsttextoverlay.c: (gst_text_overlay_valign_get_type), (gst_text_overlay_halign_get_type), (gst_text_overlay_wrap_mode_get_type), (gst_text_overlay_base_init), (gst_text_overlay_class_init), (gst_text_overlay_init), (gst_text_overlay_set_property), (gst_text_overlay_get_property): Fix up properties to be enums instead of string to make bindings, introspection and automatic GUI creation possible. Add getters for the properties.
51 lines
1.6 KiB
C
51 lines
1.6 KiB
C
#ifndef __GST_TEXT_RENDER_H__
|
|
#define __GST_TEXT_RENDER_H__
|
|
|
|
#include <gst/gst.h>
|
|
#include <pango/pangoft2.h>
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define GST_TYPE_TEXT_RENDER (gst_text_render_get_type())
|
|
#define GST_TEXT_RENDER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),\
|
|
GST_TYPE_TEXT_RENDER, GstTextRender))
|
|
#define GST_TEXT_RENDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass),\
|
|
GST_TYPE_ULAW, GstTextRender))
|
|
#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),\
|
|
GST_TYPE_TEXT_RENDER))
|
|
#define GST_IS_TEXT_RENDER_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),\
|
|
GST_TYPE_TEXT_RENDER))
|
|
|
|
typedef struct _GstTextRender GstTextRender;
|
|
typedef struct _GstTextRenderClass GstTextRenderClass;
|
|
|
|
/**
|
|
* GstTextRender:
|
|
*
|
|
* Opaque textrender data structure.
|
|
*/
|
|
struct _GstTextRender {
|
|
GstElement element;
|
|
|
|
GstPad *sinkpad, *srcpad;
|
|
gint width;
|
|
gint height;
|
|
PangoLayout *layout;
|
|
FT_Bitmap bitmap;
|
|
gint bitmap_buffer_size;
|
|
gint baseline_y;
|
|
};
|
|
|
|
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 */
|