1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>textoverlay</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7 <link rel="home" href="index.html" title="GStreamer Base Plugins 0.10 Plugins Reference Manual">
8 <link rel="up" href="ch01.html" title="gst-plugins-base Elements">
9 <link rel="prev" href="gst-plugins-base-plugins-tcpserversink.html" title="tcpserversink">
10 <link rel="next" href="gst-plugins-base-plugins-textrender.html" title="textrender">
11 <meta name="generator" content="GTK-Doc V1.17 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17 <td><a accesskey="p" href="gst-plugins-base-plugins-tcpserversink.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GStreamer Base Plugins 0.10 Plugins Reference Manual</th>
21 <td><a accesskey="n" href="gst-plugins-base-plugins-textrender.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#gst-plugins-base-plugins-textoverlay.synopsis" class="shortcut">Top</a>
26 <a href="#gst-plugins-base-plugins-textoverlay.description" class="shortcut">Description</a>
28 <a href="#gst-plugins-base-plugins-textoverlay.object-hierarchy" class="shortcut">Object Hierarchy</a>
30 <a href="#gst-plugins-base-plugins-textoverlay.properties" class="shortcut">Properties</a>
33 <div class="refentry">
34 <a name="gst-plugins-base-plugins-textoverlay"></a><div class="titlepage"></div>
35 <div class="refnamediv"><table width="100%"><tr>
37 <h2><span class="refentrytitle"><a name="gst-plugins-base-plugins-textoverlay.top_of_page"></a>textoverlay</span></h2>
38 <p>textoverlay — Adds text strings on top of a video buffer</p>
40 <td valign="top" align="right"></td>
42 <div class="refsynopsisdiv">
43 <a name="gst-plugins-base-plugins-textoverlay.synopsis"></a><h2>Synopsis</h2>
44 <a name="GstTextOverlay"></a><pre class="synopsis">struct <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay-struct" title="struct GstTextOverlay">GstTextOverlay</a>;
45 enum <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlayVAlign" title="enum GstTextOverlayVAlign">GstTextOverlayVAlign</a>;
46 enum <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlayHAlign" title="enum GstTextOverlayHAlign">GstTextOverlayHAlign</a>;
47 enum <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlayWrapMode" title="enum GstTextOverlayWrapMode">GstTextOverlayWrapMode</a>;
50 <div class="refsect1">
51 <a name="gst-plugins-base-plugins-textoverlay.object-hierarchy"></a><h2>Object Hierarchy</h2>
52 <pre class="synopsis">
53 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
54 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstObject.html">GstObject</a>
55 +----<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html">GstElement</a>
57 +----<a class="link" href="gst-plugins-base-plugins-timeoverlay.html#GstTimeOverlay">GstTimeOverlay</a>
58 +----<a class="link" href="gst-plugins-base-plugins-clockoverlay.html#GstClockOverlay">GstClockOverlay</a>
61 <div class="refsect1">
62 <a name="gst-plugins-base-plugins-textoverlay.properties"></a><h2>Properties</h2>
63 <pre class="synopsis">
64 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--deltax" title='The "deltax" property'>deltax</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
65 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--deltay" title='The "deltay" property'>deltay</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
66 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--font-desc" title='The "font-desc" property'>font-desc</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Write
67 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--halign" title='The "halign" property'>halign</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Write
68 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--shaded-background" title='The "shaded-background" property'>shaded-background</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
69 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--text" title='The "text" property'>text</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write
70 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--valign" title='The "valign" property'>valign</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Write
71 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--wrap-mode" title='The "wrap-mode" property'>wrap-mode</a>" <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlayWrapMode" title="enum GstTextOverlayWrapMode"><span class="type">GstTextOverlayWrapMode</span></a> : Read / Write
72 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--xpad" title='The "xpad" property'>xpad</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
73 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--ypad" title='The "ypad" property'>ypad</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write
74 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--halignment" title='The "halignment" property'>halignment</a>" <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlayHAlign" title="enum GstTextOverlayHAlign"><span class="type">GstTextOverlayHAlign</span></a> : Read / Write
75 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--valignment" title='The "valignment" property'>valignment</a>" <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlayVAlign" title="enum GstTextOverlayVAlign"><span class="type">GstTextOverlayVAlign</span></a> : Read / Write
76 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--line-alignment" title='The "line-alignment" property'>line-alignment</a>" <span class="type">GstTextOverlayLineAlign</span> : Read / Write
77 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--silent" title='The "silent" property'>silent</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
78 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--wait-text" title='The "wait-text" property'>wait-text</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
79 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--auto-resize" title='The "auto-resize" property'>auto-resize</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
80 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--vertical-render" title='The "vertical-render" property'>vertical-render</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write
81 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--color" title='The "color" property'>color</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write
82 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--xpos" title='The "xpos" property'>xpos</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write
83 "<a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--ypos" title='The "ypos" property'>ypos</a>" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write
86 <div class="refsect1">
87 <a name="gst-plugins-base-plugins-textoverlay.description"></a><h2>Description</h2>
89 This plugin renders text on top of a video stream. This can be either
90 static text or text from buffers received on the text sink pad, e.g.
91 as produced by the subparse element. If the text sink pad is not linked,
92 the text set via the "text" property will be rendered. If the text sink
93 pad is linked, text will be rendered as it is received on that pad,
94 honouring and matching the buffer timestamps of both input streams.
97 The text can contain newline characters and text wrapping is enabled by
102 <div class="refsect2">
103 <a name="idp13316752"></a><h3>Example launch lines</h3>
104 <div class="informalexample">
105 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
108 <td class="listing_lines" align="right"><pre>1</pre></td>
109 <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch <span class="gtkdoc opt">-</span>v videotestsrc <span class="gtkdoc opt">!</span> textoverlay text<span class="gtkdoc opt">=</span><span class="string">"Room A"</span> valign<span class="gtkdoc opt">=</span>top halign<span class="gtkdoc opt">=</span>left <span class="gtkdoc opt">!</span> xvimagesink</pre></td>
114 Here is a simple pipeline that displays a static text in the top left
115 corner of the video picture
116 <div class="informalexample">
117 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
120 <td class="listing_lines" align="right"><pre>1</pre></td>
121 <td class="listing_code"><pre class="programlisting">gst<span class="gtkdoc opt">-</span>launch <span class="gtkdoc opt">-</span>v filesrc location<span class="gtkdoc opt">=</span>subtitles<span class="gtkdoc opt">.</span>srt <span class="gtkdoc opt">!</span> subparse <span class="gtkdoc opt">!</span> txt<span class="gtkdoc opt">.</span> videotestsrc <span class="gtkdoc opt">!</span> timeoverlay <span class="gtkdoc opt">!</span> textoverlay name<span class="gtkdoc opt">=</span>txt shaded<span class="gtkdoc opt">-</span>background<span class="gtkdoc opt">=</span>yes <span class="gtkdoc opt">!</span> xvimagesink</pre></td>
126 Here is another pipeline that displays subtitles from an .srt subtitle
127 file, centered at the bottom of the picture and with a rectangular shading
128 around the text in the background:
130 If you do not have such a subtitle file, create one looking like this
133 <div class="informalexample">
134 <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
137 <td class="listing_lines" align="right"><pre>1
150 <td class="listing_code"><pre class="programlisting"><span class="number">1</span>
151 <span class="number">00</span><span class="gtkdoc opt">:</span><span class="number">00</span><span class="gtkdoc opt">:</span><span class="number">03</span><span class="gtkdoc opt">,</span><span class="number">000</span> <span class="gtkdoc opt">--></span> <span class="number">00</span><span class="gtkdoc opt">:</span><span class="number">00</span><span class="gtkdoc opt">:</span><span class="number">05</span><span class="gtkdoc opt">,</span><span class="number">000</span>
152 Hello? <span class="gtkdoc opt">(</span><span class="number">3</span><span class="gtkdoc opt">-</span><span class="number">5</span>s<span class="gtkdoc opt">)</span>
154 <span class="number">2</span>
155 <span class="number">00</span><span class="gtkdoc opt">:</span><span class="number">00</span><span class="gtkdoc opt">:</span><span class="number">08</span><span class="gtkdoc opt">,</span><span class="number">000</span> <span class="gtkdoc opt">--></span> <span class="number">00</span><span class="gtkdoc opt">:</span><span class="number">00</span><span class="gtkdoc opt">:</span><span class="number">13</span><span class="gtkdoc opt">,</span><span class="number">000</span>
156 Yes<span class="gtkdoc opt">,</span> <span class="keyword">this</span> is a subtitle<span class="gtkdoc opt">.</span> Don<span class="string">'t</span>
157 <span class="string">you like it? (8-13s)</span>
158 <span class="string"></span>
159 <span class="string">3</span>
160 <span class="string">00:00:18,826 --> 00:01:02,886</span>
161 <span class="string">Uh? What are you talking about?</span>
162 <span class="string">I don'</span>t <span class="function">understand</span> <span class="gtkdoc opt">(</span><span class="number">18</span><span class="gtkdoc opt">-</span><span class="number">62</span>s<span class="gtkdoc opt">)</span></pre></td>
173 <div class="refsynopsisdiv">
175 <div class="refsect2">
176 <a name="idp6601408"></a><h3>Element Information</h3>
177 <div class="variablelist"><table border="0">
178 <col align="left" valign="top">
181 <td><p><span class="term">plugin</span></p></td>
183 <a class="link" href="gst-plugins-base-plugins-plugin-pango.html#plugin-pango">pango</a>
187 <td><p><span class="term">author</span></p></td>
188 <td>David Schleef <ds@schleef.org>, Zeeshan Ali <zeeshan.ali@nokia.com></td>
191 <td><p><span class="term">class</span></p></td>
192 <td>Filter/Editor/Video</td>
198 <div class="refsect2">
199 <a name="idp9587280"></a><h3>Element Pads</h3>
200 <div class="variablelist"><table border="0">
201 <col align="left" valign="top">
204 <td><p><span class="term">name</span></p></td>
208 <td><p><span class="term">direction</span></p></td>
212 <td><p><span class="term">presence</span></p></td>
216 <td><p><span class="term">details</span></p></td>
217 <td>text/x-pango-markup</td>
220 <td><p><span class="term"></span></p></td>
225 <div class="variablelist"><table border="0">
226 <col align="left" valign="top">
229 <td><p><span class="term">name</span></p></td>
233 <td><p><span class="term">direction</span></p></td>
237 <td><p><span class="term">presence</span></p></td>
241 <td><p><span class="term">details</span></p></td>
242 <td>video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
245 <td><p><span class="term"></span></p></td>
246 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)-16777216, green_mask=(int)16711680, blue_mask=(int)65280, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
249 <td><p><span class="term"></span></p></td>
250 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
253 <td><p><span class="term"></span></p></td>
254 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
257 <td><p><span class="term"></span></p></td>
258 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)32, endianness=(int)4321, red_mask=(int)-16777216, green_mask=(int)16711680, blue_mask=(int)65280, alpha_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
261 <td><p><span class="term"></span></p></td>
262 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)32, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, alpha_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
265 <td><p><span class="term"></span></p></td>
266 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)32, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, alpha_mask=(int)-16777216, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
269 <td><p><span class="term"></span></p></td>
270 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)32, endianness=(int)4321, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, alpha_mask=(int)-16777216, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
273 <td><p><span class="term"></span></p></td>
274 <td> video/x-raw-yuv, format=(fourcc){ AYUV, I420, UYVY, NV12, NV21 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
278 <div class="variablelist"><table border="0">
279 <col align="left" valign="top">
282 <td><p><span class="term">name</span></p></td>
286 <td><p><span class="term">direction</span></p></td>
290 <td><p><span class="term">presence</span></p></td>
294 <td><p><span class="term">details</span></p></td>
295 <td>video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
298 <td><p><span class="term"></span></p></td>
299 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)-16777216, green_mask=(int)16711680, blue_mask=(int)65280, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
302 <td><p><span class="term"></span></p></td>
303 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
306 <td><p><span class="term"></span></p></td>
307 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)24, endianness=(int)4321, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
310 <td><p><span class="term"></span></p></td>
311 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)32, endianness=(int)4321, red_mask=(int)-16777216, green_mask=(int)16711680, blue_mask=(int)65280, alpha_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
314 <td><p><span class="term"></span></p></td>
315 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)32, endianness=(int)4321, red_mask=(int)65280, green_mask=(int)16711680, blue_mask=(int)-16777216, alpha_mask=(int)255, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
318 <td><p><span class="term"></span></p></td>
319 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)32, endianness=(int)4321, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, alpha_mask=(int)-16777216, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
322 <td><p><span class="term"></span></p></td>
323 <td> video/x-raw-rgb, bpp=(int)32, depth=(int)32, endianness=(int)4321, red_mask=(int)255, green_mask=(int)65280, blue_mask=(int)16711680, alpha_mask=(int)-16777216, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
326 <td><p><span class="term"></span></p></td>
327 <td> video/x-raw-yuv, format=(fourcc){ AYUV, I420, UYVY, NV12, NV21 }, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ]</td>
336 <div class="refsect1">
337 <a name="gst-plugins-base-plugins-textoverlay.details"></a><h2>Details</h2>
338 <div class="refsect2">
339 <a name="GstTextOverlay-struct"></a><h3>struct GstTextOverlay</h3>
340 <pre class="programlisting">struct GstTextOverlay;</pre>
342 Opaque textoverlay object structure
346 <div class="refsect2">
347 <a name="GstTextOverlayVAlign"></a><h3>enum GstTextOverlayVAlign</h3>
348 <pre class="programlisting">typedef enum {
349 GST_TEXT_OVERLAY_VALIGN_BASELINE,
350 GST_TEXT_OVERLAY_VALIGN_BOTTOM,
351 GST_TEXT_OVERLAY_VALIGN_TOP,
352 GST_TEXT_OVERLAY_VALIGN_POS,
353 GST_TEXT_OVERLAY_VALIGN_CENTER
354 } GstTextOverlayVAlign;
357 Vertical alignment of the text.
359 <div class="variablelist"><table border="0">
360 <col align="left" valign="top">
363 <td><p><a name="GST-TEXT-OVERLAY-VALIGN-BASELINE:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_VALIGN_BASELINE</code></span></p></td>
364 <td>draw text on the baseline
368 <td><p><a name="GST-TEXT-OVERLAY-VALIGN-BOTTOM:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_VALIGN_BOTTOM</code></span></p></td>
369 <td>draw text on the bottom
373 <td><p><a name="GST-TEXT-OVERLAY-VALIGN-TOP:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_VALIGN_TOP</code></span></p></td>
378 <td><p><a name="GST-TEXT-OVERLAY-VALIGN-POS:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_VALIGN_POS</code></span></p></td>
379 <td>draw text according to the <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--ypos" title='The "ypos" property'><span class="type">"ypos"</span></a> property
383 <td><p><a name="GST-TEXT-OVERLAY-VALIGN-CENTER:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_VALIGN_CENTER</code></span></p></td>
384 <td>draw text vertically centered
391 <div class="refsect2">
392 <a name="GstTextOverlayHAlign"></a><h3>enum GstTextOverlayHAlign</h3>
393 <pre class="programlisting">typedef enum {
394 GST_TEXT_OVERLAY_HALIGN_LEFT,
395 GST_TEXT_OVERLAY_HALIGN_CENTER,
396 GST_TEXT_OVERLAY_HALIGN_RIGHT,
397 GST_TEXT_OVERLAY_HALIGN_UNUSED,
398 GST_TEXT_OVERLAY_HALIGN_POS
399 } GstTextOverlayHAlign;
402 Horizontal alignment of the text.
404 <div class="variablelist"><table border="0">
405 <col align="left" valign="top">
408 <td><p><a name="GST-TEXT-OVERLAY-HALIGN-LEFT:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_HALIGN_LEFT</code></span></p></td>
413 <td><p><a name="GST-TEXT-OVERLAY-HALIGN-CENTER:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_HALIGN_CENTER</code></span></p></td>
414 <td>align text center
418 <td><p><a name="GST-TEXT-OVERLAY-HALIGN-RIGHT:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_HALIGN_RIGHT</code></span></p></td>
423 <td><p><a name="GST-TEXT-OVERLAY-HALIGN-UNUSED:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_HALIGN_UNUSED</code></span></p></td>
428 <td><p><a name="GST-TEXT-OVERLAY-HALIGN-POS:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_HALIGN_POS</code></span></p></td>
429 <td>position text according to the <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlay--xpos" title='The "xpos" property'><span class="type">"xpos"</span></a> property
436 <div class="refsect2">
437 <a name="GstTextOverlayWrapMode"></a><h3>enum GstTextOverlayWrapMode</h3>
438 <pre class="programlisting">typedef enum {
439 GST_TEXT_OVERLAY_WRAP_MODE_NONE = -1,
440 GST_TEXT_OVERLAY_WRAP_MODE_WORD = PANGO_WRAP_WORD,
441 GST_TEXT_OVERLAY_WRAP_MODE_CHAR = PANGO_WRAP_CHAR,
442 GST_TEXT_OVERLAY_WRAP_MODE_WORD_CHAR = PANGO_WRAP_WORD_CHAR
443 } GstTextOverlayWrapMode;
446 Whether to wrap the text and if so how.
448 <div class="variablelist"><table border="0">
449 <col align="left" valign="top">
452 <td><p><a name="GST-TEXT-OVERLAY-WRAP-MODE-NONE:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_WRAP_MODE_NONE</code></span></p></td>
457 <td><p><a name="GST-TEXT-OVERLAY-WRAP-MODE-WORD:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_WRAP_MODE_WORD</code></span></p></td>
462 <td><p><a name="GST-TEXT-OVERLAY-WRAP-MODE-CHAR:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_WRAP_MODE_CHAR</code></span></p></td>
467 <td><p><a name="GST-TEXT-OVERLAY-WRAP-MODE-WORD-CHAR:CAPS"></a><span class="term"><code class="literal">GST_TEXT_OVERLAY_WRAP_MODE_WORD_CHAR</code></span></p></td>
468 <td>do word and char wrapping
475 <div class="refsect1">
476 <a name="gst-plugins-base-plugins-textoverlay.property-details"></a><h2>Property Details</h2>
477 <div class="refsect2">
478 <a name="GstTextOverlay--deltax"></a><h3>The <code class="literal">"deltax"</code> property</h3>
479 <pre class="programlisting"> "deltax" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
480 <p>Shift X position to the left or to the right. Unit is pixels.</p>
481 <p>Default value: 0</p>
484 <div class="refsect2">
485 <a name="GstTextOverlay--deltay"></a><h3>The <code class="literal">"deltay"</code> property</h3>
486 <pre class="programlisting"> "deltay" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
487 <p>Shift Y position up or down. Unit is pixels.</p>
488 <p>Default value: 0</p>
491 <div class="refsect2">
492 <a name="GstTextOverlay--font-desc"></a><h3>The <code class="literal">"font-desc"</code> property</h3>
493 <pre class="programlisting"> "font-desc" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Write</pre>
494 <p>Pango font description of font to be used for rendering. See documentation of pango_font_description_from_string for syntax.</p>
495 <p>Default value: ""</p>
498 <div class="refsect2">
499 <a name="GstTextOverlay--halign"></a><h3>The <code class="literal">"halign"</code> property</h3>
500 <pre class="programlisting"> "halign" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Write</pre>
501 <p>Horizontal alignment of the text (deprecated; use halignment).</p>
502 <p>Default value: "center"</p>
505 <div class="refsect2">
506 <a name="GstTextOverlay--shaded-background"></a><h3>The <code class="literal">"shaded-background"</code> property</h3>
507 <pre class="programlisting"> "shaded-background" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
508 <p>Whether to shade the background under the text area.</p>
509 <p>Default value: FALSE</p>
512 <div class="refsect2">
513 <a name="GstTextOverlay--text"></a><h3>The <code class="literal">"text"</code> property</h3>
514 <pre class="programlisting"> "text" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Read / Write</pre>
515 <p>Text to be display.</p>
516 <p>Default value: ""</p>
519 <div class="refsect2">
520 <a name="GstTextOverlay--valign"></a><h3>The <code class="literal">"valign"</code> property</h3>
521 <pre class="programlisting"> "valign" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>* : Write</pre>
522 <p>Vertical alignment of the text (deprecated; use valignment).</p>
523 <p>Default value: "baseline"</p>
526 <div class="refsect2">
527 <a name="GstTextOverlay--wrap-mode"></a><h3>The <code class="literal">"wrap-mode"</code> property</h3>
528 <pre class="programlisting"> "wrap-mode" <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlayWrapMode" title="enum GstTextOverlayWrapMode"><span class="type">GstTextOverlayWrapMode</span></a> : Read / Write</pre>
529 <p>Whether to wrap the text and if so how.</p>
530 <p>Default value: wordchar</p>
533 <div class="refsect2">
534 <a name="GstTextOverlay--xpad"></a><h3>The <code class="literal">"xpad"</code> property</h3>
535 <pre class="programlisting"> "xpad" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
536 <p>Horizontal paddding when using left/right alignment.</p>
537 <p>Allowed values: >= 0</p>
538 <p>Default value: 25</p>
541 <div class="refsect2">
542 <a name="GstTextOverlay--ypad"></a><h3>The <code class="literal">"ypad"</code> property</h3>
543 <pre class="programlisting"> "ypad" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> : Read / Write</pre>
544 <p>Vertical padding when using top/bottom alignment.</p>
545 <p>Allowed values: >= 0</p>
546 <p>Default value: 25</p>
549 <div class="refsect2">
550 <a name="GstTextOverlay--halignment"></a><h3>The <code class="literal">"halignment"</code> property</h3>
551 <pre class="programlisting"> "halignment" <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlayHAlign" title="enum GstTextOverlayHAlign"><span class="type">GstTextOverlayHAlign</span></a> : Read / Write</pre>
552 <p>Horizontal alignment of the text.</p>
553 <p>Default value: center</p>
556 <div class="refsect2">
557 <a name="GstTextOverlay--valignment"></a><h3>The <code class="literal">"valignment"</code> property</h3>
558 <pre class="programlisting"> "valignment" <a class="link" href="gst-plugins-base-plugins-textoverlay.html#GstTextOverlayVAlign" title="enum GstTextOverlayVAlign"><span class="type">GstTextOverlayVAlign</span></a> : Read / Write</pre>
559 <p>Vertical alignment of the text.</p>
560 <p>Default value: baseline</p>
563 <div class="refsect2">
564 <a name="GstTextOverlay--line-alignment"></a><h3>The <code class="literal">"line-alignment"</code> property</h3>
565 <pre class="programlisting"> "line-alignment" <span class="type">GstTextOverlayLineAlign</span> : Read / Write</pre>
567 Alignment of text lines relative to each other (for multi-line text)
569 <p>Default value: center</p>
570 <p class="since">Since 0.10.15</p>
573 <div class="refsect2">
574 <a name="GstTextOverlay--silent"></a><h3>The <code class="literal">"silent"</code> property</h3>
575 <pre class="programlisting"> "silent" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
577 If set, no text is rendered. Useful to switch off text rendering
578 temporarily without removing the textoverlay element from the pipeline.
580 <p>Default value: FALSE</p>
581 <p class="since">Since 0.10.15</p>
584 <div class="refsect2">
585 <a name="GstTextOverlay--wait-text"></a><h3>The <code class="literal">"wait-text"</code> property</h3>
586 <pre class="programlisting"> "wait-text" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
588 If set, the video will block until a subtitle is received on the text pad.
589 If video and subtitles are sent in sync, like from the same demuxer, this
590 property should be set.
592 <p>Default value: TRUE</p>
593 <p class="since">Since 0.10.20</p>
596 <div class="refsect2">
597 <a name="GstTextOverlay--auto-resize"></a><h3>The <code class="literal">"auto-resize"</code> property</h3>
598 <pre class="programlisting"> "auto-resize" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
599 <p>Automatically adjust font size to screen-size.</p>
600 <p>Default value: TRUE</p>
603 <div class="refsect2">
604 <a name="GstTextOverlay--vertical-render"></a><h3>The <code class="literal">"vertical-render"</code> property</h3>
605 <pre class="programlisting"> "vertical-render" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> : Read / Write</pre>
606 <p>Vertical Render.</p>
607 <p>Default value: FALSE</p>
610 <div class="refsect2">
611 <a name="GstTextOverlay--color"></a><h3>The <code class="literal">"color"</code> property</h3>
612 <pre class="programlisting"> "color" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> : Read / Write</pre>
614 Color of the rendered text.
616 <p>Default value: 4294967295</p>
617 <p class="since">Since 0.10.31</p>
620 <div class="refsect2">
621 <a name="GstTextOverlay--xpos"></a><h3>The <code class="literal">"xpos"</code> property</h3>
622 <pre class="programlisting"> "xpos" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write</pre>
624 Horizontal position of the rendered text when using positioned alignment.
626 <p>Allowed values: [0,1]</p>
627 <p>Default value: 0.5</p>
628 <p class="since">Since 0.10.31</p>
631 <div class="refsect2">
632 <a name="GstTextOverlay--ypos"></a><h3>The <code class="literal">"ypos"</code> property</h3>
633 <pre class="programlisting"> "ypos" <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> : Read / Write</pre>
635 Vertical position of the rendered text when using positioned alignment.
637 <p>Allowed values: [0,1]</p>
638 <p>Default value: 0.5</p>
639 <p class="since">Since 0.10.31</p>
642 <div class="refsect1">
643 <a name="gst-plugins-base-plugins-textoverlay.see-also"></a><h2>See Also</h2>
644 <a class="link" href="gst-plugins-base-plugins-textrender.html#GstTextRender"><span class="type">GstTextRender</span></a>, <a class="link" href="gst-plugins-base-plugins-clockoverlay.html#GstClockOverlay"><span class="type">GstClockOverlay</span></a>, <a class="link" href="gst-plugins-base-plugins-timeoverlay.html#GstTimeOverlay"><span class="type">GstTimeOverlay</span></a>, <span class="type">GstSubParse</span>
649 Generated by GTK-Doc V1.17</div>