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>GstGLSL: 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="GstGLShader.html" title="GstGLShader"> 10<link rel="next" href="GstGLSLStage.html" title="GstGLSLStage"> 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-GstGLSL.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="GstGLShader.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 23<td><a accesskey="n" href="GstGLSLStage.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-GstGLSL"></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-GstGLSL.top_of_page"></a>GstGLSL</span></h2> 30<p>GstGLSL — helpers for dealing with OpenGL shaders</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-GstGLSL.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 class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="returnvalue">GstGLSLProfile</span></a> 45</td> 46<td class="function_name"> 47<a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-glsl-profile-from-string" title="gst_glsl_profile_from_string ()">gst_glsl_profile_from_string</a> <span class="c_punctuation">()</span> 48</td> 49</tr> 50<tr> 51<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 52</td> 53<td class="function_name"> 54<a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-glsl-profile-to-string" title="gst_glsl_profile_to_string ()">gst_glsl_profile_to_string</a> <span class="c_punctuation">()</span> 55</td> 56</tr> 57<tr> 58<td class="function_type"> 59<a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="returnvalue">GstGLSLVersion</span></a> 60</td> 61<td class="function_name"> 62<a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-glsl-version-from-string" title="gst_glsl_version_from_string ()">gst_glsl_version_from_string</a> <span class="c_punctuation">()</span> 63</td> 64</tr> 65<tr> 66<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 67</td> 68<td class="function_name"> 69<a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-glsl-version-to-string" title="gst_glsl_version_to_string ()">gst_glsl_version_to_string</a> <span class="c_punctuation">()</span> 70</td> 71</tr> 72<tr> 73<td class="function_type"> 74<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 75</td> 76<td class="function_name"> 77<a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-glsl-version-profile-from-string" title="gst_glsl_version_profile_from_string ()">gst_glsl_version_profile_from_string</a> <span class="c_punctuation">()</span> 78</td> 79</tr> 80<tr> 81<td class="function_type"> 82<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 83</td> 84<td class="function_name"> 85<a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-glsl-version-profile-to-string" title="gst_glsl_version_profile_to_string ()">gst_glsl_version_profile_to_string</a> <span class="c_punctuation">()</span> 86</td> 87</tr> 88<tr> 89<td class="function_type"> 90<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 91</td> 92<td class="function_name"> 93<a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-glsl-string-get-version-profile" title="gst_glsl_string_get_version_profile ()">gst_glsl_string_get_version_profile</a> <span class="c_punctuation">()</span> 94</td> 95</tr> 96<tr> 97<td class="function_type"> 98<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 99</td> 100<td class="function_name"> 101<a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-gl-context-supports-glsl-profile-version" title="gst_gl_context_supports_glsl_profile_version ()">gst_gl_context_supports_glsl_profile_version</a> <span class="c_punctuation">()</span> 102</td> 103</tr> 104<tr> 105<td class="function_type"> 106<a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="returnvalue">GstGLSLVersion</span></a> 107</td> 108<td class="function_name"> 109<a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-gl-version-to-glsl-version" title="gst_gl_version_to_glsl_version ()">gst_gl_version_to_glsl_version</a> <span class="c_punctuation">()</span> 110</td> 111</tr> 112<tr> 113<td class="function_type"> 114<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 115</td> 116<td class="function_name"> 117<a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-gl-context-supports-precision" title="gst_gl_context_supports_precision ()">gst_gl_context_supports_precision</a> <span class="c_punctuation">()</span> 118</td> 119</tr> 120<tr> 121<td class="function_type"> 122<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 123</td> 124<td class="function_name"> 125<a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-gl-context-supports-precision-highp" title="gst_gl_context_supports_precision_highp ()">gst_gl_context_supports_precision_highp</a> <span class="c_punctuation">()</span> 126</td> 127</tr> 128</tbody> 129</table></div> 130</div> 131<div class="refsect1"> 132<a name="gst-plugins-base-libs-GstGLSL.other"></a><h2>Types and Values</h2> 133<div class="informaltable"><table class="informaltable" width="100%" border="0"> 134<colgroup> 135<col width="150px" class="name"> 136<col class="description"> 137</colgroup> 138<tbody> 139<tr> 140<td class="define_keyword">#define</td> 141<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GST-GLSL-ERROR:CAPS" title="GST_GLSL_ERROR">GST_GLSL_ERROR</a></td> 142</tr> 143<tr> 144<td class="datatype_keyword">enum</td> 145<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLError" title="enum GstGLSLError">GstGLSLError</a></td> 146</tr> 147<tr> 148<td class="datatype_keyword">enum</td> 149<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile">GstGLSLProfile</a></td> 150</tr> 151<tr> 152<td class="datatype_keyword">enum</td> 153<td class="function_name"><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion">GstGLSLVersion</a></td> 154</tr> 155</tbody> 156</table></div> 157</div> 158<div class="refsect1"> 159<a name="gst-plugins-base-libs-GstGLSL.includes"></a><h2>Includes</h2> 160<pre class="synopsis">#include <gst/gl/gl.h> 161</pre> 162</div> 163<div class="refsect1"> 164<a name="gst-plugins-base-libs-GstGLSL.description"></a><h2>Description</h2> 165</div> 166<div class="refsect1"> 167<a name="gst-plugins-base-libs-GstGLSL.functions_details"></a><h2>Functions</h2> 168<div class="refsect2"> 169<a name="gst-glsl-profile-from-string"></a><h3>gst_glsl_profile_from_string ()</h3> 170<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="returnvalue">GstGLSLProfile</span></a> 171gst_glsl_profile_from_string (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *string</code></em>);</pre> 172<div class="refsect3"> 173<a name="gst-glsl-profile-from-string.parameters"></a><h4>Parameters</h4> 174<div class="informaltable"><table class="informaltable" width="100%" border="0"> 175<colgroup> 176<col width="150px" class="parameters_name"> 177<col class="parameters_description"> 178<col width="200px" class="parameters_annotations"> 179</colgroup> 180<tbody><tr> 181<td class="parameter_name"><p>string</p></td> 182<td class="parameter_description"><p>a GLSL version string</p></td> 183<td class="parameter_annotations"> </td> 184</tr></tbody> 185</table></div> 186</div> 187<div class="refsect3"> 188<a name="gst-glsl-profile-from-string.returns"></a><h4>Returns</h4> 189<p> the <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a> of <em class="parameter"><code>string</code></em> 190or <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GST-GLSL-PROFILE-NONE:CAPS"><code class="literal">GST_GLSL_PROFILE_NONE</code></a> on error</p> 191</div> 192</div> 193<hr> 194<div class="refsect2"> 195<a name="gst-glsl-profile-to-string"></a><h3>gst_glsl_profile_to_string ()</h3> 196<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 197gst_glsl_profile_to_string (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a> profile</code></em>);</pre> 198<div class="refsect3"> 199<a name="gst-glsl-profile-to-string.parameters"></a><h4>Parameters</h4> 200<div class="informaltable"><table class="informaltable" width="100%" border="0"> 201<colgroup> 202<col width="150px" class="parameters_name"> 203<col class="parameters_description"> 204<col width="200px" class="parameters_annotations"> 205</colgroup> 206<tbody><tr> 207<td class="parameter_name"><p>profile</p></td> 208<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a></p></td> 209<td class="parameter_annotations"> </td> 210</tr></tbody> 211</table></div> 212</div> 213<div class="refsect3"> 214<a name="gst-glsl-profile-to-string.returns"></a><h4>Returns</h4> 215<p>the name for <em class="parameter"><code>profile</code></em> 216or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error. </p> 217<p><span class="annotation">[<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></p> 218</div> 219</div> 220<hr> 221<div class="refsect2"> 222<a name="gst-glsl-version-from-string"></a><h3>gst_glsl_version_from_string ()</h3> 223<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="returnvalue">GstGLSLVersion</span></a> 224gst_glsl_version_from_string (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *string</code></em>);</pre> 225<div class="refsect3"> 226<a name="gst-glsl-version-from-string.parameters"></a><h4>Parameters</h4> 227<div class="informaltable"><table class="informaltable" width="100%" border="0"> 228<colgroup> 229<col width="150px" class="parameters_name"> 230<col class="parameters_description"> 231<col width="200px" class="parameters_annotations"> 232</colgroup> 233<tbody><tr> 234<td class="parameter_name"><p>string</p></td> 235<td class="parameter_description"><p>a GLSL version string</p></td> 236<td class="parameter_annotations"> </td> 237</tr></tbody> 238</table></div> 239</div> 240<div class="refsect3"> 241<a name="gst-glsl-version-from-string.returns"></a><h4>Returns</h4> 242<p> the <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a> of <em class="parameter"><code>string</code></em> 243or <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GST-GLSL-VERSION-NONE:CAPS"><code class="literal">GST_GLSL_VERSION_NONE</code></a> on error</p> 244</div> 245</div> 246<hr> 247<div class="refsect2"> 248<a name="gst-glsl-version-to-string"></a><h3>gst_glsl_version_to_string ()</h3> 249<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 250gst_glsl_version_to_string (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a> version</code></em>);</pre> 251<div class="refsect3"> 252<a name="gst-glsl-version-to-string.parameters"></a><h4>Parameters</h4> 253<div class="informaltable"><table class="informaltable" width="100%" border="0"> 254<colgroup> 255<col width="150px" class="parameters_name"> 256<col class="parameters_description"> 257<col width="200px" class="parameters_annotations"> 258</colgroup> 259<tbody><tr> 260<td class="parameter_name"><p>version</p></td> 261<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a></p></td> 262<td class="parameter_annotations"> </td> 263</tr></tbody> 264</table></div> 265</div> 266<div class="refsect3"> 267<a name="gst-glsl-version-to-string.returns"></a><h4>Returns</h4> 268<p>the name of <em class="parameter"><code>version</code></em> 269or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> on error. </p> 270<p><span class="annotation">[<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></p> 271</div> 272</div> 273<hr> 274<div class="refsect2"> 275<a name="gst-glsl-version-profile-from-string"></a><h3>gst_glsl_version_profile_from_string ()</h3> 276<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 277gst_glsl_version_profile_from_string (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *string</code></em>, 278 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a> *version_ret</code></em>, 279 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a> *profile_ret</code></em>);</pre> 280<p>Note: this function expects either a <span class="type">version</span> GLSL preprocesser directive 281or a valid GLSL version and/or profile.</p> 282<div class="refsect3"> 283<a name="gst-glsl-version-profile-from-string.parameters"></a><h4>Parameters</h4> 284<div class="informaltable"><table class="informaltable" width="100%" border="0"> 285<colgroup> 286<col width="150px" class="parameters_name"> 287<col class="parameters_description"> 288<col width="200px" class="parameters_annotations"> 289</colgroup> 290<tbody> 291<tr> 292<td class="parameter_name"><p>string</p></td> 293<td class="parameter_description"><p>a valid GLSL <span class="type">version</span> string</p></td> 294<td class="parameter_annotations"> </td> 295</tr> 296<tr> 297<td class="parameter_name"><p>version_ret</p></td> 298<td class="parameter_description"><p>resulting <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a>. </p></td> 299<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 300</tr> 301<tr> 302<td class="parameter_name"><p>profile_ret</p></td> 303<td class="parameter_description"><p>resulting <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a>. </p></td> 304<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 305</tr> 306</tbody> 307</table></div> 308</div> 309<div class="refsect3"> 310<a name="gst-glsl-version-profile-from-string.returns"></a><h4>Returns</h4> 311<p> TRUE if a valid <span class="type">version</span> string was found, FALSE otherwise</p> 312</div> 313</div> 314<hr> 315<div class="refsect2"> 316<a name="gst-glsl-version-profile-to-string"></a><h3>gst_glsl_version_profile_to_string ()</h3> 317<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * 318gst_glsl_version_profile_to_string (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a> version</code></em>, 319 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a> profile</code></em>);</pre> 320<div class="refsect3"> 321<a name="gst-glsl-version-profile-to-string.parameters"></a><h4>Parameters</h4> 322<div class="informaltable"><table class="informaltable" width="100%" border="0"> 323<colgroup> 324<col width="150px" class="parameters_name"> 325<col class="parameters_description"> 326<col width="200px" class="parameters_annotations"> 327</colgroup> 328<tbody> 329<tr> 330<td class="parameter_name"><p>version</p></td> 331<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a></p></td> 332<td class="parameter_annotations"> </td> 333</tr> 334<tr> 335<td class="parameter_name"><p>profile</p></td> 336<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a></p></td> 337<td class="parameter_annotations"> </td> 338</tr> 339</tbody> 340</table></div> 341</div> 342<div class="refsect3"> 343<a name="gst-glsl-version-profile-to-string.returns"></a><h4>Returns</h4> 344<p> the combined GLSL <span class="type">version</span> string for <em class="parameter"><code>version</code></em> 345and <em class="parameter"><code>profile</code></em> 346</p> 347</div> 348</div> 349<hr> 350<div class="refsect2"> 351<a name="gst-glsl-string-get-version-profile"></a><h3>gst_glsl_string_get_version_profile ()</h3> 352<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 353gst_glsl_string_get_version_profile (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *s</code></em>, 354 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a> *version</code></em>, 355 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a> *profile</code></em>);</pre> 356<p>Note: this function first searches the first 1 kilobytes for a <span class="type">version</span> 357preprocessor directive and then executes <a class="link" href="gst-plugins-base-libs-GstGLSL.html#gst-glsl-version-profile-from-string" title="gst_glsl_version_profile_from_string ()"><code class="function">gst_glsl_version_profile_from_string()</code></a>.</p> 358<div class="refsect3"> 359<a name="gst-glsl-string-get-version-profile.parameters"></a><h4>Parameters</h4> 360<div class="informaltable"><table class="informaltable" width="100%" border="0"> 361<colgroup> 362<col width="150px" class="parameters_name"> 363<col class="parameters_description"> 364<col width="200px" class="parameters_annotations"> 365</colgroup> 366<tbody> 367<tr> 368<td class="parameter_name"><p>s</p></td> 369<td class="parameter_description"><p>string to search for a valid <span class="type">version</span> string</p></td> 370<td class="parameter_annotations"> </td> 371</tr> 372<tr> 373<td class="parameter_name"><p>version</p></td> 374<td class="parameter_description"><p>resulting <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a>. </p></td> 375<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 376</tr> 377<tr> 378<td class="parameter_name"><p>profile</p></td> 379<td class="parameter_description"><p>resulting <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a>. </p></td> 380<td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span></td> 381</tr> 382</tbody> 383</table></div> 384</div> 385<div class="refsect3"> 386<a name="gst-glsl-string-get-version-profile.returns"></a><h4>Returns</h4> 387<p> TRUE if a valid <span class="type">version</span> string was found, FALSE otherwise</p> 388</div> 389</div> 390<hr> 391<div class="refsect2"> 392<a name="gst-gl-context-supports-glsl-profile-version"></a><h3>gst_gl_context_supports_glsl_profile_version ()</h3> 393<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 394gst_gl_context_supports_glsl_profile_version 395 (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>, 396 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a> version</code></em>, 397 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a> profile</code></em>);</pre> 398<div class="refsect3"> 399<a name="gst-gl-context-supports-glsl-profile-version.parameters"></a><h4>Parameters</h4> 400<div class="informaltable"><table class="informaltable" width="100%" border="0"> 401<colgroup> 402<col width="150px" class="parameters_name"> 403<col class="parameters_description"> 404<col width="200px" class="parameters_annotations"> 405</colgroup> 406<tbody> 407<tr> 408<td class="parameter_name"><p>context</p></td> 409<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td> 410<td class="parameter_annotations"> </td> 411</tr> 412<tr> 413<td class="parameter_name"><p>version</p></td> 414<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a></p></td> 415<td class="parameter_annotations"> </td> 416</tr> 417<tr> 418<td class="parameter_name"><p>profile</p></td> 419<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a></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-context-supports-glsl-profile-version.returns"></a><h4>Returns</h4> 427<p> Whether <em class="parameter"><code>context</code></em> 428supports the combination of <em class="parameter"><code>version</code></em> 429with <em class="parameter"><code>profile</code></em> 430</p> 431</div> 432</div> 433<hr> 434<div class="refsect2"> 435<a name="gst-gl-version-to-glsl-version"></a><h3>gst_gl_version_to_glsl_version ()</h3> 436<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="returnvalue">GstGLSLVersion</span></a> 437gst_gl_version_to_glsl_version (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLAPI.html#GstGLAPI" title="enum GstGLAPI"><span class="type">GstGLAPI</span></a> gl_api</code></em>, 438 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> maj</code></em>, 439 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> min</code></em>);</pre> 440<div class="refsect3"> 441<a name="gst-gl-version-to-glsl-version.parameters"></a><h4>Parameters</h4> 442<div class="informaltable"><table class="informaltable" width="100%" border="0"> 443<colgroup> 444<col width="150px" class="parameters_name"> 445<col class="parameters_description"> 446<col width="200px" class="parameters_annotations"> 447</colgroup> 448<tbody> 449<tr> 450<td class="parameter_name"><p>gl_api</p></td> 451<td class="parameter_description"><p>the <a class="link" href="gst-plugins-base-libs-GstGLAPI.html#GstGLAPI" title="enum GstGLAPI"><span class="type">GstGLAPI</span></a></p></td> 452<td class="parameter_annotations"> </td> 453</tr> 454<tr> 455<td class="parameter_name"><p>maj</p></td> 456<td class="parameter_description"><p>the major GL version</p></td> 457<td class="parameter_annotations"> </td> 458</tr> 459<tr> 460<td class="parameter_name"><p>min</p></td> 461<td class="parameter_description"><p>the minor GL version</p></td> 462<td class="parameter_annotations"> </td> 463</tr> 464</tbody> 465</table></div> 466</div> 467<div class="refsect3"> 468<a name="gst-gl-version-to-glsl-version.returns"></a><h4>Returns</h4> 469<p> The minimum supported <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a> available for <em class="parameter"><code>gl_api</code></em> 470, <em class="parameter"><code>maj</code></em> 471and <em class="parameter"><code>min</code></em> 472</p> 473</div> 474</div> 475<hr> 476<div class="refsect2"> 477<a name="gst-gl-context-supports-precision"></a><h3>gst_gl_context_supports_precision ()</h3> 478<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 479gst_gl_context_supports_precision (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>, 480 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a> version</code></em>, 481 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a> profile</code></em>);</pre> 482<div class="refsect3"> 483<a name="gst-gl-context-supports-precision.parameters"></a><h4>Parameters</h4> 484<div class="informaltable"><table class="informaltable" width="100%" border="0"> 485<colgroup> 486<col width="150px" class="parameters_name"> 487<col class="parameters_description"> 488<col width="200px" class="parameters_annotations"> 489</colgroup> 490<tbody> 491<tr> 492<td class="parameter_name"><p>context</p></td> 493<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td> 494<td class="parameter_annotations"> </td> 495</tr> 496<tr> 497<td class="parameter_name"><p>version</p></td> 498<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a></p></td> 499<td class="parameter_annotations"> </td> 500</tr> 501<tr> 502<td class="parameter_name"><p>profile</p></td> 503<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a></p></td> 504<td class="parameter_annotations"> </td> 505</tr> 506</tbody> 507</table></div> 508</div> 509<div class="refsect3"> 510<a name="gst-gl-context-supports-precision.returns"></a><h4>Returns</h4> 511<p> whether <em class="parameter"><code>context</code></em> 512supports the 'precision' specifier in GLSL shaders</p> 513</div> 514<p class="since">Since: <a class="link" href="ix03.html#api-index-1.16">1.16</a></p> 515</div> 516<hr> 517<div class="refsect2"> 518<a name="gst-gl-context-supports-precision-highp"></a><h3>gst_gl_context_supports_precision_highp ()</h3> 519<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> 520gst_gl_context_supports_precision_highp 521 (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>, 522 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a> version</code></em>, 523 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a> profile</code></em>);</pre> 524<div class="refsect3"> 525<a name="gst-gl-context-supports-precision-highp.parameters"></a><h4>Parameters</h4> 526<div class="informaltable"><table class="informaltable" width="100%" border="0"> 527<colgroup> 528<col width="150px" class="parameters_name"> 529<col class="parameters_description"> 530<col width="200px" class="parameters_annotations"> 531</colgroup> 532<tbody> 533<tr> 534<td class="parameter_name"><p>context</p></td> 535<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td> 536<td class="parameter_annotations"> </td> 537</tr> 538<tr> 539<td class="parameter_name"><p>version</p></td> 540<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLVersion" title="enum GstGLSLVersion"><span class="type">GstGLSLVersion</span></a></p></td> 541<td class="parameter_annotations"> </td> 542</tr> 543<tr> 544<td class="parameter_name"><p>profile</p></td> 545<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLProfile" title="enum GstGLSLProfile"><span class="type">GstGLSLProfile</span></a></p></td> 546<td class="parameter_annotations"> </td> 547</tr> 548</tbody> 549</table></div> 550</div> 551<div class="refsect3"> 552<a name="gst-gl-context-supports-precision-highp.returns"></a><h4>Returns</h4> 553<p> whether <em class="parameter"><code>context</code></em> 554supports the 'precision highp' specifier in GLSL shaders</p> 555</div> 556<p class="since">Since: <a class="link" href="ix03.html#api-index-1.16">1.16</a></p> 557</div> 558</div> 559<div class="refsect1"> 560<a name="gst-plugins-base-libs-GstGLSL.other_details"></a><h2>Types and Values</h2> 561<div class="refsect2"> 562<a name="GST-GLSL-ERROR:CAPS"></a><h3>GST_GLSL_ERROR</h3> 563<pre class="programlisting">#define GST_GLSL_ERROR (gst_glsl_error_quark ()) 564</pre> 565<p>Error domain for GStreamer's GLSL module. Errors in this domain will be 566from the <a class="link" href="gst-plugins-base-libs-GstGLSL.html#GstGLSLError" title="enum GstGLSLError"><span class="type">GstGLSLError</span></a> enumeration</p> 567</div> 568<hr> 569<div class="refsect2"> 570<a name="GstGLSLError"></a><h3>enum GstGLSLError</h3> 571<p>Compilation stage that caused an error</p> 572<div class="refsect3"> 573<a name="GstGLSLError.members"></a><h4>Members</h4> 574<div class="informaltable"><table class="informaltable" width="100%" border="0"> 575<colgroup> 576<col width="300px" class="enum_members_name"> 577<col class="enum_members_description"> 578<col width="200px" class="enum_members_annotations"> 579</colgroup> 580<tbody> 581<tr> 582<td class="enum_member_name"><p><a name="GST-GLSL-ERROR-COMPILE:CAPS"></a>GST_GLSL_ERROR_COMPILE</p></td> 583<td class="enum_member_description"> 584<p>Compilation error occured</p> 585</td> 586<td class="enum_member_annotations"> </td> 587</tr> 588<tr> 589<td class="enum_member_name"><p><a name="GST-GLSL-ERROR-LINK:CAPS"></a>GST_GLSL_ERROR_LINK</p></td> 590<td class="enum_member_description"> 591<p>Link error occured</p> 592</td> 593<td class="enum_member_annotations"> </td> 594</tr> 595<tr> 596<td class="enum_member_name"><p><a name="GST-GLSL-ERROR-PROGRAM:CAPS"></a>GST_GLSL_ERROR_PROGRAM</p></td> 597<td class="enum_member_description"> 598<p>General program error occured</p> 599</td> 600<td class="enum_member_annotations"> </td> 601</tr> 602</tbody> 603</table></div> 604</div> 605<p class="since">Since: <a class="link" href="ix08.html#api-index-1.8">1.8</a></p> 606</div> 607<hr> 608<div class="refsect2"> 609<a name="GstGLSLProfile"></a><h3>enum GstGLSLProfile</h3> 610<p>GLSL profiles</p> 611<div class="refsect3"> 612<a name="GstGLSLProfile.members"></a><h4>Members</h4> 613<div class="informaltable"><table class="informaltable" width="100%" border="0"> 614<colgroup> 615<col width="300px" class="enum_members_name"> 616<col class="enum_members_description"> 617<col width="200px" class="enum_members_annotations"> 618</colgroup> 619<tbody> 620<tr> 621<td class="enum_member_name"><p><a name="GST-GLSL-PROFILE-NONE:CAPS"></a>GST_GLSL_PROFILE_NONE</p></td> 622<td class="enum_member_description"> 623<p>no profile supported/available</p> 624</td> 625<td class="enum_member_annotations"> </td> 626</tr> 627<tr> 628<td class="enum_member_name"><p><a name="GST-GLSL-PROFILE-ES:CAPS"></a>GST_GLSL_PROFILE_ES</p></td> 629<td class="enum_member_description"> 630<p>OpenGL|ES profile</p> 631</td> 632<td class="enum_member_annotations"> </td> 633</tr> 634<tr> 635<td class="enum_member_name"><p><a name="GST-GLSL-PROFILE-CORE:CAPS"></a>GST_GLSL_PROFILE_CORE</p></td> 636<td class="enum_member_description"> 637<p>OpenGL core profile</p> 638</td> 639<td class="enum_member_annotations"> </td> 640</tr> 641<tr> 642<td class="enum_member_name"><p><a name="GST-GLSL-PROFILE-COMPATIBILITY:CAPS"></a>GST_GLSL_PROFILE_COMPATIBILITY</p></td> 643<td class="enum_member_description"> 644<p>OpenGL compatibility profile</p> 645</td> 646<td class="enum_member_annotations"> </td> 647</tr> 648<tr> 649<td class="enum_member_name"><p><a name="GST-GLSL-PROFILE-ANY:CAPS"></a>GST_GLSL_PROFILE_ANY</p></td> 650<td class="enum_member_description"> 651<p>any OpenGL/OpenGL|ES profile</p> 652</td> 653<td class="enum_member_annotations"> </td> 654</tr> 655</tbody> 656</table></div> 657</div> 658<p class="since">Since: <a class="link" href="ix08.html#api-index-1.8">1.8</a></p> 659</div> 660<hr> 661<div class="refsect2"> 662<a name="GstGLSLVersion"></a><h3>enum GstGLSLVersion</h3> 663<p>GLSL version list</p> 664<div class="refsect3"> 665<a name="GstGLSLVersion.members"></a><h4>Members</h4> 666<div class="informaltable"><table class="informaltable" width="100%" border="0"> 667<colgroup> 668<col width="300px" class="enum_members_name"> 669<col class="enum_members_description"> 670<col width="200px" class="enum_members_annotations"> 671</colgroup> 672<tbody> 673<tr> 674<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-NONE:CAPS"></a>GST_GLSL_VERSION_NONE</p></td> 675<td class="enum_member_description"> 676<p>no version</p> 677</td> 678<td class="enum_member_annotations"> </td> 679</tr> 680<tr> 681<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-100:CAPS"></a>GST_GLSL_VERSION_100</p></td> 682<td class="enum_member_description"> 683<p>version 100 (only valid for ES)</p> 684</td> 685<td class="enum_member_annotations"> </td> 686</tr> 687<tr> 688<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-110:CAPS"></a>GST_GLSL_VERSION_110</p></td> 689<td class="enum_member_description"> 690<p>version 110 (only valid for compatibility desktop GL)</p> 691</td> 692<td class="enum_member_annotations"> </td> 693</tr> 694<tr> 695<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-120:CAPS"></a>GST_GLSL_VERSION_120</p></td> 696<td class="enum_member_description"> 697<p>version 120 (only valid for compatibility desktop GL)</p> 698</td> 699<td class="enum_member_annotations"> </td> 700</tr> 701<tr> 702<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-130:CAPS"></a>GST_GLSL_VERSION_130</p></td> 703<td class="enum_member_description"> 704<p>version 130 (only valid for compatibility desktop GL)</p> 705</td> 706<td class="enum_member_annotations"> </td> 707</tr> 708<tr> 709<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-140:CAPS"></a>GST_GLSL_VERSION_140</p></td> 710<td class="enum_member_description"> 711<p>version 140 (only valid for compatibility desktop GL)</p> 712</td> 713<td class="enum_member_annotations"> </td> 714</tr> 715<tr> 716<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-150:CAPS"></a>GST_GLSL_VERSION_150</p></td> 717<td class="enum_member_description"> 718<p>version 150 (valid for compatibility/core desktop GL)</p> 719</td> 720<td class="enum_member_annotations"> </td> 721</tr> 722<tr> 723<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-300:CAPS"></a>GST_GLSL_VERSION_300</p></td> 724<td class="enum_member_description"> 725<p>version 300 (only valid for ES)</p> 726</td> 727<td class="enum_member_annotations"> </td> 728</tr> 729<tr> 730<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-310:CAPS"></a>GST_GLSL_VERSION_310</p></td> 731<td class="enum_member_description"> 732<p>version 310 (only valid for ES)</p> 733</td> 734<td class="enum_member_annotations"> </td> 735</tr> 736<tr> 737<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-320:CAPS"></a>GST_GLSL_VERSION_320</p></td> 738<td class="enum_member_description"> 739<p>version 320 (only valid for ES)</p> 740</td> 741<td class="enum_member_annotations"> </td> 742</tr> 743<tr> 744<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-330:CAPS"></a>GST_GLSL_VERSION_330</p></td> 745<td class="enum_member_description"> 746<p>version 330 (valid for compatibility/core desktop GL)</p> 747</td> 748<td class="enum_member_annotations"> </td> 749</tr> 750<tr> 751<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-400:CAPS"></a>GST_GLSL_VERSION_400</p></td> 752<td class="enum_member_description"> 753<p>version 400 (valid for compatibility/core desktop GL)</p> 754</td> 755<td class="enum_member_annotations"> </td> 756</tr> 757<tr> 758<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-410:CAPS"></a>GST_GLSL_VERSION_410</p></td> 759<td class="enum_member_description"> 760<p>version 410 (valid for compatibility/core desktop GL)</p> 761</td> 762<td class="enum_member_annotations"> </td> 763</tr> 764<tr> 765<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-420:CAPS"></a>GST_GLSL_VERSION_420</p></td> 766<td class="enum_member_description"> 767<p>version 420 (valid for compatibility/core desktop GL)</p> 768</td> 769<td class="enum_member_annotations"> </td> 770</tr> 771<tr> 772<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-430:CAPS"></a>GST_GLSL_VERSION_430</p></td> 773<td class="enum_member_description"> 774<p>version 430 (valid for compatibility/core desktop GL)</p> 775</td> 776<td class="enum_member_annotations"> </td> 777</tr> 778<tr> 779<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-440:CAPS"></a>GST_GLSL_VERSION_440</p></td> 780<td class="enum_member_description"> 781<p>version 440 (valid for compatibility/core desktop GL)</p> 782</td> 783<td class="enum_member_annotations"> </td> 784</tr> 785<tr> 786<td class="enum_member_name"><p><a name="GST-GLSL-VERSION-450:CAPS"></a>GST_GLSL_VERSION_450</p></td> 787<td class="enum_member_description"> 788<p>version 450 (valid for compatibility/core desktop GL)</p> 789</td> 790<td class="enum_member_annotations"> </td> 791</tr> 792</tbody> 793</table></div> 794</div> 795<p class="since">Since: <a class="link" href="ix08.html#api-index-1.8">1.8</a></p> 796</div> 797</div> 798<div class="refsect1"> 799<a name="gst-plugins-base-libs-GstGLSL.see-also"></a><h2>See Also</h2> 800<p><a class="link" href="GstGLSLStage.html" title="GstGLSLStage"><span class="type">GstGLSLStage</span></a>, <a class="link" href="GstGLShader.html" title="GstGLShader"><span class="type">GstGLShader</span></a></p> 801</div> 802</div> 803<div class="footer"> 804<hr>Generated by GTK-Doc V1.28</div> 805</body> 806</html>