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>GstGLFramebuffer: 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="GstGLFilter.html" title="GstGLFilter"> 10<link rel="next" href="gst-plugins-base-libs-GstGLMemory.html" title="GstGLMemory"> 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">|</span> 18 <a href="#GstGLFramebuffer.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 19 <a href="#GstGLFramebuffer.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="GstGLFilter.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 24<td><a accesskey="n" href="gst-plugins-base-libs-GstGLMemory.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="GstGLFramebuffer"></a><div class="titlepage"></div> 28<div class="refnamediv"><table width="100%"><tr> 29<td valign="top"> 30<h2><span class="refentrytitle"><a name="GstGLFramebuffer.top_of_page"></a>GstGLFramebuffer</span></h2> 31<p>GstGLFramebuffer — OpenGL framebuffer abstraction</p> 32</td> 33<td class="gallery_image" valign="top" align="right"></td> 34</tr></table></div> 35<div class="refsect1"> 36<a name="GstGLFramebuffer.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="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="returnvalue">GstGLFramebuffer</span></a> * 46</td> 47<td class="function_name"> 48<a class="link" href="GstGLFramebuffer.html#gst-gl-framebuffer-new" title="gst_gl_framebuffer_new ()">gst_gl_framebuffer_new</a> <span class="c_punctuation">()</span> 49</td> 50</tr> 51<tr> 52<td class="function_type"> 53<a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="returnvalue">GstGLFramebuffer</span></a> * 54</td> 55<td class="function_name"> 56<a class="link" href="GstGLFramebuffer.html#gst-gl-framebuffer-new-with-default-depth" title="gst_gl_framebuffer_new_with_default_depth ()">gst_gl_framebuffer_new_with_default_depth</a> <span class="c_punctuation">()</span> 57</td> 58</tr> 59<tr> 60<td class="function_type"> 61<span class="returnvalue">void</span> 62</td> 63<td class="function_name"> 64<a class="link" href="GstGLFramebuffer.html#gst-gl-framebuffer-attach" title="gst_gl_framebuffer_attach ()">gst_gl_framebuffer_attach</a> <span class="c_punctuation">()</span> 65</td> 66</tr> 67<tr> 68<td class="function_type"> 69<span class="returnvalue">void</span> 70</td> 71<td class="function_name"> 72<a class="link" href="GstGLFramebuffer.html#gst-gl-framebuffer-bind" title="gst_gl_framebuffer_bind ()">gst_gl_framebuffer_bind</a> <span class="c_punctuation">()</span> 73</td> 74</tr> 75<tr> 76<td class="function_type"> 77<span class="returnvalue">void</span> 78</td> 79<td class="function_name"> 80<a class="link" href="GstGLFramebuffer.html#gst-gl-context-clear-framebuffer" title="gst_gl_context_clear_framebuffer ()">gst_gl_context_clear_framebuffer</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#gboolean"><span class="returnvalue">gboolean</span></a> 86</td> 87<td class="function_name"> 88<span class="c_punctuation">(</span><a class="link" href="GstGLFramebuffer.html#GstGLFramebufferFunc" title="GstGLFramebufferFunc ()">*GstGLFramebufferFunc</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span> 89</td> 90</tr> 91<tr> 92<td class="function_type"> 93<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 94</td> 95<td class="function_name"> 96<a class="link" href="GstGLFramebuffer.html#gst-gl-framebuffer-draw-to-texture" title="gst_gl_framebuffer_draw_to_texture ()">gst_gl_framebuffer_draw_to_texture</a> <span class="c_punctuation">()</span> 97</td> 98</tr> 99<tr> 100<td class="function_type"> 101<span class="returnvalue">void</span> 102</td> 103<td class="function_name"> 104<a class="link" href="GstGLFramebuffer.html#gst-gl-framebuffer-get-effective-dimensions" title="gst_gl_framebuffer_get_effective_dimensions ()">gst_gl_framebuffer_get_effective_dimensions</a> <span class="c_punctuation">()</span> 105</td> 106</tr> 107<tr> 108<td class="function_type"> 109<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 110</td> 111<td class="function_name"> 112<a class="link" href="GstGLFramebuffer.html#gst-gl-framebuffer-get-id" title="gst_gl_framebuffer_get_id ()">gst_gl_framebuffer_get_id</a> <span class="c_punctuation">()</span> 113</td> 114</tr> 115<tr> 116<td class="function_type"> 117<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 118</td> 119<td class="function_name"> 120<a class="link" href="GstGLFramebuffer.html#gst-gl-context-check-framebuffer-status" title="gst_gl_context_check_framebuffer_status ()">gst_gl_context_check_framebuffer_status</a> <span class="c_punctuation">()</span> 121</td> 122</tr> 123</tbody> 124</table></div> 125</div> 126<div class="refsect1"> 127<a name="GstGLFramebuffer.other"></a><h2>Types and Values</h2> 128<div class="informaltable"><table class="informaltable" width="100%" border="0"> 129<colgroup> 130<col width="150px" class="name"> 131<col class="description"> 132</colgroup> 133<tbody> 134<tr> 135<td class="datatype_keyword"> </td> 136<td class="function_name"><a class="link" href="GstGLFramebuffer.html#GstGLFramebuffer-struct" title="GstGLFramebuffer">GstGLFramebuffer</a></td> 137</tr> 138<tr> 139<td class="datatype_keyword"> </td> 140<td class="function_name"><a class="link" href="GstGLFramebuffer.html#GstGLFramebufferClass" title="GstGLFramebufferClass">GstGLFramebufferClass</a></td> 141</tr> 142</tbody> 143</table></div> 144</div> 145<div class="refsect1"> 146<a name="GstGLFramebuffer.object-hierarchy"></a><h2>Object Hierarchy</h2> 147<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a> 148 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> 149 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a> 150 <span class="lineart">╰──</span> GstGLFramebuffer 151</pre> 152</div> 153<div class="refsect1"> 154<a name="GstGLFramebuffer.includes"></a><h2>Includes</h2> 155<pre class="synopsis">#include <gst/gl/gl.h> 156</pre> 157</div> 158<div class="refsect1"> 159<a name="GstGLFramebuffer.description"></a><h2>Description</h2> 160<p>A <a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a> represents and holds an OpenGL framebuffer object with 161it's associated attachments.</p> 162<p>A <a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a> can be created with <a class="link" href="GstGLFramebuffer.html#gst-gl-framebuffer-new" title="gst_gl_framebuffer_new ()"><code class="function">gst_gl_framebuffer_new()</code></a> or 163<a class="link" href="GstGLFramebuffer.html#gst-gl-framebuffer-new-with-default-depth" title="gst_gl_framebuffer_new_with_default_depth ()"><code class="function">gst_gl_framebuffer_new_with_default_depth()</code></a> and bound with 164<a class="link" href="GstGLFramebuffer.html#gst-gl-framebuffer-bind" title="gst_gl_framebuffer_bind ()"><code class="function">gst_gl_framebuffer_bind()</code></a>. Other resources can be bound with 165<a class="link" href="GstGLFramebuffer.html#gst-gl-framebuffer-attach" title="gst_gl_framebuffer_attach ()"><code class="function">gst_gl_framebuffer_attach()</code></a></p> 166<p>Note: OpenGL framebuffers are not shareable resources so cannot be used 167between multiple OpenGL contexts.</p> 168</div> 169<div class="refsect1"> 170<a name="GstGLFramebuffer.functions_details"></a><h2>Functions</h2> 171<div class="refsect2"> 172<a name="gst-gl-framebuffer-new"></a><h3>gst_gl_framebuffer_new ()</h3> 173<pre class="programlisting"><a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="returnvalue">GstGLFramebuffer</span></a> * 174gst_gl_framebuffer_new (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>);</pre> 175<div class="refsect3"> 176<a name="gst-gl-framebuffer-new.parameters"></a><h4>Parameters</h4> 177<div class="informaltable"><table class="informaltable" width="100%" border="0"> 178<colgroup> 179<col width="150px" class="parameters_name"> 180<col class="parameters_description"> 181<col width="200px" class="parameters_annotations"> 182</colgroup> 183<tbody><tr> 184<td class="parameter_name"><p>context</p></td> 185<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td> 186<td class="parameter_annotations"> </td> 187</tr></tbody> 188</table></div> 189</div> 190<div class="refsect3"> 191<a name="gst-gl-framebuffer-new.returns"></a><h4>Returns</h4> 192<p>a new <a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a>. </p> 193<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p> 194</div> 195<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p> 196</div> 197<hr> 198<div class="refsect2"> 199<a name="gst-gl-framebuffer-new-with-default-depth"></a><h3>gst_gl_framebuffer_new_with_default_depth ()</h3> 200<pre class="programlisting"><a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="returnvalue">GstGLFramebuffer</span></a> * 201gst_gl_framebuffer_new_with_default_depth 202 (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>, 203 <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>, 204 <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> 205<div class="refsect3"> 206<a name="gst-gl-framebuffer-new-with-default-depth.parameters"></a><h4>Parameters</h4> 207<div class="informaltable"><table class="informaltable" width="100%" border="0"> 208<colgroup> 209<col width="150px" class="parameters_name"> 210<col class="parameters_description"> 211<col width="200px" class="parameters_annotations"> 212</colgroup> 213<tbody> 214<tr> 215<td class="parameter_name"><p>context</p></td> 216<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td> 217<td class="parameter_annotations"> </td> 218</tr> 219<tr> 220<td class="parameter_name"><p>width</p></td> 221<td class="parameter_description"><p>width for the depth buffer</p></td> 222<td class="parameter_annotations"> </td> 223</tr> 224<tr> 225<td class="parameter_name"><p>height</p></td> 226<td class="parameter_description"><p>for the depth buffer</p></td> 227<td class="parameter_annotations"> </td> 228</tr> 229</tbody> 230</table></div> 231</div> 232<div class="refsect3"> 233<a name="gst-gl-framebuffer-new-with-default-depth.returns"></a><h4>Returns</h4> 234<p> a new <a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a> with a depth buffer of <em class="parameter"><code>width</code></em> 235and <em class="parameter"><code>height</code></em> 236</p> 237</div> 238<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p> 239</div> 240<hr> 241<div class="refsect2"> 242<a name="gst-gl-framebuffer-attach"></a><h3>gst_gl_framebuffer_attach ()</h3> 243<pre class="programlisting"><span class="returnvalue">void</span> 244gst_gl_framebuffer_attach (<em class="parameter"><code><a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a> *fb</code></em>, 245 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> attachment_point</code></em>, 246 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#GstGLBaseMemory" title="GstGLBaseMemory"><span class="type">GstGLBaseMemory</span></a> *mem</code></em>);</pre> 247<p>attach <em class="parameter"><code>mem</code></em> 248 to <em class="parameter"><code>attachment_point</code></em> 249</p> 250<div class="refsect3"> 251<a name="gst-gl-framebuffer-attach.parameters"></a><h4>Parameters</h4> 252<div class="informaltable"><table class="informaltable" width="100%" border="0"> 253<colgroup> 254<col width="150px" class="parameters_name"> 255<col class="parameters_description"> 256<col width="200px" class="parameters_annotations"> 257</colgroup> 258<tbody> 259<tr> 260<td class="parameter_name"><p>fb</p></td> 261<td class="parameter_description"><p>a <a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a></p></td> 262<td class="parameter_annotations"> </td> 263</tr> 264<tr> 265<td class="parameter_name"><p>attachment_point</p></td> 266<td class="parameter_description"><p>the OpenGL attachment point to bind <em class="parameter"><code>mem</code></em> 267to</p></td> 268<td class="parameter_annotations"> </td> 269</tr> 270<tr> 271<td class="parameter_name"><p>mem</p></td> 272<td class="parameter_description"><p>the memory object to bind to <em class="parameter"><code>attachment_point</code></em> 273</p></td> 274<td class="parameter_annotations"> </td> 275</tr> 276</tbody> 277</table></div> 278</div> 279<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p> 280</div> 281<hr> 282<div class="refsect2"> 283<a name="gst-gl-framebuffer-bind"></a><h3>gst_gl_framebuffer_bind ()</h3> 284<pre class="programlisting"><span class="returnvalue">void</span> 285gst_gl_framebuffer_bind (<em class="parameter"><code><a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a> *fb</code></em>);</pre> 286<p>Bind <em class="parameter"><code>fb</code></em> 287 into the current thread</p> 288<div class="refsect3"> 289<a name="gst-gl-framebuffer-bind.parameters"></a><h4>Parameters</h4> 290<div class="informaltable"><table class="informaltable" width="100%" border="0"> 291<colgroup> 292<col width="150px" class="parameters_name"> 293<col class="parameters_description"> 294<col width="200px" class="parameters_annotations"> 295</colgroup> 296<tbody><tr> 297<td class="parameter_name"><p>fb</p></td> 298<td class="parameter_description"><p>a <a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a></p></td> 299<td class="parameter_annotations"> </td> 300</tr></tbody> 301</table></div> 302</div> 303<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p> 304</div> 305<hr> 306<div class="refsect2"> 307<a name="gst-gl-context-clear-framebuffer"></a><h3>gst_gl_context_clear_framebuffer ()</h3> 308<pre class="programlisting"><span class="returnvalue">void</span> 309gst_gl_context_clear_framebuffer (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>);</pre> 310<p>Unbind the current framebuffer</p> 311<div class="refsect3"> 312<a name="gst-gl-context-clear-framebuffer.parameters"></a><h4>Parameters</h4> 313<div class="informaltable"><table class="informaltable" width="100%" border="0"> 314<colgroup> 315<col width="150px" class="parameters_name"> 316<col class="parameters_description"> 317<col width="200px" class="parameters_annotations"> 318</colgroup> 319<tbody><tr> 320<td class="parameter_name"><p>context</p></td> 321<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td> 322<td class="parameter_annotations"> </td> 323</tr></tbody> 324</table></div> 325</div> 326<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p> 327</div> 328<hr> 329<div class="refsect2"> 330<a name="GstGLFramebufferFunc"></a><h3>GstGLFramebufferFunc ()</h3> 331<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 332<span class="c_punctuation">(</span>*GstGLFramebufferFunc<span class="c_punctuation">)</span> (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> stuff</code></em>);</pre> 333<p>callback definition for operating through a <a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a> object</p> 334<div class="refsect3"> 335<a name="GstGLFramebufferFunc.parameters"></a><h4>Parameters</h4> 336<div class="informaltable"><table class="informaltable" width="100%" border="0"> 337<colgroup> 338<col width="150px" class="parameters_name"> 339<col class="parameters_description"> 340<col width="200px" class="parameters_annotations"> 341</colgroup> 342<tbody><tr> 343<td class="parameter_name"><p>stuff</p></td> 344<td class="parameter_description"><p>user data</p></td> 345<td class="parameter_annotations"> </td> 346</tr></tbody> 347</table></div> 348</div> 349</div> 350<hr> 351<div class="refsect2"> 352<a name="gst-gl-framebuffer-draw-to-texture"></a><h3>gst_gl_framebuffer_draw_to_texture ()</h3> 353<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 354gst_gl_framebuffer_draw_to_texture (<em class="parameter"><code><a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a> *fb</code></em>, 355 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLMemory.html#GstGLMemory" title="GstGLMemory"><span class="type">GstGLMemory</span></a> *mem</code></em>, 356 <em class="parameter"><code><a class="link" href="GstGLFramebuffer.html#GstGLFramebufferFunc" title="GstGLFramebufferFunc ()"><span class="type">GstGLFramebufferFunc</span></a> func</code></em>, 357 <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>);</pre> 358<p>Perform the steps necessary to have the output of a glDraw* command in 359<em class="parameter"><code>func</code></em> 360 update the contents of <em class="parameter"><code>mem</code></em> 361.</p> 362<div class="refsect3"> 363<a name="gst-gl-framebuffer-draw-to-texture.parameters"></a><h4>Parameters</h4> 364<div class="informaltable"><table class="informaltable" width="100%" border="0"> 365<colgroup> 366<col width="150px" class="parameters_name"> 367<col class="parameters_description"> 368<col width="200px" class="parameters_annotations"> 369</colgroup> 370<tbody> 371<tr> 372<td class="parameter_name"><p>fb</p></td> 373<td class="parameter_description"><p>a <a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a></p></td> 374<td class="parameter_annotations"> </td> 375</tr> 376<tr> 377<td class="parameter_name"><p>mem</p></td> 378<td class="parameter_description"><p>the <a class="link" href="gst-plugins-base-libs-GstGLMemory.html#GstGLMemory" title="GstGLMemory"><span class="type">GstGLMemory</span></a> to draw to</p></td> 379<td class="parameter_annotations"> </td> 380</tr> 381<tr> 382<td class="parameter_name"><p>func</p></td> 383<td class="parameter_description"><p>the function to run. </p></td> 384<td class="parameter_annotations"><span class="annotation">[<acronym title="The callback is valid only during the call to the method."><span class="acronym">scope call</span></acronym>]</span></td> 385</tr> 386<tr> 387<td class="parameter_name"><p>user_data</p></td> 388<td class="parameter_description"><p>data to pass to <em class="parameter"><code>func</code></em> 389</p></td> 390<td class="parameter_annotations"> </td> 391</tr> 392</tbody> 393</table></div> 394</div> 395<div class="refsect3"> 396<a name="gst-gl-framebuffer-draw-to-texture.returns"></a><h4>Returns</h4> 397<p> the result of executing <em class="parameter"><code>func</code></em> 398</p> 399</div> 400<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p> 401</div> 402<hr> 403<div class="refsect2"> 404<a name="gst-gl-framebuffer-get-effective-dimensions"></a><h3>gst_gl_framebuffer_get_effective_dimensions ()</h3> 405<pre class="programlisting"><span class="returnvalue">void</span> 406gst_gl_framebuffer_get_effective_dimensions 407 (<em class="parameter"><code><a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a> *fb</code></em>, 408 <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>, 409 <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> 410<p>Retreive the effective dimensions from the current attachments attached to 411<em class="parameter"><code>fb</code></em> 412.</p> 413<div class="refsect3"> 414<a name="gst-gl-framebuffer-get-effective-dimensions.parameters"></a><h4>Parameters</h4> 415<div class="informaltable"><table class="informaltable" width="100%" border="0"> 416<colgroup> 417<col width="150px" class="parameters_name"> 418<col class="parameters_description"> 419<col width="200px" class="parameters_annotations"> 420</colgroup> 421<tbody> 422<tr> 423<td class="parameter_name"><p>fb</p></td> 424<td class="parameter_description"><p>a <a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a></p></td> 425<td class="parameter_annotations"> </td> 426</tr> 427<tr> 428<td class="parameter_name"><p>width</p></td> 429<td class="parameter_description"><p>output width. </p></td> 430<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> 431</tr> 432<tr> 433<td class="parameter_name"><p>height</p></td> 434<td class="parameter_description"><p>output height. </p></td> 435<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is OK, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span></td> 436</tr> 437</tbody> 438</table></div> 439</div> 440<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p> 441</div> 442<hr> 443<div class="refsect2"> 444<a name="gst-gl-framebuffer-get-id"></a><h3>gst_gl_framebuffer_get_id ()</h3> 445<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> 446gst_gl_framebuffer_get_id (<em class="parameter"><code><a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a> *fb</code></em>);</pre> 447<div class="refsect3"> 448<a name="gst-gl-framebuffer-get-id.parameters"></a><h4>Parameters</h4> 449<div class="informaltable"><table class="informaltable" width="100%" border="0"> 450<colgroup> 451<col width="150px" class="parameters_name"> 452<col class="parameters_description"> 453<col width="200px" class="parameters_annotations"> 454</colgroup> 455<tbody><tr> 456<td class="parameter_name"><p>fb</p></td> 457<td class="parameter_description"><p>a <a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a></p></td> 458<td class="parameter_annotations"> </td> 459</tr></tbody> 460</table></div> 461</div> 462<div class="refsect3"> 463<a name="gst-gl-framebuffer-get-id.returns"></a><h4>Returns</h4> 464<p> the OpenGL id for <em class="parameter"><code>fb</code></em> 465</p> 466</div> 467<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p> 468</div> 469<hr> 470<div class="refsect2"> 471<a name="gst-gl-context-check-framebuffer-status"></a><h3>gst_gl_context_check_framebuffer_status ()</h3> 472<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 473gst_gl_context_check_framebuffer_status 474 (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>, 475 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> fbo_target</code></em>);</pre> 476<div class="refsect3"> 477<a name="gst-gl-context-check-framebuffer-status.parameters"></a><h4>Parameters</h4> 478<div class="informaltable"><table class="informaltable" width="100%" border="0"> 479<colgroup> 480<col width="150px" class="parameters_name"> 481<col class="parameters_description"> 482<col width="200px" class="parameters_annotations"> 483</colgroup> 484<tbody> 485<tr> 486<td class="parameter_name"><p>context</p></td> 487<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td> 488<td class="parameter_annotations"> </td> 489</tr> 490<tr> 491<td class="parameter_name"><p>fbo_target</p></td> 492<td class="parameter_description"><p>the GL value of the framebuffer target, GL_FRAMEBUFFER, 493GL_READ_FRAMEBUFFER, GL_DRAW_FRAMEBUFFER</p></td> 494<td class="parameter_annotations"> </td> 495</tr> 496</tbody> 497</table></div> 498</div> 499<div class="refsect3"> 500<a name="gst-gl-context-check-framebuffer-status.returns"></a><h4>Returns</h4> 501<p> whether whether the current framebuffer is complete</p> 502</div> 503<p class="since">Since: <a class="link" href="ix06.html#api-index-1.10">1.10</a></p> 504</div> 505</div> 506<div class="refsect1"> 507<a name="GstGLFramebuffer.other_details"></a><h2>Types and Values</h2> 508<div class="refsect2"> 509<a name="GstGLFramebuffer-struct"></a><h3>GstGLFramebuffer</h3> 510<pre class="programlisting">typedef struct _GstGLFramebuffer GstGLFramebuffer;</pre> 511<p>Opaque <a class="link" href="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a> struct</p> 512</div> 513<hr> 514<div class="refsect2"> 515<a name="GstGLFramebufferClass"></a><h3>GstGLFramebufferClass</h3> 516<pre class="programlisting">typedef struct { 517} GstGLFramebufferClass; 518</pre> 519<p>Opaque <a class="link" href="GstGLFramebuffer.html#GstGLFramebufferClass" title="GstGLFramebufferClass"><span class="type">GstGLFramebufferClass</span></a> struct</p> 520</div> 521</div> 522<div class="refsect1"> 523<a name="GstGLFramebuffer.see-also"></a><h2>See Also</h2> 524<p><a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#GstGLBaseMemory" title="GstGLBaseMemory"><span class="type">GstGLBaseMemory</span></a>, <a class="link" href="gst-plugins-base-libs-GstGLMemory.html#GstGLMemory" title="GstGLMemory"><span class="type">GstGLMemory</span></a>, <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p> 525</div> 526</div> 527<div class="footer"> 528<hr>Generated by GTK-Doc V1.28</div> 529</body> 530</html>