blob: 06f747e37081c9536092ce1e9c15b0a01921a911 [file] [log] [blame]
Sebastian Drögeaa6ed842016-09-01 12:09:11 +03001<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>gltestsrc: GStreamer Bad Plugins 1.0 Plugins Reference Manual</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="index.html" title="GStreamer Bad Plugins 1.0 Plugins Reference Manual">
8<link rel="up" href="ch01.html" title="gst-plugins-bad Elements">
9<link rel="prev" href="gst-plugins-bad-plugins-glstereosplit.html" title="glstereosplit">
10<link rel="next" href="gst-plugins-bad-plugins-gltransformation.html" title="gltransformation">
11<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13</head>
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="5"><tr valign="middle">
16<td width="100%" align="left" class="shortcuts">
17<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18 <a href="#gst-plugins-bad-plugins-gltestsrc.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
19 <a href="#gst-plugins-bad-plugins-gltestsrc.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_properties">  <span class="dim">|</span> 
20 <a href="#gst-plugins-bad-plugins-gltestsrc.properties" class="shortcut">Properties</a></span>
21</td>
22<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
23<td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
24<td><a accesskey="p" href="gst-plugins-bad-plugins-glstereosplit.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
25<td><a accesskey="n" href="gst-plugins-bad-plugins-gltransformation.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26</tr></table>
27<div class="refentry">
28<a name="gst-plugins-bad-plugins-gltestsrc"></a><div class="titlepage"></div>
29<div class="refnamediv"><table width="100%"><tr>
30<td valign="top">
31<h2><span class="refentrytitle"><a name="gst-plugins-bad-plugins-gltestsrc.top_of_page"></a>gltestsrc</span></h2>
32<p>gltestsrc</p>
33</td>
34<td class="gallery_image" valign="top" align="right"></td>
35</tr></table></div>
36<div class="refsect1">
37<a name="gst-plugins-bad-plugins-gltestsrc.properties"></a><h2>Properties</h2>
38<div class="informaltable"><table class="informaltable" border="0">
39<colgroup>
40<col width="150px" class="properties_type">
41<col width="300px" class="properties_name">
42<col width="200px" class="properties_flags">
43</colgroup>
44<tbody>
45<tr>
46<td class="property_type"><a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
47<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-gltestsrc.html#GstGLTestSrc--is-live" title="The “is-live” property">is-live</a></td>
48<td class="property_flags">Read / Write</td>
49</tr>
50<tr>
51<td class="property_type"><a class="link" href="gst-plugins-bad-plugins-gltestsrc.html#GstGLTestSrcPattern" title="enum GstGLTestSrcPattern"><span class="type">GstGLTestSrcPattern</span></a></td>
52<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-gltestsrc.html#GstGLTestSrc--pattern" title="The “pattern” property">pattern</a></td>
53<td class="property_flags">Read / Write</td>
54</tr>
55<tr>
56<td class="property_type"><a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gint64"><span class="type">gint64</span></a></td>
57<td class="property_name"><a class="link" href="gst-plugins-bad-plugins-gltestsrc.html#GstGLTestSrc--timestamp-offset" title="The “timestamp-offset” property">timestamp-offset</a></td>
58<td class="property_flags">Read / Write</td>
59</tr>
60</tbody>
61</table></div>
62</div>
63<a name="GstGLTestSrc"></a><div class="refsect1">
64<a name="gst-plugins-bad-plugins-gltestsrc.other"></a><h2>Types and Values</h2>
65<div class="informaltable"><table class="informaltable" width="100%" border="0">
66<colgroup>
67<col width="150px" class="name">
68<col class="description">
69</colgroup>
70<tbody>
71<tr>
72<td class="datatype_keyword"> </td>
73<td class="function_name"><a class="link" href="gst-plugins-bad-plugins-gltestsrc.html#GstGLTestSrc-struct" title="GstGLTestSrc">GstGLTestSrc</a></td>
74</tr>
75<tr>
76<td class="datatype_keyword">enum</td>
77<td class="function_name"><a class="link" href="gst-plugins-bad-plugins-gltestsrc.html#GstGLTestSrcPattern" title="enum GstGLTestSrcPattern">GstGLTestSrcPattern</a></td>
78</tr>
79</tbody>
80</table></div>
81</div>
82<div class="refsect1">
83<a name="gst-plugins-bad-plugins-gltestsrc.object-hierarchy"></a><h2>Object Hierarchy</h2>
84<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobjectgobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
85 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobjectgobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
86 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0GstObject.html#GstObject-struct">GstObject</a>
87 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0GstElement.html#GstElement-struct">GstElement</a>
88 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0GstBaseSrc.html#GstBaseSrc-struct">GstBaseSrc</a>
89 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-libs-1.0GstPushSrc.html#GstPushSrc-struct">GstPushSrc</a>
90 <span class="lineart">╰──</span> GstGLTestSrc
91</pre>
92</div>
93<div class="refsect1">
94<a name="gst-plugins-bad-plugins-gltestsrc.description"></a><h2>Description</h2>
95<div class="refsect2">
96<a name="id-1.2.82.7.2"></a><h3>Example launch line</h3>
97<p>
98The gltestsrc element is used to produce test video texture.
99The video test produced can be controlled with the "pattern"
100property.
101</p>
102<p>
103</p>
104<pre class="programlisting">
105gst-launch-1.0 -v gltestsrc pattern=smpte ! glimagesink
106</pre>
107<p>
108Shows original SMPTE color bars in a window.
109</p>
110</div>
111<div class="refsynopsisdiv">
112<h2>Synopsis</h2>
113<div class="refsect2">
114<a name="id-1.2.82.7.3.1"></a><h3>Element Information</h3>
115<div class="variablelist"><table border="0" class="variablelist">
116<colgroup>
117<col align="left" valign="top">
118<col>
119</colgroup>
120<tbody>
121<tr>
122<td><p><span class="term">plugin</span></p></td>
123<td>
124 <a class="link" href="gst-plugins-bad-plugins-plugin-opengl.html#plugin-opengl">opengl</a>
125 </td>
126</tr>
127<tr>
128<td><p><span class="term">author</span></p></td>
129<td>David A. Schleef &lt;ds@schleef.org&gt;</td>
130</tr>
131<tr>
132<td><p><span class="term">class</span></p></td>
133<td>Source/Video</td>
134</tr>
135</tbody>
136</table></div>
137</div>
138<hr>
139<div class="refsect2">
140<a name="id-1.2.82.7.3.2"></a><h3>Element Pads</h3>
141<div class="variablelist"><table border="0" class="variablelist">
142<colgroup>
143<col align="left" valign="top">
144<col>
145</colgroup>
146<tbody>
147<tr>
148<td><p><span class="term">name</span></p></td>
149<td>src</td>
150</tr>
151<tr>
152<td><p><span class="term">direction</span></p></td>
153<td>source</td>
154</tr>
155<tr>
156<td><p><span class="term">presence</span></p></td>
157<td>always</td>
158</tr>
159<tr>
160<td><p><span class="term">details</span></p></td>
161<td>video/x-raw(memory:GLMemory), format=(string)RGBA, width=(int)[ 1, 2147483647 ], height=(int)[ 1, 2147483647 ], framerate=(fraction)[ 0/1, 2147483647/1 ], texture-target=(string)2D</td>
162</tr>
163</tbody>
164</table></div>
165</div>
166</div>
167</div>
168<div class="refsect1">
169<a name="gst-plugins-bad-plugins-gltestsrc.functions_details"></a><h2>Functions</h2>
170<p></p>
171</div>
172<div class="refsect1">
173<a name="gst-plugins-bad-plugins-gltestsrc.other_details"></a><h2>Types and Values</h2>
174<div class="refsect2">
175<a name="GstGLTestSrc-struct"></a><h3>GstGLTestSrc</h3>
176<pre class="programlisting">typedef struct _GstGLTestSrc GstGLTestSrc;</pre>
177<p>Opaque data structure.</p>
178</div>
179<hr>
180<div class="refsect2">
181<a name="GstGLTestSrcPattern"></a><h3>enum GstGLTestSrcPattern</h3>
182<p>The test pattern to produce.</p>
183<div class="refsect3">
184<a name="GstGLTestSrcPattern.members"></a><h4>Members</h4>
185<div class="informaltable"><table class="informaltable" width="100%" border="0">
186<colgroup>
187<col width="300px" class="enum_members_name">
188<col class="enum_members_description">
189<col width="200px" class="enum_members_annotations">
190</colgroup>
191<tbody>
192<tr>
193<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-SMPTE:CAPS"></a>GST_GL_TEST_SRC_SMPTE</p></td>
194<td class="enum_member_description">
195<p>A standard SMPTE test pattern</p>
196</td>
197<td class="enum_member_annotations"> </td>
198</tr>
199<tr>
200<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-SNOW:CAPS"></a>GST_GL_TEST_SRC_SNOW</p></td>
201<td class="enum_member_description">
202<p>Random noise</p>
203</td>
204<td class="enum_member_annotations"> </td>
205</tr>
206<tr>
207<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-BLACK:CAPS"></a>GST_GL_TEST_SRC_BLACK</p></td>
208<td class="enum_member_description">
209<p>A black image</p>
210</td>
211<td class="enum_member_annotations"> </td>
212</tr>
213<tr>
214<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-WHITE:CAPS"></a>GST_GL_TEST_SRC_WHITE</p></td>
215<td class="enum_member_description">
216<p>A white image</p>
217</td>
218<td class="enum_member_annotations"> </td>
219</tr>
220<tr>
221<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-RED:CAPS"></a>GST_GL_TEST_SRC_RED</p></td>
222<td class="enum_member_description">
223<p>A red image</p>
224</td>
225<td class="enum_member_annotations"> </td>
226</tr>
227<tr>
228<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-GREEN:CAPS"></a>GST_GL_TEST_SRC_GREEN</p></td>
229<td class="enum_member_description">
230<p>A green image</p>
231</td>
232<td class="enum_member_annotations"> </td>
233</tr>
234<tr>
235<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-BLUE:CAPS"></a>GST_GL_TEST_SRC_BLUE</p></td>
236<td class="enum_member_description">
237<p>A blue image</p>
238</td>
239<td class="enum_member_annotations"> </td>
240</tr>
241<tr>
242<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-CHECKERS1:CAPS"></a>GST_GL_TEST_SRC_CHECKERS1</p></td>
243<td class="enum_member_description">
244<p>Checkers pattern (1px)</p>
245</td>
246<td class="enum_member_annotations"> </td>
247</tr>
248<tr>
249<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-CHECKERS2:CAPS"></a>GST_GL_TEST_SRC_CHECKERS2</p></td>
250<td class="enum_member_description">
251<p>Checkers pattern (2px)</p>
252</td>
253<td class="enum_member_annotations"> </td>
254</tr>
255<tr>
256<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-CHECKERS4:CAPS"></a>GST_GL_TEST_SRC_CHECKERS4</p></td>
257<td class="enum_member_description">
258<p>Checkers pattern (4px)</p>
259</td>
260<td class="enum_member_annotations"> </td>
261</tr>
262<tr>
263<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-CHECKERS8:CAPS"></a>GST_GL_TEST_SRC_CHECKERS8</p></td>
264<td class="enum_member_description">
265<p>Checkers pattern (8px)</p>
266</td>
267<td class="enum_member_annotations"> </td>
268</tr>
269<tr>
270<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-CIRCULAR:CAPS"></a>GST_GL_TEST_SRC_CIRCULAR</p></td>
271<td class="enum_member_description">
272<p>Circular pattern</p>
273</td>
274<td class="enum_member_annotations"> </td>
275</tr>
276<tr>
277<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-BLINK:CAPS"></a>GST_GL_TEST_SRC_BLINK</p></td>
278<td class="enum_member_description">
279<p>Alternate between black and white</p>
280</td>
281<td class="enum_member_annotations"> </td>
282</tr>
283<tr>
284<td class="enum_member_name"><p><a name="GST-GL-TEST-SRC-MANDELBROT:CAPS"></a>GST_GL_TEST_SRC_MANDELBROT</p></td>
285<td> </td>
286<td> </td>
287</tr>
288</tbody>
289</table></div>
290</div>
291</div>
292</div>
293<div class="refsect1">
294<a name="gst-plugins-bad-plugins-gltestsrc.property-details"></a><h2>Property Details</h2>
295<div class="refsect2">
296<a name="GstGLTestSrc--is-live"></a><h3>The <code class="literal">“is-live”</code> property</h3>
297<pre class="programlisting"> “is-live” <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
298<p>Whether to act as a live source.</p>
299<p>Flags: Read / Write</p>
300<p>Default value: FALSE</p>
301</div>
302<hr>
303<div class="refsect2">
304<a name="GstGLTestSrc--pattern"></a><h3>The <code class="literal">“pattern”</code> property</h3>
305<pre class="programlisting"> “pattern” <a class="link" href="gst-plugins-bad-plugins-gltestsrc.html#GstGLTestSrcPattern" title="enum GstGLTestSrcPattern"><span class="type">GstGLTestSrcPattern</span></a></pre>
306<p>Type of test pattern to generate.</p>
307<p>Flags: Read / Write</p>
308<p>Default value: SMPTE 100% color bars</p>
309</div>
310<hr>
311<div class="refsect2">
312<a name="GstGLTestSrc--timestamp-offset"></a><h3>The <code class="literal">“timestamp-offset”</code> property</h3>
313<pre class="programlisting"> “timestamp-offset” <a href="/usr/share/gtk-doc/html/glibglib-Basic-Types.html#gint64"><span class="type">gint64</span></a></pre>
314<p>An offset added to timestamps set on buffers (in ns).</p>
315<p>Flags: Read / Write</p>
316<p>Default value: 0</p>
317</div>
318</div>
319</div>
320<div class="footer">
321<hr>Generated by GTK-Doc V1.25</div>
322</body>
323</html>