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>GstGLUtils: 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-OpenGL-Formats.html" title="GstGLFormat"> 10<link rel="next" href="gstreamer-libs-hierarchy.html" title="Part II. Object Hierarchy"> 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="#gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.description" class="shortcut">Description</a></span> 19</td> 20<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 21<td><a accesskey="u" href="gl.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 22<td><a accesskey="p" href="gst-plugins-base-libs-OpenGL-Formats.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 23<td><a accesskey="n" href="gstreamer-libs-hierarchy.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 24</tr></table> 25<div class="refentry"> 26<a name="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities"></a><div class="titlepage"></div> 27<div class="refnamediv"><table width="100%"><tr> 28<td valign="top"> 29<h2><span class="refentrytitle"><a name="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.top_of_page"></a>GstGLUtils</span></h2> 30<p>GstGLUtils — some miscellaneous utilities for OpenGL</p> 31</td> 32<td class="gallery_image" valign="top" align="right"></td> 33</tr></table></div> 34<div class="refsect1"> 35<a name="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.functions"></a><h2>Functions</h2> 36<div class="informaltable"><table class="informaltable" width="100%" border="0"> 37<colgroup> 38<col width="150px" class="functions_return"> 39<col class="functions_name"> 40</colgroup> 41<tbody> 42<tr> 43<td class="function_type"> 44<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 45</td> 46<td class="function_name"> 47<a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-handle-set-context" title="gst_gl_handle_set_context ()">gst_gl_handle_set_context</a> <span class="c_punctuation">()</span> 48</td> 49</tr> 50<tr> 51<td class="function_type"> 52<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 53</td> 54<td class="function_name"> 55<a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-handle-context-query" title="gst_gl_handle_context_query ()">gst_gl_handle_context_query</a> <span class="c_punctuation">()</span> 56</td> 57</tr> 58<tr> 59<td class="function_type"> 60<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 61</td> 62<td class="function_name"> 63<a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-ensure-element-data" title="gst_gl_ensure_element_data ()">gst_gl_ensure_element_data</a> <span class="c_punctuation">()</span> 64</td> 65</tr> 66<tr> 67<td class="function_type"> 68<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 69</td> 70<td class="function_name"> 71<a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-query-local-gl-context" title="gst_gl_query_local_gl_context ()">gst_gl_query_local_gl_context</a> <span class="c_punctuation">()</span> 72</td> 73</tr> 74<tr> 75<td class="function_type"> 76<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a> 77</td> 78<td class="function_name"> 79<a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-get-plane-data-size" title="gst_gl_get_plane_data_size ()">gst_gl_get_plane_data_size</a> <span class="c_punctuation">()</span> 80</td> 81</tr> 82<tr> 83<td class="function_type"> 84<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a> 85</td> 86<td class="function_name"> 87<a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-get-plane-start" title="gst_gl_get_plane_start ()">gst_gl_get_plane_start</a> <span class="c_punctuation">()</span> 88</td> 89</tr> 90<tr> 91<td class="function_type"> 92<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="returnvalue">GstGLTextureTarget</span></a> 93</td> 94<td class="function_name"> 95<a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-value-get-texture-target-mask" title="gst_gl_value_get_texture_target_mask ()">gst_gl_value_get_texture_target_mask</a> <span class="c_punctuation">()</span> 96</td> 97</tr> 98<tr> 99<td class="function_type"> 100<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 101</td> 102<td class="function_name"> 103<a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-value-set-texture-target" title="gst_gl_value_set_texture_target ()">gst_gl_value_set_texture_target</a> <span class="c_punctuation">()</span> 104</td> 105</tr> 106<tr> 107<td class="function_type"> 108<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 109</td> 110<td class="function_name"> 111<a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-value-set-texture-target-from-mask" title="gst_gl_value_set_texture_target_from_mask ()">gst_gl_value_set_texture_target_from_mask</a> <span class="c_punctuation">()</span> 112</td> 113</tr> 114<tr> 115<td class="function_type"> 116<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 117</td> 118<td class="function_name"> 119<a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-check-extension" title="gst_gl_check_extension ()">gst_gl_check_extension</a> <span class="c_punctuation">()</span> 120</td> 121</tr> 122<tr> 123<td class="function_type"> 124<span class="returnvalue">void</span> 125</td> 126<td class="function_name"> 127<a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-element-propagate-display-context" title="gst_gl_element_propagate_display_context ()">gst_gl_element_propagate_display_context</a> <span class="c_punctuation">()</span> 128</td> 129</tr> 130</tbody> 131</table></div> 132</div> 133<div class="refsect1"> 134<a name="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.includes"></a><h2>Includes</h2> 135<pre class="synopsis">#include <gst/gl/gl.h> 136</pre> 137</div> 138<div class="refsect1"> 139<a name="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.description"></a><h2>Description</h2> 140</div> 141<div class="refsect1"> 142<a name="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.functions_details"></a><h2>Functions</h2> 143<div class="refsect2"> 144<a name="gst-gl-handle-set-context"></a><h3>gst_gl_handle_set_context ()</h3> 145<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 146gst_gl_handle_set_context (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>, 147 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstContext.html#GstContext-struct"><span class="type">GstContext</span></a> *context</code></em>, 148 <em class="parameter"><code><a class="link" href="GstGLDisplay.html" title="GstGLDisplay"><span class="type">GstGLDisplay</span></a> **display</code></em>, 149 <em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> **other_context</code></em>);</pre> 150<p>Helper function for implementing <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElementClass.set-context"><code class="function">GstElementClass.set_context()</code></a> in 151OpenGL capable elements.</p> 152<p>Retrieve's the <a class="link" href="GstGLDisplay.html" title="GstGLDisplay"><span class="type">GstGLDisplay</span></a> or <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> in <em class="parameter"><code>context</code></em> 153 and places the 154result in <em class="parameter"><code>display</code></em> 155 or <em class="parameter"><code>other_context</code></em> 156 respectively.</p> 157<div class="refsect3"> 158<a name="gst-gl-handle-set-context.parameters"></a><h4>Parameters</h4> 159<div class="informaltable"><table class="informaltable" width="100%" border="0"> 160<colgroup> 161<col width="150px" class="parameters_name"> 162<col class="parameters_description"> 163<col width="200px" class="parameters_annotations"> 164</colgroup> 165<tbody> 166<tr> 167<td class="parameter_name"><p>element</p></td> 168<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a></p></td> 169<td class="parameter_annotations"> </td> 170</tr> 171<tr> 172<td class="parameter_name"><p>context</p></td> 173<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstContext.html#GstContext-struct"><span class="type">GstContext</span></a></p></td> 174<td class="parameter_annotations"> </td> 175</tr> 176<tr> 177<td class="parameter_name"><p>display</p></td> 178<td class="parameter_description"><p>location of a <a class="link" href="GstGLDisplay.html" title="GstGLDisplay"><span class="type">GstGLDisplay</span></a>. </p></td> 179<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td> 180</tr> 181<tr> 182<td class="parameter_name"><p>other_context</p></td> 183<td class="parameter_description"><p>location of a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a>. </p></td> 184<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></td> 185</tr> 186</tbody> 187</table></div> 188</div> 189<div class="refsect3"> 190<a name="gst-gl-handle-set-context.returns"></a><h4>Returns</h4> 191<p> whether the <em class="parameter"><code>display</code></em> 192or <em class="parameter"><code>other_context</code></em> 193could be set successfully</p> 194</div> 195</div> 196<hr> 197<div class="refsect2"> 198<a name="gst-gl-handle-context-query"></a><h3>gst_gl_handle_context_query ()</h3> 199<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 200gst_gl_handle_context_query (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>, 201 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstQuery.html#GstQuery-struct"><span class="type">GstQuery</span></a> *query</code></em>, 202 <em class="parameter"><code><a class="link" href="GstGLDisplay.html" title="GstGLDisplay"><span class="type">GstGLDisplay</span></a> *display</code></em>, 203 <em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>, 204 <em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *other_context</code></em>);</pre> 205<div class="refsect3"> 206<a name="gst-gl-handle-context-query.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>element</p></td> 216<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a></p></td> 217<td class="parameter_annotations"> </td> 218</tr> 219<tr> 220<td class="parameter_name"><p>query</p></td> 221<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstQuery.html#GstQuery-struct"><span class="type">GstQuery</span></a> of type <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstQuery.html#GST-QUERY-CONTEXT:CAPS"><code class="literal">GST_QUERY_CONTEXT</code></a></p></td> 222<td class="parameter_annotations"> </td> 223</tr> 224<tr> 225<td class="parameter_name"><p>display</p></td> 226<td class="parameter_description"><p>a <a class="link" href="GstGLDisplay.html" title="GstGLDisplay"><span class="type">GstGLDisplay</span></a>. </p></td> 227<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> 228</tr> 229<tr> 230<td class="parameter_name"><p>context</p></td> 231<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a>. </p></td> 232<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> 233</tr> 234<tr> 235<td class="parameter_name"><p>other_context</p></td> 236<td class="parameter_description"><p>application provided <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a>. </p></td> 237<td class="parameter_annotations"><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>][<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>]</span></td> 238</tr> 239</tbody> 240</table></div> 241</div> 242<div class="refsect3"> 243<a name="gst-gl-handle-context-query.returns"></a><h4>Returns</h4> 244<p> Whether the <em class="parameter"><code>query</code></em> 245was successfully responded to from the passed 246<em class="parameter"><code>display</code></em> 247, <em class="parameter"><code>context</code></em> 248, and <em class="parameter"><code>other_context</code></em> 249.</p> 250</div> 251</div> 252<hr> 253<div class="refsect2"> 254<a name="gst-gl-ensure-element-data"></a><h3>gst_gl_ensure_element_data ()</h3> 255<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 256gst_gl_ensure_element_data (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> element</code></em>, 257 <em class="parameter"><code><a class="link" href="GstGLDisplay.html" title="GstGLDisplay"><span class="type">GstGLDisplay</span></a> **display_ptr</code></em>, 258 <em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> **other_context_ptr</code></em>);</pre> 259<p>Perform the steps necessary for retrieving a <a class="link" href="GstGLDisplay.html" title="GstGLDisplay"><span class="type">GstGLDisplay</span></a> and (optionally) 260an application provided <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> from the surrounding elements or from 261the application using the <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstContext.html#GstContext-struct"><span class="type">GstContext</span></a> mechanism.</p> 262<p>If the contents of <em class="parameter"><code>display_ptr</code></em> 263 or <em class="parameter"><code>other_context_ptr</code></em> 264 are not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then no 265<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstContext.html#GstContext-struct"><span class="type">GstContext</span></a> query is necessary for <a class="link" href="GstGLDisplay.html" title="GstGLDisplay"><span class="type">GstGLDisplay</span></a> or <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> retrieval 266or is performed.</p> 267<p>This performs <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstContext.html#GstContext-struct"><span class="type">GstContext</span></a> queries (if necessary) for a winsys display 268connection with <a class="link" href="GstGLDisplay.html#GST-GL-DISPLAY-CONTEXT-TYPE:CAPS" title="GST_GL_DISPLAY_CONTEXT_TYPE"><code class="literal">GST_GL_DISPLAY_CONTEXT_TYPE</code></a>, "gst.x11.display.handle", and 269"GstWaylandDisplayHandleContextType" stopping after the first successful 270retrieval.</p> 271<p>This also performs a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstContext.html#GstContext-struct"><span class="type">GstContext</span></a> query (if necessary) for an optional 272application provided <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> using the name "gst.gl.app_context". 273The returned <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> will be shared with a GStreamer created OpenGL context.</p> 274<div class="refsect3"> 275<a name="gst-gl-ensure-element-data.parameters"></a><h4>Parameters</h4> 276<div class="informaltable"><table class="informaltable" width="100%" border="0"> 277<colgroup> 278<col width="150px" class="parameters_name"> 279<col class="parameters_description"> 280<col width="200px" class="parameters_annotations"> 281</colgroup> 282<tbody> 283<tr> 284<td class="parameter_name"><p>element</p></td> 285<td class="parameter_description"><p>the <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> running the query</p></td> 286<td class="parameter_annotations"> </td> 287</tr> 288<tr> 289<td class="parameter_name"><p>display_ptr</p></td> 290<td class="parameter_description"><p>the resulting <a class="link" href="GstGLDisplay.html" title="GstGLDisplay"><span class="type">GstGLDisplay</span></a>. </p></td> 291<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>]</span></td> 292</tr> 293<tr> 294<td class="parameter_name"><p>other_context_ptr</p></td> 295<td class="parameter_description"><p>the resulting <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a>. </p></td> 296<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>]</span></td> 297</tr> 298</tbody> 299</table></div> 300</div> 301<div class="refsect3"> 302<a name="gst-gl-ensure-element-data.returns"></a><h4>Returns</h4> 303<p> whether a <a class="link" href="GstGLDisplay.html" title="GstGLDisplay"><span class="type">GstGLDisplay</span></a> exists in <em class="parameter"><code>display_ptr</code></em> 304</p> 305</div> 306</div> 307<hr> 308<div class="refsect2"> 309<a name="gst-gl-query-local-gl-context"></a><h3>gst_gl_query_local_gl_context ()</h3> 310<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 311gst_gl_query_local_gl_context (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>, 312 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstPadDirection"><span class="type">GstPadDirection</span></a> direction</code></em>, 313 <em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> **context_ptr</code></em>);</pre> 314<p>Performs a GST_QUERY_CONTEXT query of type "gst.gl.local_context" on all 315<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstPad-struct"><span class="type">GstPads</span></a> in <em class="parameter"><code>element</code></em> 316 of <em class="parameter"><code>direction</code></em> 317 for the local OpenGL context used by 318GStreamer elements.</p> 319<div class="refsect3"> 320<a name="gst-gl-query-local-gl-context.parameters"></a><h4>Parameters</h4> 321<div class="informaltable"><table class="informaltable" width="100%" border="0"> 322<colgroup> 323<col width="150px" class="parameters_name"> 324<col class="parameters_description"> 325<col width="200px" class="parameters_annotations"> 326</colgroup> 327<tbody> 328<tr> 329<td class="parameter_name"><p>element</p></td> 330<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> to query from</p></td> 331<td class="parameter_annotations"> </td> 332</tr> 333<tr> 334<td class="parameter_name"><p>direction</p></td> 335<td class="parameter_description"><p>the <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstPadDirection"><span class="type">GstPadDirection</span></a> to query</p></td> 336<td class="parameter_annotations"> </td> 337</tr> 338<tr> 339<td class="parameter_name"><p>context_ptr</p></td> 340<td class="parameter_description"><p>location containing the current and/or resulting 341<a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a>. </p></td> 342<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for input and for returning results. Default is transfer full."><span class="acronym">inout</span></acronym>]</span></td> 343</tr> 344</tbody> 345</table></div> 346</div> 347<div class="refsect3"> 348<a name="gst-gl-query-local-gl-context.returns"></a><h4>Returns</h4> 349<p> whether <em class="parameter"><code>context_ptr</code></em> 350contains a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p> 351</div> 352</div> 353<hr> 354<div class="refsect2"> 355<a name="gst-gl-get-plane-data-size"></a><h3>gst_gl_get_plane_data_size ()</h3> 356<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a> 357gst_gl_get_plane_data_size (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideo.html#GstVideoInfo" title="struct GstVideoInfo"><span class="type">GstVideoInfo</span></a> *info</code></em>, 358 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideo.html#GstVideoAlignment" title="struct GstVideoAlignment"><span class="type">GstVideoAlignment</span></a> *align</code></em>, 359 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> plane</code></em>);</pre> 360<p>Retrieve the size in bytes of a video plane of data with a certain alignment</p> 361<div class="refsect3"> 362<a name="gst-gl-get-plane-data-size.parameters"></a><h4>Parameters</h4> 363<div class="informaltable"><table class="informaltable" width="100%" border="0"> 364<colgroup> 365<col width="150px" class="parameters_name"> 366<col class="parameters_description"> 367<col width="200px" class="parameters_annotations"> 368</colgroup> 369<tbody> 370<tr> 371<td class="parameter_name"><p>info</p></td> 372<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstVideo.html#GstVideoInfo" title="struct GstVideoInfo"><span class="type">GstVideoInfo</span></a></p></td> 373<td class="parameter_annotations"> </td> 374</tr> 375<tr> 376<td class="parameter_name"><p>align</p></td> 377<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstVideo.html#GstVideoAlignment" title="struct GstVideoAlignment"><span class="type">GstVideoAlignment</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td> 378<td class="parameter_annotations"> </td> 379</tr> 380<tr> 381<td class="parameter_name"><p>plane</p></td> 382<td class="parameter_description"><p>plane number in <em class="parameter"><code>info</code></em> 383to retrieve the data size of</p></td> 384<td class="parameter_annotations"> </td> 385</tr> 386</tbody> 387</table></div> 388</div> 389</div> 390<hr> 391<div class="refsect2"> 392<a name="gst-gl-get-plane-start"></a><h3>gst_gl_get_plane_start ()</h3> 393<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gsize"><span class="returnvalue">gsize</span></a> 394gst_gl_get_plane_start (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideo.html#GstVideoInfo" title="struct GstVideoInfo"><span class="type">GstVideoInfo</span></a> *info</code></em>, 395 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideo.html#GstVideoAlignment" title="struct GstVideoAlignment"><span class="type">GstVideoAlignment</span></a> *valign</code></em>, 396 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> plane</code></em>);</pre> 397<div class="refsect3"> 398<a name="gst-gl-get-plane-start.parameters"></a><h4>Parameters</h4> 399<div class="informaltable"><table class="informaltable" width="100%" border="0"> 400<colgroup> 401<col width="150px" class="parameters_name"> 402<col class="parameters_description"> 403<col width="200px" class="parameters_annotations"> 404</colgroup> 405<tbody> 406<tr> 407<td class="parameter_name"><p>info</p></td> 408<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstVideo.html#GstVideoInfo" title="struct GstVideoInfo"><span class="type">GstVideoInfo</span></a></p></td> 409<td class="parameter_annotations"> </td> 410</tr> 411<tr> 412<td class="parameter_name"><p>valign</p></td> 413<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstVideo.html#GstVideoAlignment" title="struct GstVideoAlignment"><span class="type">GstVideoAlignment</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td> 414<td class="parameter_annotations"> </td> 415</tr> 416<tr> 417<td class="parameter_name"><p>plane</p></td> 418<td class="parameter_description"><p>plane number in <em class="parameter"><code>info</code></em> 419to retrieve the data size of</p></td> 420<td class="parameter_annotations"> </td> 421</tr> 422</tbody> 423</table></div> 424</div> 425<div class="refsect3"> 426<a name="gst-gl-get-plane-start.returns"></a><h4>Returns</h4> 427<p> difference between the supposed start of the plane from the <em class="parameter"><code>info</code></em> 428and where the data from the previous plane ends.</p> 429</div> 430</div> 431<hr> 432<div class="refsect2"> 433<a name="gst-gl-value-get-texture-target-mask"></a><h3>gst_gl_value_get_texture_target_mask ()</h3> 434<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="returnvalue">GstGLTextureTarget</span></a> 435gst_gl_value_get_texture_target_mask (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> *value</code></em>);</pre> 436<p>See <a class="link" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html#gst-gl-value-set-texture-target-from-mask" title="gst_gl_value_set_texture_target_from_mask ()"><code class="function">gst_gl_value_set_texture_target_from_mask()</code></a> for what entails a mask</p> 437<div class="refsect3"> 438<a name="gst-gl-value-get-texture-target-mask.parameters"></a><h4>Parameters</h4> 439<div class="informaltable"><table class="informaltable" width="100%" border="0"> 440<colgroup> 441<col width="150px" class="parameters_name"> 442<col class="parameters_description"> 443<col width="200px" class="parameters_annotations"> 444</colgroup> 445<tbody><tr> 446<td class="parameter_name"><p>value</p></td> 447<td class="parameter_description"><p>an initialized <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> of type G_TYPE_STRING</p></td> 448<td class="parameter_annotations"> </td> 449</tr></tbody> 450</table></div> 451</div> 452<div class="refsect3"> 453<a name="gst-gl-value-get-texture-target-mask.returns"></a><h4>Returns</h4> 454<p> the mask of <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="type">GstGLTextureTarget</span></a>'s in <em class="parameter"><code>value</code></em> 455</p> 456</div> 457</div> 458<hr> 459<div class="refsect2"> 460<a name="gst-gl-value-set-texture-target"></a><h3>gst_gl_value_set_texture_target ()</h3> 461<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 462gst_gl_value_set_texture_target (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> *value</code></em>, 463 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="type">GstGLTextureTarget</span></a> target</code></em>);</pre> 464<div class="refsect3"> 465<a name="gst-gl-value-set-texture-target.parameters"></a><h4>Parameters</h4> 466<div class="informaltable"><table class="informaltable" width="100%" border="0"> 467<colgroup> 468<col width="150px" class="parameters_name"> 469<col class="parameters_description"> 470<col width="200px" class="parameters_annotations"> 471</colgroup> 472<tbody> 473<tr> 474<td class="parameter_name"><p>value</p></td> 475<td class="parameter_description"><p>an initialized <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> of type G_TYPE_STRING</p></td> 476<td class="parameter_annotations"> </td> 477</tr> 478<tr> 479<td class="parameter_name"><p>target</p></td> 480<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="type">GstGLTextureTarget</span></a>'s</p></td> 481<td class="parameter_annotations"> </td> 482</tr> 483</tbody> 484</table></div> 485</div> 486<div class="refsect3"> 487<a name="gst-gl-value-set-texture-target.returns"></a><h4>Returns</h4> 488<p> whether the <em class="parameter"><code>target</code></em> 489could be set on <em class="parameter"><code>value</code></em> 490</p> 491</div> 492</div> 493<hr> 494<div class="refsect2"> 495<a name="gst-gl-value-set-texture-target-from-mask"></a><h3>gst_gl_value_set_texture_target_from_mask ()</h3> 496<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 497gst_gl_value_set_texture_target_from_mask 498 (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a> *value</code></em>, 499 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="type">GstGLTextureTarget</span></a> target_mask</code></em>);</pre> 500<p>A mask is a bitwise OR of (1 << target) where target is a valid 501<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="type">GstGLTextureTarget</span></a></p> 502<div class="refsect3"> 503<a name="gst-gl-value-set-texture-target-from-mask.parameters"></a><h4>Parameters</h4> 504<div class="informaltable"><table class="informaltable" width="100%" border="0"> 505<colgroup> 506<col width="150px" class="parameters_name"> 507<col class="parameters_description"> 508<col width="200px" class="parameters_annotations"> 509</colgroup> 510<tbody> 511<tr> 512<td class="parameter_name"><p>value</p></td> 513<td class="parameter_description"><p>an uninitialized <a href="/usr/share/gtk-doc/html/gobject/gobject-Generic-values.html#GValue-struct"><span class="type">GValue</span></a></p></td> 514<td class="parameter_annotations"> </td> 515</tr> 516<tr> 517<td class="parameter_name"><p>target_mask</p></td> 518<td class="parameter_description"><p>a bitwise mask of <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="type">GstGLTextureTarget</span></a>'s</p></td> 519<td class="parameter_annotations"> </td> 520</tr> 521</tbody> 522</table></div> 523</div> 524<div class="refsect3"> 525<a name="gst-gl-value-set-texture-target-from-mask.returns"></a><h4>Returns</h4> 526<p> whether the <em class="parameter"><code>target_mask</code></em> 527could be set on <em class="parameter"><code>value</code></em> 528</p> 529</div> 530</div> 531<hr> 532<div class="refsect2"> 533<a name="gst-gl-check-extension"></a><h3>gst_gl_check_extension ()</h3> 534<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 535gst_gl_check_extension (<em class="parameter"><code>const <span class="type">char</span> *name</code></em>, 536 <em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *ext</code></em>);</pre> 537<div class="refsect3"> 538<a name="gst-gl-check-extension.parameters"></a><h4>Parameters</h4> 539<div class="informaltable"><table class="informaltable" width="100%" border="0"> 540<colgroup> 541<col width="150px" class="parameters_name"> 542<col class="parameters_description"> 543<col width="200px" class="parameters_annotations"> 544</colgroup> 545<tbody> 546<tr> 547<td class="parameter_name"><p>name</p></td> 548<td class="parameter_description"><p>the extension to search for</p></td> 549<td class="parameter_annotations"> </td> 550</tr> 551<tr> 552<td class="parameter_name"><p>ext</p></td> 553<td class="parameter_description"><p>the list of possible extensions</p></td> 554<td class="parameter_annotations"> </td> 555</tr> 556</tbody> 557</table></div> 558</div> 559<div class="refsect3"> 560<a name="gst-gl-check-extension.returns"></a><h4>Returns</h4> 561<p> whether <em class="parameter"><code>name</code></em> 562is in the space seperated list of <em class="parameter"><code>ext</code></em> 563</p> 564</div> 565</div> 566<hr> 567<div class="refsect2"> 568<a name="gst-gl-element-propagate-display-context"></a><h3>gst_gl_element_propagate_display_context ()</h3> 569<pre class="programlisting"><span class="returnvalue">void</span> 570gst_gl_element_propagate_display_context 571 (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>, 572 <em class="parameter"><code><a class="link" href="GstGLDisplay.html" title="GstGLDisplay"><span class="type">GstGLDisplay</span></a> *display</code></em>);</pre> 573</div> 574</div> 575<div class="refsect1"> 576<a name="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.other_details"></a><h2>Types and Values</h2> 577</div> 578<div class="refsect1"> 579<a name="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.see-also"></a><h2>See Also</h2> 580<p><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p> 581</div> 582</div> 583<div class="footer"> 584<hr>Generated by GTK-Doc V1.28</div> 585</body> 586</html>