• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5<title>GstGLFormat: 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-debugging.html" title="OpenGL debugging">
10<link rel="next" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.html" title="GstGLUtils">
11<meta name="generator" content="GTK-Doc V1.28 (XML mode)">
12<link rel="stylesheet" href="style.css" type="text/css">
13</head>
14<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16<td width="100%" align="left" class="shortcuts">
17<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span18                  <a href="#gst-plugins-base-libs-OpenGL-Formats.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-debugging.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23<td><a accesskey="n" href="gst-plugins-base-libs-OpenGL-Miscellaneous-Utilities.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-Formats"></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-Formats.top_of_page"></a>GstGLFormat</span></h2>
30<p>GstGLFormat — utilities for dealing with OpenGL formats</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-Formats.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-Formats.html#gst-gl-format-is-supported" title="gst_gl_format_is_supported ()">gst_gl_format_is_supported</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#guint"><span class="returnvalue">guint</span></a>
53</td>
54<td class="function_name">
55<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#gst-gl-format-type-n-bytes" title="gst_gl_format_type_n_bytes ()">gst_gl_format_type_n_bytes</a> <span class="c_punctuation">()</span>
56</td>
57</tr>
58<tr>
59<td class="function_type">
60<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="returnvalue">GstGLFormat</span></a>
61</td>
62<td class="function_name">
63<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#gst-gl-format-from-video-info" title="gst_gl_format_from_video_info ()">gst_gl_format_from_video_info</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#guint"><span class="returnvalue">guint</span></a>
69</td>
70<td class="function_name">
71<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#gst-gl-sized-gl-format-from-gl-format-type" title="gst_gl_sized_gl_format_from_gl_format_type ()">gst_gl_sized_gl_format_from_gl_format_type</a> <span class="c_punctuation">()</span>
72</td>
73</tr>
74<tr>
75<td class="function_type">
76<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="returnvalue">GstGLTextureTarget</span></a>
77</td>
78<td class="function_name">
79<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#gst-gl-texture-target-from-string" title="gst_gl_texture_target_from_string ()">gst_gl_texture_target_from_string</a> <span class="c_punctuation">()</span>
80</td>
81</tr>
82<tr>
83<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
84</td>
85<td class="function_name">
86<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#gst-gl-texture-target-to-string" title="gst_gl_texture_target_to_string ()">gst_gl_texture_target_to_string</a> <span class="c_punctuation">()</span>
87</td>
88</tr>
89<tr>
90<td class="function_type">
91<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
92</td>
93<td class="function_name">
94<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#gst-gl-texture-target-to-gl" title="gst_gl_texture_target_to_gl ()">gst_gl_texture_target_to_gl</a> <span class="c_punctuation">()</span>
95</td>
96</tr>
97<tr>
98<td class="function_type">
99<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="returnvalue">GstGLTextureTarget</span></a>
100</td>
101<td class="function_name">
102<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#gst-gl-texture-target-from-gl" title="gst_gl_texture_target_from_gl ()">gst_gl_texture_target_from_gl</a> <span class="c_punctuation">()</span>
103</td>
104</tr>
105<tr>
106<td class="function_type">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
107</td>
108<td class="function_name">
109<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#gst-gl-texture-target-to-buffer-pool-option" title="gst_gl_texture_target_to_buffer_pool_option ()">gst_gl_texture_target_to_buffer_pool_option</a> <span class="c_punctuation">()</span>
110</td>
111</tr>
112<tr>
113<td class="function_type">
114<span class="returnvalue">void</span>
115</td>
116<td class="function_name">
117<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#gst-gl-format-type-from-sized-gl-format" title="gst_gl_format_type_from_sized_gl_format ()">gst_gl_format_type_from_sized_gl_format</a> <span class="c_punctuation">()</span>
118</td>
119</tr>
120</tbody>
121</table></div>
122</div>
123<div class="refsect1">
124<a name="gst-plugins-base-libs-OpenGL-Formats.other"></a><h2>Types and Values</h2>
125<div class="informaltable"><table class="informaltable" width="100%" border="0">
126<colgroup>
127<col width="150px" class="name">
128<col class="description">
129</colgroup>
130<tbody>
131<tr>
132<td class="datatype_keyword">enum</td>
133<td class="function_name"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget">GstGLTextureTarget</a></td>
134</tr>
135<tr>
136<td class="define_keyword">#define</td>
137<td class="function_name"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-TEXTURE-TARGET-2D-STR:CAPS" title="GST_GL_TEXTURE_TARGET_2D_STR">GST_GL_TEXTURE_TARGET_2D_STR</a></td>
138</tr>
139<tr>
140<td class="define_keyword">#define</td>
141<td class="function_name"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-TEXTURE-TARGET-RECTANGLE-STR:CAPS" title="GST_GL_TEXTURE_TARGET_RECTANGLE_STR">GST_GL_TEXTURE_TARGET_RECTANGLE_STR</a></td>
142</tr>
143<tr>
144<td class="define_keyword">#define</td>
145<td class="function_name"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-TEXTURE-TARGET-EXTERNAL-OES-STR:CAPS" title="GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR">GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR</a></td>
146</tr>
147<tr>
148<td class="define_keyword">#define</td>
149<td class="function_name"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-BUFFER-POOL-OPTION-GL-TEXTURE-TARGET-2D:CAPS" title="GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D">GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D</a></td>
150</tr>
151<tr>
152<td class="define_keyword">#define</td>
153<td class="function_name"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-BUFFER-POOL-OPTION-GL-TEXTURE-TARGET-RECTANGLE:CAPS" title="GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE">GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE</a></td>
154</tr>
155<tr>
156<td class="define_keyword">#define</td>
157<td class="function_name"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-BUFFER-POOL-OPTION-GL-TEXTURE-TARGET-EXTERNAL-OES:CAPS" title="GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES">GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES</a></td>
158</tr>
159<tr>
160<td class="datatype_keyword">enum</td>
161<td class="function_name"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat">GstGLFormat</a></td>
162</tr>
163</tbody>
164</table></div>
165</div>
166<div class="refsect1">
167<a name="gst-plugins-base-libs-OpenGL-Formats.includes"></a><h2>Includes</h2>
168<pre class="synopsis">#include &lt;gst/gl/gl.h&gt;
169</pre>
170</div>
171<div class="refsect1">
172<a name="gst-plugins-base-libs-OpenGL-Formats.description"></a><h2>Description</h2>
173<p>Some useful utilities for converting between various formats and OpenGL
174formats.</p>
175</div>
176<div class="refsect1">
177<a name="gst-plugins-base-libs-OpenGL-Formats.functions_details"></a><h2>Functions</h2>
178<div class="refsect2">
179<a name="gst-gl-format-is-supported"></a><h3>gst_gl_format_is_supported ()</h3>
180<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
181gst_gl_format_is_supported (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>,
182                            <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> format</code></em>);</pre>
183<div class="refsect3">
184<a name="gst-gl-format-is-supported.parameters"></a><h4>Parameters</h4>
185<div class="informaltable"><table class="informaltable" width="100%" border="0">
186<colgroup>
187<col width="150px" class="parameters_name">
188<col class="parameters_description">
189<col width="200px" class="parameters_annotations">
190</colgroup>
191<tbody>
192<tr>
193<td class="parameter_name"><p>context</p></td>
194<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td>
195<td class="parameter_annotations"> </td>
196</tr>
197<tr>
198<td class="parameter_name"><p>format</p></td>
199<td class="parameter_description"><p>the <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> to check is supported by <em class="parameter"><code>context</code></em>
200</p></td>
201<td class="parameter_annotations"> </td>
202</tr>
203</tbody>
204</table></div>
205</div>
206<div class="refsect3">
207<a name="gst-gl-format-is-supported.returns"></a><h4>Returns</h4>
208<p> Whether <em class="parameter"><code>format</code></em>
209is supported by <em class="parameter"><code>context</code></em>
210based on the OpenGL API,
211version, or available OpenGL extension/s.</p>
212</div>
213<p class="since">Since: <a class="link" href="ix03.html#api-index-1.16">1.16</a></p>
214</div>
215<hr>
216<div class="refsect2">
217<a name="gst-gl-format-type-n-bytes"></a><h3>gst_gl_format_type_n_bytes ()</h3>
218<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
219gst_gl_format_type_n_bytes (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> format</code></em>,
220                            <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> type</code></em>);</pre>
221<div class="refsect3">
222<a name="gst-gl-format-type-n-bytes.parameters"></a><h4>Parameters</h4>
223<div class="informaltable"><table class="informaltable" width="100%" border="0">
224<colgroup>
225<col width="150px" class="parameters_name">
226<col class="parameters_description">
227<col width="200px" class="parameters_annotations">
228</colgroup>
229<tbody>
230<tr>
231<td class="parameter_name"><p>format</p></td>
232<td class="parameter_description"><p>the OpenGL format, <code class="literal">GL_RGBA</code>, <code class="literal">GL_LUMINANCE</code>, etc</p></td>
233<td class="parameter_annotations"> </td>
234</tr>
235<tr>
236<td class="parameter_name"><p>type</p></td>
237<td class="parameter_description"><p>the OpenGL type, <code class="literal">GL_UNSIGNED_BYTE</code>, <code class="literal">GL_FLOAT</code>, etc</p></td>
238<td class="parameter_annotations"> </td>
239</tr>
240</tbody>
241</table></div>
242</div>
243<div class="refsect3">
244<a name="gst-gl-format-type-n-bytes.returns"></a><h4>Returns</h4>
245<p> the number of bytes the specified <em class="parameter"><code>format</code></em>
246, <em class="parameter"><code>type</code></em>
247combination takes
248per pixel</p>
249</div>
250</div>
251<hr>
252<div class="refsect2">
253<a name="gst-gl-format-from-video-info"></a><h3>gst_gl_format_from_video_info ()</h3>
254<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="returnvalue">GstGLFormat</span></a>
255gst_gl_format_from_video_info (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>,
256                               <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstVideo.html#GstVideoInfo" title="struct GstVideoInfo"><span class="type">GstVideoInfo</span></a> *vinfo</code></em>,
257                               <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>
258<div class="refsect3">
259<a name="gst-gl-format-from-video-info.parameters"></a><h4>Parameters</h4>
260<div class="informaltable"><table class="informaltable" width="100%" border="0">
261<colgroup>
262<col width="150px" class="parameters_name">
263<col class="parameters_description">
264<col width="200px" class="parameters_annotations">
265</colgroup>
266<tbody>
267<tr>
268<td class="parameter_name"><p>context</p></td>
269<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td>
270<td class="parameter_annotations"> </td>
271</tr>
272<tr>
273<td class="parameter_name"><p>vinfo</p></td>
274<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>
275<td class="parameter_annotations"> </td>
276</tr>
277<tr>
278<td class="parameter_name"><p>plane</p></td>
279<td class="parameter_description"><p>the plane number in <em class="parameter"><code>vinfo</code></em>
280</p></td>
281<td class="parameter_annotations"> </td>
282</tr>
283</tbody>
284</table></div>
285</div>
286<div class="refsect3">
287<a name="gst-gl-format-from-video-info.returns"></a><h4>Returns</h4>
288<p> the <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> necessary for holding the data in <em class="parameter"><code>plane</code></em>
289of <em class="parameter"><code>vinfo</code></em>
290</p>
291</div>
292</div>
293<hr>
294<div class="refsect2">
295<a name="gst-gl-sized-gl-format-from-gl-format-type"></a><h3>gst_gl_sized_gl_format_from_gl_format_type ()</h3>
296<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
297gst_gl_sized_gl_format_from_gl_format_type
298                               (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>,
299                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> format</code></em>,
300                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> type</code></em>);</pre>
301<div class="refsect3">
302<a name="gst-gl-sized-gl-format-from-gl-format-type.parameters"></a><h4>Parameters</h4>
303<div class="informaltable"><table class="informaltable" width="100%" border="0">
304<colgroup>
305<col width="150px" class="parameters_name">
306<col class="parameters_description">
307<col width="200px" class="parameters_annotations">
308</colgroup>
309<tbody>
310<tr>
311<td class="parameter_name"><p>context</p></td>
312<td class="parameter_description"><p>a <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a></p></td>
313<td class="parameter_annotations"> </td>
314</tr>
315<tr>
316<td class="parameter_name"><p>format</p></td>
317<td class="parameter_description"><p>an OpenGL format, <code class="literal">GL_RGBA</code>, <code class="literal">GL_LUMINANCE</code>, etc</p></td>
318<td class="parameter_annotations"> </td>
319</tr>
320<tr>
321<td class="parameter_name"><p>type</p></td>
322<td class="parameter_description"><p>an OpenGL type, <code class="literal">GL_UNSIGNED_BYTE</code>, <code class="literal">GL_FLOAT</code>, etc</p></td>
323<td class="parameter_annotations"> </td>
324</tr>
325</tbody>
326</table></div>
327</div>
328<div class="refsect3">
329<a name="gst-gl-sized-gl-format-from-gl-format-type.returns"></a><h4>Returns</h4>
330<p> the sized internal format specified by <em class="parameter"><code>format</code></em>
331and <em class="parameter"><code>type</code></em>
332that can
333be used in <em class="parameter"><code>context</code></em>
334</p>
335</div>
336</div>
337<hr>
338<div class="refsect2">
339<a name="gst-gl-texture-target-from-string"></a><h3>gst_gl_texture_target_from_string ()</h3>
340<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="returnvalue">GstGLTextureTarget</span></a>
341gst_gl_texture_target_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> *str</code></em>);</pre>
342<div class="refsect3">
343<a name="gst-gl-texture-target-from-string.parameters"></a><h4>Parameters</h4>
344<div class="informaltable"><table class="informaltable" width="100%" border="0">
345<colgroup>
346<col width="150px" class="parameters_name">
347<col class="parameters_description">
348<col width="200px" class="parameters_annotations">
349</colgroup>
350<tbody><tr>
351<td class="parameter_name"><p>str</p></td>
352<td class="parameter_description"><p>a string equivalant to one of the GST_GL_TEXTURE_TARGET_*_STR values</p></td>
353<td class="parameter_annotations"> </td>
354</tr></tbody>
355</table></div>
356</div>
357<div class="refsect3">
358<a name="gst-gl-texture-target-from-string.returns"></a><h4>Returns</h4>
359<p> the <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="type">GstGLTextureTarget</span></a> represented by <em class="parameter"><code>str</code></em>
360or
361<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-TEXTURE-TARGET-NONE:CAPS"><code class="literal">GST_GL_TEXTURE_TARGET_NONE</code></a></p>
362</div>
363</div>
364<hr>
365<div class="refsect2">
366<a name="gst-gl-texture-target-to-string"></a><h3>gst_gl_texture_target_to_string ()</h3>
367<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
368gst_gl_texture_target_to_string (<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>
369<div class="refsect3">
370<a name="gst-gl-texture-target-to-string.parameters"></a><h4>Parameters</h4>
371<div class="informaltable"><table class="informaltable" width="100%" border="0">
372<colgroup>
373<col width="150px" class="parameters_name">
374<col class="parameters_description">
375<col width="200px" class="parameters_annotations">
376</colgroup>
377<tbody><tr>
378<td class="parameter_name"><p>target</p></td>
379<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></p></td>
380<td class="parameter_annotations"> </td>
381</tr></tbody>
382</table></div>
383</div>
384<div class="refsect3">
385<a name="gst-gl-texture-target-to-string.returns"></a><h4>Returns</h4>
386<p> the stringified version of <em class="parameter"><code>target</code></em>
387or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p>
388</div>
389</div>
390<hr>
391<div class="refsect2">
392<a name="gst-gl-texture-target-to-gl"></a><h3>gst_gl_texture_target_to_gl ()</h3>
393<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
394gst_gl_texture_target_to_gl (<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>
395<div class="refsect3">
396<a name="gst-gl-texture-target-to-gl.parameters"></a><h4>Parameters</h4>
397<div class="informaltable"><table class="informaltable" width="100%" border="0">
398<colgroup>
399<col width="150px" class="parameters_name">
400<col class="parameters_description">
401<col width="200px" class="parameters_annotations">
402</colgroup>
403<tbody><tr>
404<td class="parameter_name"><p>target</p></td>
405<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></p></td>
406<td class="parameter_annotations"> </td>
407</tr></tbody>
408</table></div>
409</div>
410<div class="refsect3">
411<a name="gst-gl-texture-target-to-gl.returns"></a><h4>Returns</h4>
412<p> the OpenGL value for binding the <em class="parameter"><code>target</code></em>
413with <code class="function">glBindTexture()</code> and
414similar functions or 0</p>
415</div>
416</div>
417<hr>
418<div class="refsect2">
419<a name="gst-gl-texture-target-from-gl"></a><h3>gst_gl_texture_target_from_gl ()</h3>
420<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="returnvalue">GstGLTextureTarget</span></a>
421gst_gl_texture_target_from_gl (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> target</code></em>);</pre>
422<div class="refsect3">
423<a name="gst-gl-texture-target-from-gl.parameters"></a><h4>Parameters</h4>
424<div class="informaltable"><table class="informaltable" width="100%" border="0">
425<colgroup>
426<col width="150px" class="parameters_name">
427<col class="parameters_description">
428<col width="200px" class="parameters_annotations">
429</colgroup>
430<tbody><tr>
431<td class="parameter_name"><p>target</p></td>
432<td class="parameter_description"><p>an OpenGL texture binding target</p></td>
433<td class="parameter_annotations"> </td>
434</tr></tbody>
435</table></div>
436</div>
437<div class="refsect3">
438<a name="gst-gl-texture-target-from-gl.returns"></a><h4>Returns</h4>
439<p> the <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLTextureTarget" title="enum GstGLTextureTarget"><span class="type">GstGLTextureTarget</span></a> that's equiavalant to <em class="parameter"><code>target</code></em>
440or
441<a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-TEXTURE-TARGET-NONE:CAPS"><code class="literal">GST_GL_TEXTURE_TARGET_NONE</code></a></p>
442</div>
443</div>
444<hr>
445<div class="refsect2">
446<a name="gst-gl-texture-target-to-buffer-pool-option"></a><h3>gst_gl_texture_target_to_buffer_pool_option ()</h3>
447<pre class="programlisting">const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *
448gst_gl_texture_target_to_buffer_pool_option
449                               (<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>
450<div class="refsect3">
451<a name="gst-gl-texture-target-to-buffer-pool-option.parameters"></a><h4>Parameters</h4>
452<div class="informaltable"><table class="informaltable" width="100%" border="0">
453<colgroup>
454<col width="150px" class="parameters_name">
455<col class="parameters_description">
456<col width="200px" class="parameters_annotations">
457</colgroup>
458<tbody><tr>
459<td class="parameter_name"><p>target</p></td>
460<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></p></td>
461<td class="parameter_annotations"> </td>
462</tr></tbody>
463</table></div>
464</div>
465<div class="refsect3">
466<a name="gst-gl-texture-target-to-buffer-pool-option.returns"></a><h4>Returns</h4>
467<p> a string representing the <em class="parameter"><code>GstBufferPoolOption</code></em>
468specified by <em class="parameter"><code>target</code></em>
469</p>
470</div>
471</div>
472<hr>
473<div class="refsect2">
474<a name="gst-gl-format-type-from-sized-gl-format"></a><h3>gst_gl_format_type_from_sized_gl_format ()</h3>
475<pre class="programlisting"><span class="returnvalue">void</span>
476gst_gl_format_type_from_sized_gl_format
477                               (<em class="parameter"><code><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> format</code></em>,
478                                <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a> *unsized_format</code></em>,
479                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *gl_type</code></em>);</pre>
480<p>Get the unsized format and type from <em class="parameter"><code>format</code></em>
481 for usage in glReadPixels,
482glTex{Sub}Image*, glTexImage* and similar functions.</p>
483<div class="refsect3">
484<a name="gst-gl-format-type-from-sized-gl-format.parameters"></a><h4>Parameters</h4>
485<div class="informaltable"><table class="informaltable" width="100%" border="0">
486<colgroup>
487<col width="150px" class="parameters_name">
488<col class="parameters_description">
489<col width="200px" class="parameters_annotations">
490</colgroup>
491<tbody>
492<tr>
493<td class="parameter_name"><p>format</p></td>
494<td class="parameter_description"><p>the sized internal <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a></p></td>
495<td class="parameter_annotations"> </td>
496</tr>
497<tr>
498<td class="parameter_name"><p>unsized_format</p></td>
499<td class="parameter_description"><p>location for the resulting unsized <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GstGLFormat" title="enum GstGLFormat"><span class="type">GstGLFormat</span></a>. </p></td>
500<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>
501</tr>
502<tr>
503<td class="parameter_name"><p>gl_type</p></td>
504<td class="parameter_description"><p>location for the resulting GL type. </p></td>
505<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>
506</tr>
507</tbody>
508</table></div>
509</div>
510<p class="since">Since: <a class="link" href="ix03.html#api-index-1.16">1.16</a></p>
511</div>
512</div>
513<div class="refsect1">
514<a name="gst-plugins-base-libs-OpenGL-Formats.other_details"></a><h2>Types and Values</h2>
515<div class="refsect2">
516<a name="GstGLTextureTarget"></a><h3>enum GstGLTextureTarget</h3>
517<div class="refsect3">
518<a name="GstGLTextureTarget.members"></a><h4>Members</h4>
519<div class="informaltable"><table class="informaltable" width="100%" border="0">
520<colgroup>
521<col width="300px" class="enum_members_name">
522<col class="enum_members_description">
523<col width="200px" class="enum_members_annotations">
524</colgroup>
525<tbody>
526<tr>
527<td class="enum_member_name"><p><a name="GST-GL-TEXTURE-TARGET-NONE:CAPS"></a>GST_GL_TEXTURE_TARGET_NONE</p></td>
528<td class="enum_member_description">
529<p>no texture target</p>
530</td>
531<td class="enum_member_annotations"> </td>
532</tr>
533<tr>
534<td class="enum_member_name"><p><a name="GST-GL-TEXTURE-TARGET-2D:CAPS"></a>GST_GL_TEXTURE_TARGET_2D</p></td>
535<td class="enum_member_description">
536<p>2D texture target</p>
537</td>
538<td class="enum_member_annotations"> </td>
539</tr>
540<tr>
541<td class="enum_member_name"><p><a name="GST-GL-TEXTURE-TARGET-RECTANGLE:CAPS"></a>GST_GL_TEXTURE_TARGET_RECTANGLE</p></td>
542<td class="enum_member_description">
543<p>rectangle texture target</p>
544</td>
545<td class="enum_member_annotations"> </td>
546</tr>
547<tr>
548<td class="enum_member_name"><p><a name="GST-GL-TEXTURE-TARGET-EXTERNAL-OES:CAPS"></a>GST_GL_TEXTURE_TARGET_EXTERNAL_OES</p></td>
549<td class="enum_member_description">
550<p>external oes texture target</p>
551</td>
552<td class="enum_member_annotations"> </td>
553</tr>
554</tbody>
555</table></div>
556</div>
557<p class="since">Since: <a class="link" href="ix08.html#api-index-1.8">1.8</a></p>
558</div>
559<hr>
560<div class="refsect2">
561<a name="GST-GL-TEXTURE-TARGET-2D-STR:CAPS"></a><h3>GST_GL_TEXTURE_TARGET_2D_STR</h3>
562<pre class="programlisting">#define GST_GL_TEXTURE_TARGET_2D_STR "2D"
563</pre>
564<p>String used for <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-TEXTURE-TARGET-2D:CAPS"><code class="literal">GST_GL_TEXTURE_TARGET_2D</code></a> in things like caps values</p>
565</div>
566<hr>
567<div class="refsect2">
568<a name="GST-GL-TEXTURE-TARGET-RECTANGLE-STR:CAPS"></a><h3>GST_GL_TEXTURE_TARGET_RECTANGLE_STR</h3>
569<pre class="programlisting">#define GST_GL_TEXTURE_TARGET_RECTANGLE_STR "rectangle"
570</pre>
571<p>String used for <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-TEXTURE-TARGET-RECTANGLE:CAPS"><code class="literal">GST_GL_TEXTURE_TARGET_RECTANGLE</code></a> in things like caps values</p>
572</div>
573<hr>
574<div class="refsect2">
575<a name="GST-GL-TEXTURE-TARGET-EXTERNAL-OES-STR:CAPS"></a><h3>GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR</h3>
576<pre class="programlisting">#define GST_GL_TEXTURE_TARGET_EXTERNAL_OES_STR "external-oes"
577</pre>
578<p>String used for <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-TEXTURE-TARGET-EXTERNAL-OES:CAPS"><code class="literal">GST_GL_TEXTURE_TARGET_EXTERNAL_OES</code></a> in things like caps values</p>
579</div>
580<hr>
581<div class="refsect2">
582<a name="GST-BUFFER-POOL-OPTION-GL-TEXTURE-TARGET-2D:CAPS"></a><h3>GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D</h3>
583<pre class="programlisting">#define GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_2D "GstBufferPoolOptionGLTextureTarget2D"
584</pre>
585<p>String used for <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-TEXTURE-TARGET-2D:CAPS"><code class="literal">GST_GL_TEXTURE_TARGET_2D</code></a> as a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBufferPool.html#GstBufferPool-struct"><span class="type">GstBufferPool</span></a> pool option</p>
586</div>
587<hr>
588<div class="refsect2">
589<a name="GST-BUFFER-POOL-OPTION-GL-TEXTURE-TARGET-RECTANGLE:CAPS"></a><h3>GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE</h3>
590<pre class="programlisting">#define GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_RECTANGLE "GstBufferPoolOptionGLTextureTargetRectangle"
591</pre>
592<p>String used for <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-TEXTURE-TARGET-RECTANGLE:CAPS"><code class="literal">GST_GL_TEXTURE_TARGET_RECTANGLE</code></a> as a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBufferPool.html#GstBufferPool-struct"><span class="type">GstBufferPool</span></a> pool option</p>
593</div>
594<hr>
595<div class="refsect2">
596<a name="GST-BUFFER-POOL-OPTION-GL-TEXTURE-TARGET-EXTERNAL-OES:CAPS"></a><h3>GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES</h3>
597<pre class="programlisting">#define GST_BUFFER_POOL_OPTION_GL_TEXTURE_TARGET_EXTERNAL_OES "GstBufferPoolOptionGLTextureTargetExternalOES"
598</pre>
599<p>String used for <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-TEXTURE-TARGET-EXTERNAL-OES:CAPS"><code class="literal">GST_GL_TEXTURE_TARGET_EXTERNAL_OES</code></a> as a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBufferPool.html#GstBufferPool-struct"><span class="type">GstBufferPool</span></a> pool option</p>
600</div>
601<hr>
602<div class="refsect2">
603<a name="GstGLFormat"></a><h3>enum GstGLFormat</h3>
604<div class="refsect3">
605<a name="GstGLFormat.members"></a><h4>Members</h4>
606<div class="informaltable"><table class="informaltable" width="100%" border="0">
607<colgroup>
608<col width="300px" class="enum_members_name">
609<col class="enum_members_description">
610<col width="200px" class="enum_members_annotations">
611</colgroup>
612<tbody>
613<tr>
614<td class="enum_member_name"><p><a name="GST-GL-LUMINANCE:CAPS"></a>GST_GL_LUMINANCE</p></td>
615<td class="enum_member_description">
616<p>Single component replicated across R, G, and B textures
617                   components</p>
618</td>
619<td class="enum_member_annotations"> </td>
620</tr>
621<tr>
622<td class="enum_member_name"><p><a name="GST-GL-ALPHA:CAPS"></a>GST_GL_ALPHA</p></td>
623<td class="enum_member_description">
624<p>Single component stored in the A texture component</p>
625</td>
626<td class="enum_member_annotations"> </td>
627</tr>
628<tr>
629<td class="enum_member_name"><p><a name="GST-GL-LUMINANCE-ALPHA:CAPS"></a>GST_GL_LUMINANCE_ALPHA</p></td>
630<td class="enum_member_description">
631<p>Combination of <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-LUMINANCE:CAPS"><span class="type">GST_GL_LUMINANCE</span></a> and <a class="link" href="gst-plugins-base-libs-OpenGL-Formats.html#GST-GL-ALPHA:CAPS"><span class="type">GST_GL_ALPHA</span></a></p>
632</td>
633<td class="enum_member_annotations"> </td>
634</tr>
635<tr>
636<td class="enum_member_name"><p><a name="GST-GL-RED:CAPS"></a>GST_GL_RED</p></td>
637<td class="enum_member_description">
638<p>Single component stored in the R texture component</p>
639</td>
640<td class="enum_member_annotations"> </td>
641</tr>
642<tr>
643<td class="enum_member_name"><p><a name="GST-GL-R8:CAPS"></a>GST_GL_R8</p></td>
644<td class="enum_member_description">
645<p>Single 8-bit component stored in the R texture component</p>
646</td>
647<td class="enum_member_annotations"> </td>
648</tr>
649<tr>
650<td class="enum_member_name"><p><a name="GST-GL-RG:CAPS"></a>GST_GL_RG</p></td>
651<td class="enum_member_description">
652<p>Two components stored in the R and G texture components</p>
653</td>
654<td class="enum_member_annotations"> </td>
655</tr>
656<tr>
657<td class="enum_member_name"><p><a name="GST-GL-RG8:CAPS"></a>GST_GL_RG8</p></td>
658<td class="enum_member_description">
659<p>Two 8-bit components stored in the R and G texture components</p>
660</td>
661<td class="enum_member_annotations"> </td>
662</tr>
663<tr>
664<td class="enum_member_name"><p><a name="GST-GL-RGB:CAPS"></a>GST_GL_RGB</p></td>
665<td class="enum_member_description">
666<p>Three components stored in the R, G, and B texture components</p>
667</td>
668<td class="enum_member_annotations"> </td>
669</tr>
670<tr>
671<td class="enum_member_name"><p><a name="GST-GL-RGB8:CAPS"></a>GST_GL_RGB8</p></td>
672<td class="enum_member_description">
673<p>Three 8-bit components stored in the R, G, and B
674              texture components</p>
675</td>
676<td class="enum_member_annotations"> </td>
677</tr>
678<tr>
679<td class="enum_member_name"><p><a name="GST-GL-RGB565:CAPS"></a>GST_GL_RGB565</p></td>
680<td class="enum_member_description">
681<p>Three components of bit depth 5, 6 and 5 stored in the R, G,
682                and B texture components respectively.</p>
683</td>
684<td class="enum_member_annotations"> </td>
685</tr>
686<tr>
687<td class="enum_member_name"><p><a name="GST-GL-RGB16:CAPS"></a>GST_GL_RGB16</p></td>
688<td class="enum_member_description">
689<p>Three 16-bit components stored in the R, G, and B
690              texture components</p>
691</td>
692<td class="enum_member_annotations"> </td>
693</tr>
694<tr>
695<td class="enum_member_name"><p><a name="GST-GL-RGBA:CAPS"></a>GST_GL_RGBA</p></td>
696<td class="enum_member_description">
697<p>Four components stored in the R, G, B, and A texture
698              components respectively.</p>
699</td>
700<td class="enum_member_annotations"> </td>
701</tr>
702<tr>
703<td class="enum_member_name"><p><a name="GST-GL-RGBA8:CAPS"></a>GST_GL_RGBA8</p></td>
704<td class="enum_member_description">
705<p>Four 8-bit components stored in the R, G, B, and A texture
706               components respectively.</p>
707</td>
708<td class="enum_member_annotations"> </td>
709</tr>
710<tr>
711<td class="enum_member_name"><p><a name="GST-GL-RGBA16:CAPS"></a>GST_GL_RGBA16</p></td>
712<td class="enum_member_description">
713<p>Four 16-bit components stored in the R, G, B, and A texture
714               components respectively.</p>
715</td>
716<td class="enum_member_annotations"> </td>
717</tr>
718<tr>
719<td class="enum_member_name"><p><a name="GST-GL-DEPTH-COMPONENT16:CAPS"></a>GST_GL_DEPTH_COMPONENT16</p></td>
720<td class="enum_member_description">
721<p>A single 16-bit component for depth information.</p>
722</td>
723<td class="enum_member_annotations"> </td>
724</tr>
725<tr>
726<td class="enum_member_name"><p><a name="GST-GL-DEPTH24-STENCIL8:CAPS"></a>GST_GL_DEPTH24_STENCIL8</p></td>
727<td class="enum_member_description">
728<p>A 24-bit component for depth information and
729                          a 8-bit component for stencil informat.</p>
730</td>
731<td class="enum_member_annotations"> </td>
732</tr>
733</tbody>
734</table></div>
735</div>
736</div>
737</div>
738<div class="refsect1">
739<a name="gst-plugins-base-libs-OpenGL-Formats.see-also"></a><h2>See Also</h2>
740<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="GstGLFramebuffer.html" title="GstGLFramebuffer"><span class="type">GstGLFramebuffer</span></a>, <a class="link" href="gst-plugins-base-libs-GstGLBuffer.html#GstGLBuffer" title="GstGLBuffer"><span class="type">GstGLBuffer</span></a></p>
741</div>
742</div>
743<div class="footer">
744<hr>Generated by GTK-Doc V1.28</div>
745</body>
746</html>