33
30
<h2><span class="refentrytitle"><a name="libs-GstVaapiWindowGLX.top_of_page"></a>GstVaapiWindowGLX</span></h2>
34
31
<p>GstVaapiWindowGLX — VA/GLX window abstraction</p>
36
<td valign="top" align="right"></td>
33
<td class="gallery_image" valign="top" align="right"></td>
37
34
</tr></table></div>
38
<div class="refsynopsisdiv">
39
<a name="libs-GstVaapiWindowGLX.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis"> <a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX">GstVaapiWindowGLX</a>;
41
<a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="returnvalue">GstVaapiWindow</span></a> * <a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-new" title="gst_vaapi_window_glx_new ()">gst_vaapi_window_glx_new</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiDisplay.html#GstVaapiDisplay" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a> *display</code></em>,
42
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> width</code></em>,
43
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> height</code></em>);
44
<a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="returnvalue">GstVaapiWindow</span></a> * <a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-new-with-xid" title="gst_vaapi_window_glx_new_with_xid ()">gst_vaapi_window_glx_new_with_xid</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiDisplay.html#GstVaapiDisplay" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a> *display</code></em>,
45
<em class="parameter"><code><span class="type">Window</span> xid</code></em>);
46
<span class="returnvalue">GLXContext</span> <a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-get-context" title="gst_vaapi_window_glx_get_context ()">gst_vaapi_window_glx_get_context</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>);
47
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-set-context" title="gst_vaapi_window_glx_set_context ()">gst_vaapi_window_glx_set_context</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>,
48
<em class="parameter"><code><span class="type">GLXContext</span> ctx</code></em>);
49
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-make-current" title="gst_vaapi_window_glx_make_current ()">gst_vaapi_window_glx_make_current</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>);
50
<span class="returnvalue">void</span> <a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-swap-buffers" title="gst_vaapi_window_glx_swap_buffers ()">gst_vaapi_window_glx_swap_buffers</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>);
51
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-put-texture" title="gst_vaapi_window_glx_put_texture ()">gst_vaapi_window_glx_put_texture</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>,
52
<em class="parameter"><code><a class="link" href="libs-GstVaapiTexture.html#GstVaapiTexture" title="GstVaapiTexture"><span class="type">GstVaapiTexture</span></a> *texture</code></em>,
53
<em class="parameter"><code>const <a class="link" href="libs-Basic-data-structures.html#GstVaapiRectangle" title="struct GstVaapiRectangle"><span class="type">GstVaapiRectangle</span></a> *src_rect</code></em>,
54
<em class="parameter"><code>const <a class="link" href="libs-Basic-data-structures.html#GstVaapiRectangle" title="struct GstVaapiRectangle"><span class="type">GstVaapiRectangle</span></a> *dst_rect</code></em>);
35
<div class="refsect1">
36
<a name="libs-GstVaapiWindowGLX.functions"></a><h2>Functions</h2>
37
<div class="informaltable"><table width="100%" border="0">
39
<col width="150px" class="functions_return">
40
<col class="functions_name">
44
<td class="function_type">
45
<a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="returnvalue">GstVaapiWindow</span></a> *
47
<td class="function_name">
48
<a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-new" title="gst_vaapi_window_glx_new ()">gst_vaapi_window_glx_new</a> <span class="c_punctuation">()</span>
52
<td class="function_type">
53
<a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="returnvalue">GstVaapiWindow</span></a> *
55
<td class="function_name">
56
<a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-new-with-xid" title="gst_vaapi_window_glx_new_with_xid ()">gst_vaapi_window_glx_new_with_xid</a> <span class="c_punctuation">()</span>
60
<td class="function_type">
61
<span class="returnvalue">GLXContext</span>
63
<td class="function_name">
64
<a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-get-context" title="gst_vaapi_window_glx_get_context ()">gst_vaapi_window_glx_get_context</a> <span class="c_punctuation">()</span>
68
<td class="function_type">
69
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
71
<td class="function_name">
72
<a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-set-context" title="gst_vaapi_window_glx_set_context ()">gst_vaapi_window_glx_set_context</a> <span class="c_punctuation">()</span>
76
<td class="function_type">
77
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
79
<td class="function_name">
80
<a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-make-current" title="gst_vaapi_window_glx_make_current ()">gst_vaapi_window_glx_make_current</a> <span class="c_punctuation">()</span>
84
<td class="function_type">
85
<span class="returnvalue">void</span>
87
<td class="function_name">
88
<a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-swap-buffers" title="gst_vaapi_window_glx_swap_buffers ()">gst_vaapi_window_glx_swap_buffers</a> <span class="c_punctuation">()</span>
92
<td class="function_type">
93
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
95
<td class="function_name">
96
<a class="link" href="libs-GstVaapiWindowGLX.html#gst-vaapi-window-glx-put-texture" title="gst_vaapi_window_glx_put_texture ()">gst_vaapi_window_glx_put_texture</a> <span class="c_punctuation">()</span>
102
<div class="refsect1">
103
<a name="libs-GstVaapiWindowGLX.other"></a><h2>Types and Values</h2>
104
<div class="informaltable"><table width="100%" border="0">
106
<col width="150px" class="name">
107
<col class="description">
110
<td class="datatype_keyword"> </td>
111
<td class="function_name"><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX">GstVaapiWindowGLX</a></td>
115
<div class="refsect1">
116
<a name="libs-GstVaapiWindowGLX.object-hierarchy"></a><h2>Object Hierarchy</h2>
57
120
<div class="refsect1">
58
121
<a name="libs-GstVaapiWindowGLX.description"></a><h2>Description</h2>
60
123
<div class="refsect1">
61
<a name="libs-GstVaapiWindowGLX.details"></a><h2>Details</h2>
62
<div class="refsect2">
63
<a name="GstVaapiWindowGLX"></a><h3>GstVaapiWindowGLX</h3>
64
<pre class="programlisting">typedef struct _GstVaapiWindowGLX GstVaapiWindowGLX;</pre>
66
An X11 <span class="type">Window</span> suitable for GLX rendering.
70
<div class="refsect2">
71
<a name="gst-vaapi-window-glx-new"></a><h3>gst_vaapi_window_glx_new ()</h3>
72
<pre class="programlisting"><a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="returnvalue">GstVaapiWindow</span></a> * gst_vaapi_window_glx_new (<em class="parameter"><code><a class="link" href="libs-GstVaapiDisplay.html#GstVaapiDisplay" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a> *display</code></em>,
73
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> width</code></em>,
74
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> height</code></em>);</pre>
76
Creates a window with the specified <em class="parameter"><code>width</code></em> and <em class="parameter"><code>height</code></em>. The window
77
will be attached to the <em class="parameter"><code>display</code></em> and remains invisible to the user
78
until <a class="link" href="libs-GstVaapiWindow.html#gst-vaapi-window-show" title="gst_vaapi_window_show ()"><code class="function">gst_vaapi_window_show()</code></a> is called.
80
<div class="variablelist"><table border="0" class="variablelist">
124
<a name="libs-GstVaapiWindowGLX.functions_details"></a><h2>Functions</h2>
125
<div class="refsect2">
126
<a name="gst-vaapi-window-glx-new"></a><h3>gst_vaapi_window_glx_new ()</h3>
127
<pre class="programlisting"><a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="returnvalue">GstVaapiWindow</span></a> *
128
gst_vaapi_window_glx_new (<em class="parameter"><code><a class="link" href="libs-GstVaapiDisplay.html#GstVaapiDisplay" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a> *display</code></em>,
129
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> width</code></em>,
130
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> height</code></em>);</pre>
131
<p>Creates a window with the specified <em class="parameter"><code>width</code></em>
132
and <em class="parameter"><code>height</code></em>
134
will be attached to the <em class="parameter"><code>display</code></em>
135
and remains invisible to the user
136
until <a class="link" href="libs-GstVaapiWindow.html#gst-vaapi-window-show" title="gst_vaapi_window_show ()"><code class="function">gst_vaapi_window_show()</code></a> is called.</p>
137
<div class="refsect3">
138
<a name="id-1.2.9.7.2.5"></a><h4>Parameters</h4>
139
<div class="informaltable"><table width="100%" border="0">
82
<col align="left" valign="top">
141
<col width="150px" class="parameters_name">
142
<col class="parameters_description">
143
<col width="200px" class="parameters_annotations">
87
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
88
<td>a <a class="link" href="libs-GstVaapiDisplay.html#GstVaapiDisplay" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a>
92
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
93
<td>the requested window width, in pixels</td>
96
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
97
<td>the requested windo height, in pixels</td>
100
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
101
<td>the newly allocated <a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="type">GstVaapiWindow</span></a> object</td>
147
<td class="parameter_name"><p>display</p></td>
148
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiDisplay.html#GstVaapiDisplay" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a></p></td>
149
<td class="parameter_annotations"> </td>
152
<td class="parameter_name"><p>width</p></td>
153
<td class="parameter_description"><p>the requested window width, in pixels</p></td>
154
<td class="parameter_annotations"> </td>
157
<td class="parameter_name"><p>height</p></td>
158
<td class="parameter_description"><p>the requested windo height, in pixels</p></td>
159
<td class="parameter_annotations"> </td>
164
<div class="refsect3">
165
<a name="id-1.2.9.7.2.6"></a><h4>Returns</h4>
166
<p> the newly allocated <a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="type">GstVaapiWindow</span></a> object</p>
107
171
<div class="refsect2">
108
<a name="gst-vaapi-window-glx-new-with-xid"></a><h3>gst_vaapi_window_glx_new_with_xid ()</h3>
109
<pre class="programlisting"><a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="returnvalue">GstVaapiWindow</span></a> * gst_vaapi_window_glx_new_with_xid (<em class="parameter"><code><a class="link" href="libs-GstVaapiDisplay.html#GstVaapiDisplay" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a> *display</code></em>,
110
<em class="parameter"><code><span class="type">Window</span> xid</code></em>);</pre>
112
Creates a <a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="type">GstVaapiWindow</span></a> using the X11 <span class="type">Window</span> <em class="parameter"><code>xid</code></em>. The caller
172
<a name="gst-vaapi-window-glx-new-with-xid"></a><h3>gst_vaapi_window_glx_new_with_xid ()</h3>
173
<pre class="programlisting"><a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="returnvalue">GstVaapiWindow</span></a> *
174
gst_vaapi_window_glx_new_with_xid (<em class="parameter"><code><a class="link" href="libs-GstVaapiDisplay.html#GstVaapiDisplay" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a> *display</code></em>,
175
<em class="parameter"><code><span class="type">Window</span> xid</code></em>);</pre>
176
<p>Creates a <a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="type">GstVaapiWindow</span></a> using the X11 <span class="type">Window</span> <em class="parameter"><code>xid</code></em>
113
178
still owns the window and must call <code class="function">XDestroyWindow()</code> when all
114
179
<a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="type">GstVaapiWindow</span></a> references are released. Doing so too early can
115
yield undefined behaviour.
117
<div class="variablelist"><table border="0" class="variablelist">
119
<col align="left" valign="top">
124
<td><p><span class="term"><em class="parameter"><code>display</code></em> :</span></p></td>
125
<td>a <a class="link" href="libs-GstVaapiDisplay.html#GstVaapiDisplay" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a>
129
<td><p><span class="term"><em class="parameter"><code>xid</code></em> :</span></p></td>
130
<td>an X11 <span class="type">Window</span> id</td>
133
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
134
<td>the newly allocated <a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="type">GstVaapiWindow</span></a> object</td>
140
<div class="refsect2">
141
<a name="gst-vaapi-window-glx-get-context"></a><h3>gst_vaapi_window_glx_get_context ()</h3>
142
<pre class="programlisting"><span class="returnvalue">GLXContext</span> gst_vaapi_window_glx_get_context (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>);</pre>
144
Returns the <span class="type">GLXContext</span> bound to the <em class="parameter"><code>window</code></em>.
146
<div class="variablelist"><table border="0" class="variablelist">
148
<col align="left" valign="top">
153
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
154
<td>a <a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a>
158
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
159
<td>the <span class="type">GLXContext</span> bound to the <em class="parameter"><code>window</code></em>
166
<div class="refsect2">
167
<a name="gst-vaapi-window-glx-set-context"></a><h3>gst_vaapi_window_glx_set_context ()</h3>
168
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_vaapi_window_glx_set_context (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>,
169
<em class="parameter"><code><span class="type">GLXContext</span> ctx</code></em>);</pre>
171
Binds GLX context <em class="parameter"><code>ctx</code></em> to <em class="parameter"><code>window</code></em>. If <em class="parameter"><code>ctx</code></em> is non <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the caller
180
yield undefined behaviour.</p>
181
<div class="refsect3">
182
<a name="id-1.2.9.7.3.5"></a><h4>Parameters</h4>
183
<div class="informaltable"><table width="100%" border="0">
185
<col width="150px" class="parameters_name">
186
<col class="parameters_description">
187
<col width="200px" class="parameters_annotations">
191
<td class="parameter_name"><p>display</p></td>
192
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiDisplay.html#GstVaapiDisplay" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a></p></td>
193
<td class="parameter_annotations"> </td>
196
<td class="parameter_name"><p>xid</p></td>
197
<td class="parameter_description"><p>an X11 <span class="type">Window</span> id</p></td>
198
<td class="parameter_annotations"> </td>
203
<div class="refsect3">
204
<a name="id-1.2.9.7.3.6"></a><h4>Returns</h4>
205
<p> the newly allocated <a class="link" href="libs-GstVaapiWindow.html#GstVaapiWindow" title="GstVaapiWindow"><span class="type">GstVaapiWindow</span></a> object</p>
210
<div class="refsect2">
211
<a name="gst-vaapi-window-glx-get-context"></a><h3>gst_vaapi_window_glx_get_context ()</h3>
212
<pre class="programlisting"><span class="returnvalue">GLXContext</span>
213
gst_vaapi_window_glx_get_context (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>);</pre>
214
<p>Returns the <span class="type">GLXContext</span> bound to the <em class="parameter"><code>window</code></em>
216
<div class="refsect3">
217
<a name="id-1.2.9.7.4.5"></a><h4>Parameters</h4>
218
<div class="informaltable"><table width="100%" border="0">
220
<col width="150px" class="parameters_name">
221
<col class="parameters_description">
222
<col width="200px" class="parameters_annotations">
225
<td class="parameter_name"><p>window</p></td>
226
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a></p></td>
227
<td class="parameter_annotations"> </td>
231
<div class="refsect3">
232
<a name="id-1.2.9.7.4.6"></a><h4>Returns</h4>
233
<p> the <span class="type">GLXContext</span> bound to the <em class="parameter"><code>window</code></em>
239
<div class="refsect2">
240
<a name="gst-vaapi-window-glx-set-context"></a><h3>gst_vaapi_window_glx_set_context ()</h3>
241
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
242
gst_vaapi_window_glx_set_context (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>,
243
<em class="parameter"><code><span class="type">GLXContext</span> ctx</code></em>);</pre>
244
<p>Binds GLX context <em class="parameter"><code>ctx</code></em>
245
to <em class="parameter"><code>window</code></em>
246
. If <em class="parameter"><code>ctx</code></em>
247
is non <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the caller
172
248
is responsible to making sure it has compatible visual with that of
173
the underlying X window. If <em class="parameter"><code>ctx</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a new context is created
174
and the <em class="parameter"><code>window</code></em> owns it.
176
<div class="variablelist"><table border="0" class="variablelist">
249
the underlying X window. If <em class="parameter"><code>ctx</code></em>
250
is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, a new context is created
251
and the <em class="parameter"><code>window</code></em>
253
<div class="refsect3">
254
<a name="id-1.2.9.7.5.5"></a><h4>Parameters</h4>
255
<div class="informaltable"><table width="100%" border="0">
178
<col align="left" valign="top">
257
<col width="150px" class="parameters_name">
258
<col class="parameters_description">
259
<col width="200px" class="parameters_annotations">
183
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
184
<td>a <a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a>
188
<td><p><span class="term"><em class="parameter"><code>ctx</code></em> :</span></p></td>
189
<td>a GLX context</td>
192
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
194
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</td>
263
<td class="parameter_name"><p>window</p></td>
264
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a></p></td>
265
<td class="parameter_annotations"> </td>
268
<td class="parameter_name"><p>ctx</p></td>
269
<td class="parameter_description"><p>a GLX context</p></td>
270
<td class="parameter_annotations"> </td>
275
<div class="refsect3">
276
<a name="id-1.2.9.7.5.6"></a><h4>Returns</h4>
277
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</p>
200
282
<div class="refsect2">
201
<a name="gst-vaapi-window-glx-make-current"></a><h3>gst_vaapi_window_glx_make_current ()</h3>
202
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_vaapi_window_glx_make_current (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>);</pre>
204
Makes the <em class="parameter"><code>window</code></em> GLX context the current GLX rendering context of
283
<a name="gst-vaapi-window-glx-make-current"></a><h3>gst_vaapi_window_glx_make_current ()</h3>
284
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
285
gst_vaapi_window_glx_make_current (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>);</pre>
286
<p>Makes the <em class="parameter"><code>window</code></em>
287
GLX context the current GLX rendering context of
205
288
the calling thread, replacing the previously current context if
208
<div class="variablelist"><table border="0" class="variablelist">
210
<col align="left" valign="top">
215
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
216
<td>a <a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a>
220
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
222
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</td>
228
<div class="refsect2">
229
<a name="gst-vaapi-window-glx-swap-buffers"></a><h3>gst_vaapi_window_glx_swap_buffers ()</h3>
230
<pre class="programlisting"><span class="returnvalue">void</span> gst_vaapi_window_glx_swap_buffers (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>);</pre>
232
Promotes the contents of the back buffer of <em class="parameter"><code>window</code></em> to become the
233
contents of the front buffer of <em class="parameter"><code>window</code></em>. This simply is wrapper
234
around <code class="function">glXSwapBuffers()</code>.
236
<div class="variablelist"><table border="0" class="variablelist">
238
<col align="left" valign="top">
242
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
243
<td>a <a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a>
249
<div class="refsect2">
250
<a name="gst-vaapi-window-glx-put-texture"></a><h3>gst_vaapi_window_glx_put_texture ()</h3>
251
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_vaapi_window_glx_put_texture (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>,
252
<em class="parameter"><code><a class="link" href="libs-GstVaapiTexture.html#GstVaapiTexture" title="GstVaapiTexture"><span class="type">GstVaapiTexture</span></a> *texture</code></em>,
253
<em class="parameter"><code>const <a class="link" href="libs-Basic-data-structures.html#GstVaapiRectangle" title="struct GstVaapiRectangle"><span class="type">GstVaapiRectangle</span></a> *src_rect</code></em>,
254
<em class="parameter"><code>const <a class="link" href="libs-Basic-data-structures.html#GstVaapiRectangle" title="struct GstVaapiRectangle"><span class="type">GstVaapiRectangle</span></a> *dst_rect</code></em>);</pre>
256
Renders the <em class="parameter"><code>texture</code></em> region specified by <em class="parameter"><code>src_rect</code></em> into the <em class="parameter"><code>window</code></em>
257
region specified by <em class="parameter"><code>dst_rect</code></em>.
260
NOTE: only GL_TEXTURE_2D textures are supported at this time.
262
<div class="variablelist"><table border="0" class="variablelist">
264
<col align="left" valign="top">
269
<td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
270
<td>a <a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a>
274
<td><p><span class="term"><em class="parameter"><code>texture</code></em> :</span></p></td>
275
<td>a <a class="link" href="libs-GstVaapiTexture.html#GstVaapiTexture" title="GstVaapiTexture"><span class="type">GstVaapiTexture</span></a>
279
<td><p><span class="term"><em class="parameter"><code>src_rect</code></em> :</span></p></td>
280
<td>the sub-rectangle of the source texture to
281
extract and process. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the entire texture will be used.</td>
284
<td><p><span class="term"><em class="parameter"><code>dst_rect</code></em> :</span></p></td>
285
<td>the sub-rectangle of the destination
290
<div class="refsect3">
291
<a name="id-1.2.9.7.6.5"></a><h4>Parameters</h4>
292
<div class="informaltable"><table width="100%" border="0">
294
<col width="150px" class="parameters_name">
295
<col class="parameters_description">
296
<col width="200px" class="parameters_annotations">
299
<td class="parameter_name"><p>window</p></td>
300
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a></p></td>
301
<td class="parameter_annotations"> </td>
305
<div class="refsect3">
306
<a name="id-1.2.9.7.6.6"></a><h4>Returns</h4>
307
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</p>
312
<div class="refsect2">
313
<a name="gst-vaapi-window-glx-swap-buffers"></a><h3>gst_vaapi_window_glx_swap_buffers ()</h3>
314
<pre class="programlisting"><span class="returnvalue">void</span>
315
gst_vaapi_window_glx_swap_buffers (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>);</pre>
316
<p>Promotes the contents of the back buffer of <em class="parameter"><code>window</code></em>
318
contents of the front buffer of <em class="parameter"><code>window</code></em>
319
. This simply is wrapper
320
around <code class="function">glXSwapBuffers()</code>.</p>
321
<div class="refsect3">
322
<a name="id-1.2.9.7.7.5"></a><h4>Parameters</h4>
323
<div class="informaltable"><table width="100%" border="0">
325
<col width="150px" class="parameters_name">
326
<col class="parameters_description">
327
<col width="200px" class="parameters_annotations">
330
<td class="parameter_name"><p>window</p></td>
331
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a></p></td>
332
<td class="parameter_annotations"> </td>
338
<div class="refsect2">
339
<a name="gst-vaapi-window-glx-put-texture"></a><h3>gst_vaapi_window_glx_put_texture ()</h3>
340
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
341
gst_vaapi_window_glx_put_texture (<em class="parameter"><code><a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a> *window</code></em>,
342
<em class="parameter"><code><a class="link" href="libs-GstVaapiTexture.html#GstVaapiTexture" title="GstVaapiTexture"><span class="type">GstVaapiTexture</span></a> *texture</code></em>,
343
<em class="parameter"><code>const <a class="link" href="libs-Basic-data-structures.html#GstVaapiRectangle" title="struct GstVaapiRectangle"><span class="type">GstVaapiRectangle</span></a> *src_rect</code></em>,
344
<em class="parameter"><code>const <a class="link" href="libs-Basic-data-structures.html#GstVaapiRectangle" title="struct GstVaapiRectangle"><span class="type">GstVaapiRectangle</span></a> *dst_rect</code></em>);</pre>
345
<p>Renders the <em class="parameter"><code>texture</code></em>
346
region specified by <em class="parameter"><code>src_rect</code></em>
347
into the <em class="parameter"><code>window</code></em>
349
region specified by <em class="parameter"><code>dst_rect</code></em>
351
<p>NOTE: only GL_TEXTURE_2D textures are supported at this time.</p>
352
<div class="refsect3">
353
<a name="id-1.2.9.7.8.6"></a><h4>Parameters</h4>
354
<div class="informaltable"><table width="100%" border="0">
356
<col width="150px" class="parameters_name">
357
<col class="parameters_description">
358
<col width="200px" class="parameters_annotations">
362
<td class="parameter_name"><p>window</p></td>
363
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiWindowGLX.html#GstVaapiWindowGLX" title="GstVaapiWindowGLX"><span class="type">GstVaapiWindowGLX</span></a></p></td>
364
<td class="parameter_annotations"> </td>
367
<td class="parameter_name"><p>texture</p></td>
368
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiTexture.html#GstVaapiTexture" title="GstVaapiTexture"><span class="type">GstVaapiTexture</span></a></p></td>
369
<td class="parameter_annotations"> </td>
372
<td class="parameter_name"><p>src_rect</p></td>
373
<td class="parameter_description"><p>the sub-rectangle of the source texture to
374
extract and process. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the entire texture will be used.</p></td>
375
<td class="parameter_annotations"> </td>
378
<td class="parameter_name"><p>dst_rect</p></td>
379
<td class="parameter_description"><p>the sub-rectangle of the destination
286
380
window into which the texture is rendered. If <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the entire
287
window will be used.</td>
290
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
292
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</td>
381
window will be used.</p></td>
382
<td class="parameter_annotations"> </td>
387
<div class="refsect3">
388
<a name="id-1.2.9.7.8.7"></a><h4>Returns</h4>
389
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</p>
394
<div class="refsect1">
395
<a name="libs-GstVaapiWindowGLX.other_details"></a><h2>Types and Values</h2>
396
<div class="refsect2">
397
<a name="GstVaapiWindowGLX"></a><h3>GstVaapiWindowGLX</h3>
398
<pre class="programlisting">typedef struct _GstVaapiWindowGLX GstVaapiWindowGLX;</pre>
399
<p>An X11 <span class="type">Window</span> suitable for GLX rendering.</p>
299
403
<div class="footer">
301
Generated by GTK-Doc V1.19</div>
405
Generated by GTK-Doc V1.20</div>
b'\\ No newline at end of file'