• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!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>GstGLRenderBuffer: GStreamer Base Plugins 1.0 Library Reference Manual</title>
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="index.html" title="GStreamer Base Plugins 1.0 Library Reference Manual">
8<link rel="up" href="gl.html" title="OpenGL Integration Library">
9<link rel="prev" href="gst-plugins-base-libs-GstGLQuery.html" title="GstGLQuery">
10<link rel="next" href="GstGLShader.html" title="GstGLShader">
11<meta name="generator" content="GTK-Doc V1.28 (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">|</span18                  <a href="#gst-plugins-base-libs-GstGLRenderbuffer.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span19                  <a href="#gst-plugins-base-libs-GstGLRenderbuffer.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
20</td>
21<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22<td><a accesskey="u" href="gl.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23<td><a accesskey="p" href="gst-plugins-base-libs-GstGLQuery.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24<td><a accesskey="n" href="GstGLShader.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25</tr></table>
26<div class="refentry">
27<a name="gst-plugins-base-libs-GstGLRenderbuffer"></a><div class="titlepage"></div>
28<div class="refnamediv"><table width="100%"><tr>
29<td valign="top">
30<h2><span class="refentrytitle"><a name="gst-plugins-base-libs-GstGLRenderbuffer.top_of_page"></a>GstGLRenderBuffer</span></h2>
31<p>GstGLRenderBuffer — memory subclass for GL renderbuffer objects</p>
32</td>
33<td class="gallery_image" valign="top" align="right"></td>
34</tr></table></div>
35<div class="refsect1">
36<a name="gst-plugins-base-libs-GstGLRenderbuffer.functions"></a><h2>Functions</h2>
37<div class="informaltable"><table class="informaltable" width="100%" border="0">
38<colgroup>
39<col width="150px" class="functions_return">
40<col class="functions_name">
41</colgroup>
42<tbody>
43<tr>
44<td class="function_type">
45<a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocationParams"><span class="returnvalue">GstGLRenderbufferAllocationParams</span></a> *
46</td>
47<td class="function_name">
48<a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#gst-gl-renderbuffer-allocation-params-new" title="gst_gl_renderbuffer_allocation_params_new ()">gst_gl_renderbuffer_allocation_params_new</a> <span class="c_punctuation">()</span>
49</td>
50</tr>
51<tr>
52<td class="function_type">
53<a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocationParams"><span class="returnvalue">GstGLRenderbufferAllocationParams</span></a> *
54</td>
55<td class="function_name">
56<a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#gst-gl-renderbuffer-allocation-params-new-wrapped" title="gst_gl_renderbuffer_allocation_params_new_wrapped ()">gst_gl_renderbuffer_allocation_params_new_wrapped</a> <span class="c_punctuation">()</span>
57</td>
58</tr>
59<tr>
60<td class="function_type">
61<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
62</td>
63<td class="function_name">
64<a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#gst-gl-renderbuffer-get-height" title="gst_gl_renderbuffer_get_height ()">gst_gl_renderbuffer_get_height</a> <span class="c_punctuation">()</span>
65</td>
66</tr>
67<tr>
68<td class="function_type">
69<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
70</td>
71<td class="function_name">
72<a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#gst-gl-renderbuffer-get-id" title="gst_gl_renderbuffer_get_id ()">gst_gl_renderbuffer_get_id</a> <span class="c_punctuation">()</span>
73</td>
74</tr>
75<tr>
76<td class="function_type">
77<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="returnvalue">GstGLFormat</span></a>
78</td>
79<td class="function_name">
80<a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#gst-gl-renderbuffer-get-format" title="gst_gl_renderbuffer_get_format ()">gst_gl_renderbuffer_get_format</a> <span class="c_punctuation">()</span>
81</td>
82</tr>
83<tr>
84<td class="function_type">
85<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
86</td>
87<td class="function_name">
88<a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#gst-gl-renderbuffer-get-width" title="gst_gl_renderbuffer_get_width ()">gst_gl_renderbuffer_get_width</a> <span class="c_punctuation">()</span>
89</td>
90</tr>
91<tr>
92<td class="function_type">
93<span class="returnvalue">void</span>
94</td>
95<td class="function_name">
96<a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#gst-gl-renderbuffer-init-once" title="gst_gl_renderbuffer_init_once ()">gst_gl_renderbuffer_init_once</a> <span class="c_punctuation">()</span>
97</td>
98</tr>
99<tr>
100<td class="function_type">
101<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
102</td>
103<td class="function_name">
104<a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#gst-is-gl-renderbuffer" title="gst_is_gl_renderbuffer ()">gst_is_gl_renderbuffer</a> <span class="c_punctuation">()</span>
105</td>
106</tr>
107</tbody>
108</table></div>
109</div>
110<a name="GstGLRenderbufferAllocator"></a><a name="GstGLRenderbufferAllocationParams"></a><div class="refsect1">
111<a name="gst-plugins-base-libs-GstGLRenderbuffer.other"></a><h2>Types and Values</h2>
112<div class="informaltable"><table class="informaltable" width="100%" border="0">
113<colgroup>
114<col width="150px" class="name">
115<col class="description">
116</colgroup>
117<tbody>
118<tr>
119<td class="datatype_keyword"> </td>
120<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer">GstGLRenderbuffer</a></td>
121</tr>
122<tr>
123<td class="datatype_keyword"> </td>
124<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocator-struct" title="GstGLRenderbufferAllocator">GstGLRenderbufferAllocator</a></td>
125</tr>
126<tr>
127<td class="datatype_keyword"> </td>
128<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocatorClass" title="GstGLRenderbufferAllocatorClass">GstGLRenderbufferAllocatorClass</a></td>
129</tr>
130<tr>
131<td class="datatype_keyword">struct</td>
132<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocationParams-struct" title="struct GstGLRenderbufferAllocationParams">GstGLRenderbufferAllocationParams</a></td>
133</tr>
134<tr>
135<td class="define_keyword">#define</td>
136<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GST-GL-RENDERBUFFER-ALLOCATOR-NAME:CAPS" title="GST_GL_RENDERBUFFER_ALLOCATOR_NAME">GST_GL_RENDERBUFFER_ALLOCATOR_NAME</a></td>
137</tr>
138</tbody>
139</table></div>
140</div>
141<div class="refsect1">
142<a name="gst-plugins-base-libs-GstGLRenderbuffer.object-hierarchy"></a><h2>Object Hierarchy</h2>
143<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-Boxed-Types.html">GBoxed</a>
144    <span class="lineart">╰──</span> GstGLRenderbufferAllocationParams
145    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
146    <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
147        <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a>
148            <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstAllocator.html#GstAllocator-struct">GstAllocator</a>
149                <span class="lineart">╰──</span> <a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#GstGLBaseMemoryAllocator">GstGLBaseMemoryAllocator</a>
150                    <span class="lineart">╰──</span> GstGLRenderbufferAllocator
151</pre>
152</div>
153<div class="refsect1">
154<a name="gst-plugins-base-libs-GstGLRenderbuffer.includes"></a><h2>Includes</h2>
155<pre class="synopsis">#include &lt;gst/gl/gl.h&gt;
156</pre>
157</div>
158<div class="refsect1">
159<a name="gst-plugins-base-libs-GstGLRenderbuffer.description"></a><h2>Description</h2>
160<p>GstGLRenderbuffer is a <a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#GstGLBaseMemory" title="GstGLBaseMemory"><span class="type">GstGLBaseMemory</span></a> subclass providing support for
161OpenGL renderbuffers.</p>
162<p><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer"><span class="type">GstGLRenderbuffer</span></a> is created or wrapped through <a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#gst-gl-base-memory-alloc" title="gst_gl_base_memory_alloc ()"><code class="function">gst_gl_base_memory_alloc()</code></a>
163with <a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocationParams"><span class="type">GstGLRenderbufferAllocationParams</span></a>.</p>
164</div>
165<div class="refsect1">
166<a name="gst-plugins-base-libs-GstGLRenderbuffer.functions_details"></a><h2>Functions</h2>
167<div class="refsect2">
168<a name="gst-gl-renderbuffer-allocation-params-new"></a><h3>gst_gl_renderbuffer_allocation_params_new ()</h3>
169<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocationParams"><span class="returnvalue">GstGLRenderbufferAllocationParams</span></a> *
170gst_gl_renderbuffer_allocation_params_new
171                               (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>,
172                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstAllocator.html#GstAllocationParams-struct"><span class="type">GstAllocationParams</span></a> *alloc_params</code></em>,
173                                <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> renderbuffer_format</code></em>,
174                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> width</code></em>,
175                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> height</code></em>);</pre>
176<div class="refsect3">
177<a name="gst-gl-renderbuffer-allocation-params-new.parameters"></a><h4>Parameters</h4>
178<div class="informaltable"><table class="informaltable" width="100%" border="0">
179<colgroup>
180<col width="150px" class="parameters_name">
181<col class="parameters_description">
182<col width="200px" class="parameters_annotations">
183</colgroup>
184<tbody>
185<tr>
186<td class="parameter_name"><p>context</p></td>
187<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td>
188<td class="parameter_annotations"> </td>
189</tr>
190<tr>
191<td class="parameter_name"><p>alloc_params</p></td>
192<td class="parameter_description"><p>the <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstAllocator.html#GstAllocationParams-struct"><span class="type">GstAllocationParams</span></a> for sysmem mappings of the texture. </p></td>
193<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
194</tr>
195<tr>
196<td class="parameter_name"><p>width</p></td>
197<td class="parameter_description"><p>the width of the renderbuffer</p></td>
198<td class="parameter_annotations"> </td>
199</tr>
200<tr>
201<td class="parameter_name"><p>height</p></td>
202<td class="parameter_description"><p>the height of the renderbuffer</p></td>
203<td class="parameter_annotations"> </td>
204</tr>
205<tr>
206<td class="parameter_name"><p>renderbuffer_format</p></td>
207<td class="parameter_description"><p>the <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> for the created textures</p></td>
208<td class="parameter_annotations"> </td>
209</tr>
210</tbody>
211</table></div>
212</div>
213<div class="refsect3">
214<a name="gst-gl-renderbuffer-allocation-params-new.returns"></a><h4>Returns</h4>
215<p> a new <a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocationParams"><span class="type">GstGLRenderbufferAllocationParams</span></a> for allocating <a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer"><span class="type">GstGLRenderbuffer</span></a>'s</p>
216</div>
217<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p>
218</div>
219<hr>
220<div class="refsect2">
221<a name="gst-gl-renderbuffer-allocation-params-new-wrapped"></a><h3>gst_gl_renderbuffer_allocation_params_new_wrapped ()</h3>
222<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocationParams"><span class="returnvalue">GstGLRenderbufferAllocationParams</span></a> *
223gst_gl_renderbuffer_allocation_params_new_wrapped
224                               (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>,
225                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstAllocator.html#GstAllocationParams-struct"><span class="type">GstAllocationParams</span></a> *alloc_params</code></em>,
226                                <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> renderbuffer_format</code></em>,
227                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> width</code></em>,
228                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> height</code></em>,
229                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> gl_handle</code></em>,
230                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>,
231                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> notify</code></em>);</pre>
232<div class="refsect3">
233<a name="gst-gl-renderbuffer-allocation-params-new-wrapped.parameters"></a><h4>Parameters</h4>
234<div class="informaltable"><table class="informaltable" width="100%" border="0">
235<colgroup>
236<col width="150px" class="parameters_name">
237<col class="parameters_description">
238<col width="200px" class="parameters_annotations">
239</colgroup>
240<tbody>
241<tr>
242<td class="parameter_name"><p>context</p></td>
243<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td>
244<td class="parameter_annotations"> </td>
245</tr>
246<tr>
247<td class="parameter_name"><p>alloc_params</p></td>
248<td class="parameter_description"><p>the <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstAllocator.html#GstAllocationParams-struct"><span class="type">GstAllocationParams</span></a> for <em class="parameter"><code>tex_id</code></em>
249. </p></td>
250<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
251</tr>
252<tr>
253<td class="parameter_name"><p>width</p></td>
254<td class="parameter_description"><p>the width of the renderbuffer</p></td>
255<td class="parameter_annotations"> </td>
256</tr>
257<tr>
258<td class="parameter_name"><p>height</p></td>
259<td class="parameter_description"><p>the height of the renderbuffer</p></td>
260<td class="parameter_annotations"> </td>
261</tr>
262<tr>
263<td class="parameter_name"><p>renderbuffer_format</p></td>
264<td class="parameter_description"><p>the <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> for <em class="parameter"><code>tex_id</code></em>
265</p></td>
266<td class="parameter_annotations"> </td>
267</tr>
268<tr>
269<td class="parameter_name"><p>gl_handle</p></td>
270<td class="parameter_description"><p>the GL handle to wrap</p></td>
271<td class="parameter_annotations"> </td>
272</tr>
273<tr>
274<td class="parameter_name"><p>user_data</p></td>
275<td class="parameter_description"><p>user data to call <em class="parameter"><code>notify</code></em>
276with. </p></td>
277<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
278</tr>
279<tr>
280<td class="parameter_name"><p>notify</p></td>
281<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a>. </p></td>
282<td class="parameter_annotations"><span class="annotation">[<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td>
283</tr>
284</tbody>
285</table></div>
286</div>
287<div class="refsect3">
288<a name="gst-gl-renderbuffer-allocation-params-new-wrapped.returns"></a><h4>Returns</h4>
289<p> a new <a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocationParams"><span class="type">GstGLRenderbufferAllocationParams</span></a> for wrapping <em class="parameter"><code>gl_handle</code></em>
290as a
291renderbuffer</p>
292</div>
293<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p>
294</div>
295<hr>
296<div class="refsect2">
297<a name="gst-gl-renderbuffer-get-height"></a><h3>gst_gl_renderbuffer_get_height ()</h3>
298<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
299gst_gl_renderbuffer_get_height (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer"><span class="type">GstGLRenderbuffer</span></a> *gl_mem</code></em>);</pre>
300<div class="refsect3">
301<a name="gst-gl-renderbuffer-get-height.parameters"></a><h4>Parameters</h4>
302<div class="informaltable"><table class="informaltable" width="100%" border="0">
303<colgroup>
304<col width="150px" class="parameters_name">
305<col class="parameters_description">
306<col width="200px" class="parameters_annotations">
307</colgroup>
308<tbody><tr>
309<td class="parameter_name"><p>gl_mem</p></td>
310<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer"><span class="type">GstGLRenderbuffer</span></a></p></td>
311<td class="parameter_annotations"> </td>
312</tr></tbody>
313</table></div>
314</div>
315<div class="refsect3">
316<a name="gst-gl-renderbuffer-get-height.returns"></a><h4>Returns</h4>
317<p> the configured height of <em class="parameter"><code>gl_mem</code></em>
318</p>
319</div>
320<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p>
321</div>
322<hr>
323<div class="refsect2">
324<a name="gst-gl-renderbuffer-get-id"></a><h3>gst_gl_renderbuffer_get_id ()</h3>
325<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
326gst_gl_renderbuffer_get_id (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer"><span class="type">GstGLRenderbuffer</span></a> *gl_mem</code></em>);</pre>
327<div class="refsect3">
328<a name="gst-gl-renderbuffer-get-id.parameters"></a><h4>Parameters</h4>
329<div class="informaltable"><table class="informaltable" width="100%" border="0">
330<colgroup>
331<col width="150px" class="parameters_name">
332<col class="parameters_description">
333<col width="200px" class="parameters_annotations">
334</colgroup>
335<tbody><tr>
336<td class="parameter_name"><p>gl_mem</p></td>
337<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer"><span class="type">GstGLRenderbuffer</span></a></p></td>
338<td class="parameter_annotations"> </td>
339</tr></tbody>
340</table></div>
341</div>
342<div class="refsect3">
343<a name="gst-gl-renderbuffer-get-id.returns"></a><h4>Returns</h4>
344<p> the OpenGL renderbuffer handle of <em class="parameter"><code>gl_mem</code></em>
345</p>
346</div>
347<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p>
348</div>
349<hr>
350<div class="refsect2">
351<a name="gst-gl-renderbuffer-get-format"></a><h3>gst_gl_renderbuffer_get_format ()</h3>
352<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="returnvalue">GstGLFormat</span></a>
353gst_gl_renderbuffer_get_format (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer"><span class="type">GstGLRenderbuffer</span></a> *gl_mem</code></em>);</pre>
354<div class="refsect3">
355<a name="gst-gl-renderbuffer-get-format.parameters"></a><h4>Parameters</h4>
356<div class="informaltable"><table class="informaltable" width="100%" border="0">
357<colgroup>
358<col width="150px" class="parameters_name">
359<col class="parameters_description">
360<col width="200px" class="parameters_annotations">
361</colgroup>
362<tbody><tr>
363<td class="parameter_name"><p>gl_mem</p></td>
364<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer"><span class="type">GstGLRenderbuffer</span></a></p></td>
365<td class="parameter_annotations"> </td>
366</tr></tbody>
367</table></div>
368</div>
369<div class="refsect3">
370<a name="gst-gl-renderbuffer-get-format.returns"></a><h4>Returns</h4>
371<p> the <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> of <em class="parameter"><code>gl_mem</code></em>
372</p>
373</div>
374<p class="since">Since: <a class="link" href="ix05.html#api-index-1.12">1.12</a></p>
375</div>
376<hr>
377<div class="refsect2">
378<a name="gst-gl-renderbuffer-get-width"></a><h3>gst_gl_renderbuffer_get_width ()</h3>
379<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>
380gst_gl_renderbuffer_get_width (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer"><span class="type">GstGLRenderbuffer</span></a> *gl_mem</code></em>);</pre>
381<div class="refsect3">
382<a name="gst-gl-renderbuffer-get-width.parameters"></a><h4>Parameters</h4>
383<div class="informaltable"><table class="informaltable" width="100%" border="0">
384<colgroup>
385<col width="150px" class="parameters_name">
386<col class="parameters_description">
387<col width="200px" class="parameters_annotations">
388</colgroup>
389<tbody><tr>
390<td class="parameter_name"><p>gl_mem</p></td>
391<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer"><span class="type">GstGLRenderbuffer</span></a></p></td>
392<td class="parameter_annotations"> </td>
393</tr></tbody>
394</table></div>
395</div>
396<div class="refsect3">
397<a name="gst-gl-renderbuffer-get-width.returns"></a><h4>Returns</h4>
398<p> the configured width of <em class="parameter"><code>gl_mem</code></em>
399</p>
400</div>
401<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p>
402</div>
403<hr>
404<div class="refsect2">
405<a name="gst-gl-renderbuffer-init-once"></a><h3>gst_gl_renderbuffer_init_once ()</h3>
406<pre class="programlisting"><span class="returnvalue">void</span>
407gst_gl_renderbuffer_init_once (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
408<p>Initializes the GL Base Texture allocator. It is safe to call this function
409multiple times.  This must be called before any other GstGLRenderbuffer operation.</p>
410<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p>
411</div>
412<hr>
413<div class="refsect2">
414<a name="gst-is-gl-renderbuffer"></a><h3>gst_is_gl_renderbuffer ()</h3>
415<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
416gst_is_gl_renderbuffer (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstMemory.html#GstMemory-struct"><span class="type">GstMemory</span></a> *mem</code></em>);</pre>
417<div class="refsect3">
418<a name="gst-is-gl-renderbuffer.parameters"></a><h4>Parameters</h4>
419<div class="informaltable"><table class="informaltable" width="100%" border="0">
420<colgroup>
421<col width="150px" class="parameters_name">
422<col class="parameters_description">
423<col width="200px" class="parameters_annotations">
424</colgroup>
425<tbody><tr>
426<td class="parameter_name"><p>mem</p></td>
427<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstMemory.html#GstMemory-struct"><span class="type">GstMemory</span></a></p></td>
428<td class="parameter_annotations"> </td>
429</tr></tbody>
430</table></div>
431</div>
432<div class="refsect3">
433<a name="gst-is-gl-renderbuffer.returns"></a><h4>Returns</h4>
434<p> whether the memory at <em class="parameter"><code>mem</code></em>
435is a <a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbuffer" title="GstGLRenderbuffer"><span class="type">GstGLRenderbuffer</span></a></p>
436</div>
437<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p>
438</div>
439</div>
440<div class="refsect1">
441<a name="gst-plugins-base-libs-GstGLRenderbuffer.other_details"></a><h2>Types and Values</h2>
442<div class="refsect2">
443<a name="GstGLRenderbuffer"></a><h3>GstGLRenderbuffer</h3>
444<pre class="programlisting">typedef struct {
445  guint                     renderbuffer_id;
446  GstGLFormat               renderbuffer_format;
447  guint                     width;
448  guint                     height;
449} GstGLRenderbuffer;
450</pre>
451<p>Represents information about a GL renderbuffer</p>
452<div class="refsect3">
453<a name="GstGLRenderbuffer.members"></a><h4>Members</h4>
454<div class="informaltable"><table class="informaltable" width="100%" border="0">
455<colgroup>
456<col width="300px" class="struct_members_name">
457<col class="struct_members_description">
458<col width="200px" class="struct_members_annotations">
459</colgroup>
460<tbody>
461<tr>
462<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstGLRenderbuffer.renderbuffer-id"></a>renderbuffer_id</code></em>;</p></td>
463<td class="struct_member_description"><p>the GL texture id for this memory</p></td>
464<td class="struct_member_annotations"> </td>
465</tr>
466<tr>
467<td class="struct_member_name"><p><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> <em class="structfield"><code><a name="GstGLRenderbuffer.renderbuffer-format"></a>renderbuffer_format</code></em>;</p></td>
468<td class="struct_member_description"><p>the texture type</p></td>
469<td class="struct_member_annotations"> </td>
470</tr>
471<tr>
472<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstGLRenderbuffer.width"></a>width</code></em>;</p></td>
473<td class="struct_member_description"><p>the width</p></td>
474<td class="struct_member_annotations"> </td>
475</tr>
476<tr>
477<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstGLRenderbuffer.height"></a>height</code></em>;</p></td>
478<td class="struct_member_description"><p>the height</p></td>
479<td class="struct_member_annotations"> </td>
480</tr>
481</tbody>
482</table></div>
483</div>
484</div>
485<hr>
486<div class="refsect2">
487<a name="GstGLRenderbufferAllocator-struct"></a><h3>GstGLRenderbufferAllocator</h3>
488<pre class="programlisting">typedef struct _GstGLRenderbufferAllocator GstGLRenderbufferAllocator;</pre>
489<p>Opaque <a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocator"><span class="type">GstGLRenderbufferAllocator</span></a> struct</p>
490</div>
491<hr>
492<div class="refsect2">
493<a name="GstGLRenderbufferAllocatorClass"></a><h3>GstGLRenderbufferAllocatorClass</h3>
494<pre class="programlisting">typedef struct {
495  GstGLBaseMemoryAllocatorClass             parent_class;
496} GstGLRenderbufferAllocatorClass;
497</pre>
498<p>The <a class="link" href="gst-plugins-base-libs-GstGLRenderbuffer.html#GstGLRenderbufferAllocatorClass" title="GstGLRenderbufferAllocatorClass"><span class="type">GstGLRenderbufferAllocatorClass</span></a> only contains private data</p>
499</div>
500<hr>
501<div class="refsect2">
502<a name="GstGLRenderbufferAllocationParams-struct"></a><h3>struct GstGLRenderbufferAllocationParams</h3>
503<pre class="programlisting">struct GstGLRenderbufferAllocationParams {
504  GstGLFormat renderbuffer_format;
505  guint width;
506  guint height;
507};
508</pre>
509<p>Allocation parameters</p>
510<div class="refsect3">
511<a name="GstGLRenderbufferAllocationParams.members"></a><h4>Members</h4>
512<div class="informaltable"><table class="informaltable" width="100%" border="0">
513<colgroup>
514<col width="300px" class="struct_members_name">
515<col class="struct_members_description">
516<col width="200px" class="struct_members_annotations">
517</colgroup>
518<tbody>
519<tr>
520<td class="struct_member_name"><p><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> <em class="structfield"><code><a name="GstGLRenderbufferAllocationParams-struct.renderbuffer-format"></a>renderbuffer_format</code></em>;</p></td>
521<td class="struct_member_description"><p>the <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a></p></td>
522<td class="struct_member_annotations"> </td>
523</tr>
524<tr>
525<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstGLRenderbufferAllocationParams-struct.width"></a>width</code></em>;</p></td>
526<td class="struct_member_description"><p>the width</p></td>
527<td class="struct_member_annotations"> </td>
528</tr>
529<tr>
530<td class="struct_member_name"><p><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> <em class="structfield"><code><a name="GstGLRenderbufferAllocationParams-struct.height"></a>height</code></em>;</p></td>
531<td class="struct_member_description"><p>the height</p></td>
532<td class="struct_member_annotations"> </td>
533</tr>
534</tbody>
535</table></div>
536</div>
537</div>
538<hr>
539<div class="refsect2">
540<a name="GST-GL-RENDERBUFFER-ALLOCATOR-NAME:CAPS"></a><h3>GST_GL_RENDERBUFFER_ALLOCATOR_NAME</h3>
541<pre class="programlisting">#define GST_GL_RENDERBUFFER_ALLOCATOR_NAME   "GLRenderbuffer"
542</pre>
543<p>The name of the GL renderbuffer allocator</p>
544</div>
545</div>
546<div class="refsect1">
547<a name="gst-plugins-base-libs-GstGLRenderbuffer.see-also"></a><h2>See Also</h2>
548<p><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstMemory.html#GstMemory-struct"><span class="type">GstMemory</span></a>, <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstAllocator.html#GstAllocator-struct"><span class="type">GstAllocator</span></a></p>
549</div>
550</div>
551<div class="footer">
552<hr>Generated by GTK-Doc V1.28</div>
553</body>
554</html>