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>GstGLBufferPool: 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-GstGLBuffer.html" title="GstGLBuffer"> 10<link rel="next" href="GstGLColorConvert.html" title="GstGLColorConvert"> 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="#GstGLBufferPool.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 19 <a href="#GstGLBufferPool.object-hierarchy" class="shortcut">Object Hierarchy</a></span> 20</td> 21<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td> 22<td><a accesskey="u" href="gl.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td> 23<td><a accesskey="p" href="gst-plugins-base-libs-GstGLBuffer.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td> 24<td><a accesskey="n" href="GstGLColorConvert.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td> 25</tr></table> 26<div class="refentry"> 27<a name="GstGLBufferPool"></a><div class="titlepage"></div> 28<div class="refnamediv"><table width="100%"><tr> 29<td valign="top"> 30<h2><span class="refentrytitle"><a name="GstGLBufferPool.top_of_page"></a>GstGLBufferPool</span></h2> 31<p>GstGLBufferPool — buffer pool for <a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#GstGLBaseMemory" title="GstGLBaseMemory"><span class="type">GstGLBaseMemory</span></a> objects</p> 32</td> 33<td class="gallery_image" valign="top" align="right"></td> 34</tr></table></div> 35<div class="refsect1"> 36<a name="GstGLBufferPool.functions"></a><h2>Functions</h2> 37<div class="informaltable"><table class="informaltable" width="100%" border="0"> 38<colgroup> 39<col width="150px" class="functions_return"> 40<col class="functions_name"> 41</colgroup> 42<tbody> 43<tr> 44<td class="function_type"> 45<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBufferPool.html#GstBufferPool-struct"><span class="returnvalue">GstBufferPool</span></a> * 46</td> 47<td class="function_name"> 48<a class="link" href="GstGLBufferPool.html#gst-gl-buffer-pool-new" title="gst_gl_buffer_pool_new ()">gst_gl_buffer_pool_new</a> <span class="c_punctuation">()</span> 49</td> 50</tr> 51<tr> 52<td class="function_type"> 53<a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#GstGLAllocationParams"><span class="returnvalue">GstGLAllocationParams</span></a> * 54</td> 55<td class="function_name"> 56<a class="link" href="GstGLBufferPool.html#gst-buffer-pool-config-get-gl-allocation-params" title="gst_buffer_pool_config_get_gl_allocation_params ()">gst_buffer_pool_config_get_gl_allocation_params</a> <span class="c_punctuation">()</span> 57</td> 58</tr> 59<tr> 60<td class="function_type"> 61<span class="returnvalue">void</span> 62</td> 63<td class="function_name"> 64<a class="link" href="GstGLBufferPool.html#gst-buffer-pool-config-set-gl-allocation-params" title="gst_buffer_pool_config_set_gl_allocation_params ()">gst_buffer_pool_config_set_gl_allocation_params</a> <span class="c_punctuation">()</span> 65</td> 66</tr> 67</tbody> 68</table></div> 69</div> 70<div class="refsect1"> 71<a name="GstGLBufferPool.other"></a><h2>Types and Values</h2> 72<div class="informaltable"><table class="informaltable" width="100%" border="0"> 73<colgroup> 74<col width="150px" class="name"> 75<col class="description"> 76</colgroup> 77<tbody> 78<tr> 79<td class="datatype_keyword"> </td> 80<td class="function_name"><a class="link" href="GstGLBufferPool.html#GstGLBufferPool-struct" title="GstGLBufferPool">GstGLBufferPool</a></td> 81</tr> 82<tr> 83<td class="datatype_keyword"> </td> 84<td class="function_name"><a class="link" href="GstGLBufferPool.html#GstGLBufferPoolClass" title="GstGLBufferPoolClass">GstGLBufferPoolClass</a></td> 85</tr> 86</tbody> 87</table></div> 88</div> 89<div class="refsect1"> 90<a name="GstGLBufferPool.object-hierarchy"></a><h2>Object Hierarchy</h2> 91<pre class="screen"> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a> 92 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a> 93 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstObject.html#GstObject-struct">GstObject</a> 94 <span class="lineart">╰──</span> <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBufferPool.html#GstBufferPool-struct">GstBufferPool</a> 95 <span class="lineart">╰──</span> GstGLBufferPool 96</pre> 97</div> 98<div class="refsect1"> 99<a name="GstGLBufferPool.includes"></a><h2>Includes</h2> 100<pre class="synopsis">#include <gst/gl/gl.h> 101</pre> 102</div> 103<div class="refsect1"> 104<a name="GstGLBufferPool.description"></a><h2>Description</h2> 105<p>a <a class="link" href="GstGLBufferPool.html" title="GstGLBufferPool"><span class="type">GstGLBufferPool</span></a> is an object that allocates buffers with <a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#GstGLBaseMemory" title="GstGLBaseMemory"><span class="type">GstGLBaseMemory</span></a></p> 106<p>A <a class="link" href="GstGLBufferPool.html" title="GstGLBufferPool"><span class="type">GstGLBufferPool</span></a> is created with <a class="link" href="GstGLBufferPool.html#gst-gl-buffer-pool-new" title="gst_gl_buffer_pool_new ()"><code class="function">gst_gl_buffer_pool_new()</code></a></p> 107<p><a class="link" href="GstGLBufferPool.html" title="GstGLBufferPool"><span class="type">GstGLBufferPool</span></a> implements the VideoMeta buffer pool option 108<a class="link" href="gst-plugins-base-libs-GstVideoPool.html#GST-BUFFER-POOL-OPTION-VIDEO-META:CAPS" title="GST_BUFFER_POOL_OPTION_VIDEO_META"><code class="literal">GST_BUFFER_POOL_OPTION_VIDEO_META</code></a>, the VideoAligment buffer pool option 109<a class="link" href="gst-plugins-base-libs-GstVideoPool.html#GST-BUFFER-POOL-OPTION-VIDEO-ALIGNMENT:CAPS" title="GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT"><code class="literal">GST_BUFFER_POOL_OPTION_VIDEO_ALIGNMENT</code></a> as well as the OpenGL specific 110<a class="link" href="gst-plugins-base-libs-GstGLSyncMeta.html#GST-BUFFER-POOL-OPTION-GL-SYNC-META:CAPS" title="GST_BUFFER_POOL_OPTION_GL_SYNC_META"><code class="literal">GST_BUFFER_POOL_OPTION_GL_SYNC_META</code></a> buffer pool option.</p> 111</div> 112<div class="refsect1"> 113<a name="GstGLBufferPool.functions_details"></a><h2>Functions</h2> 114<div class="refsect2"> 115<a name="gst-gl-buffer-pool-new"></a><h3>gst_gl_buffer_pool_new ()</h3> 116<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBufferPool.html#GstBufferPool-struct"><span class="returnvalue">GstBufferPool</span></a> * 117gst_gl_buffer_pool_new (<em class="parameter"><code><a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> *context</code></em>);</pre> 118<div class="refsect3"> 119<a name="gst-gl-buffer-pool-new.parameters"></a><h4>Parameters</h4> 120<div class="informaltable"><table class="informaltable" width="100%" border="0"> 121<colgroup> 122<col width="150px" class="parameters_name"> 123<col class="parameters_description"> 124<col width="200px" class="parameters_annotations"> 125</colgroup> 126<tbody><tr> 127<td class="parameter_name"><p>context</p></td> 128<td class="parameter_description"><p>the <a class="link" href="GstGLContext.html" title="GstGLContext"><span class="type">GstGLContext</span></a> to use</p></td> 129<td class="parameter_annotations"> </td> 130</tr></tbody> 131</table></div> 132</div> 133<div class="refsect3"> 134<a name="gst-gl-buffer-pool-new.returns"></a><h4>Returns</h4> 135<p> a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBufferPool.html#GstBufferPool-struct"><span class="type">GstBufferPool</span></a> that allocates buffers with <a class="link" href="gst-plugins-base-libs-GstGLMemory.html#GstGLMemory" title="GstGLMemory"><span class="type">GstGLMemory</span></a></p> 136</div> 137</div> 138<hr> 139<div class="refsect2"> 140<a name="gst-buffer-pool-config-get-gl-allocation-params"></a><h3>gst_buffer_pool_config_get_gl_allocation_params ()</h3> 141<pre class="programlisting"><a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#GstGLAllocationParams"><span class="returnvalue">GstGLAllocationParams</span></a> * 142gst_buffer_pool_config_get_gl_allocation_params 143 (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstStructure.html#GstStructure-struct"><span class="type">GstStructure</span></a> *config</code></em>);</pre> 144<div class="refsect3"> 145<a name="gst-buffer-pool-config-get-gl-allocation-params.parameters"></a><h4>Parameters</h4> 146<div class="informaltable"><table class="informaltable" width="100%" border="0"> 147<colgroup> 148<col width="150px" class="parameters_name"> 149<col class="parameters_description"> 150<col width="200px" class="parameters_annotations"> 151</colgroup> 152<tbody><tr> 153<td class="parameter_name"><p>config</p></td> 154<td class="parameter_description"><p>a buffer pool config</p></td> 155<td class="parameter_annotations"> </td> 156</tr></tbody> 157</table></div> 158</div> 159<div class="refsect3"> 160<a name="gst-buffer-pool-config-get-gl-allocation-params.returns"></a><h4>Returns</h4> 161<p>the currently set <a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#GstGLAllocationParams"><span class="type">GstGLAllocationParams</span></a> or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p> 162<p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p> 163</div> 164</div> 165<hr> 166<div class="refsect2"> 167<a name="gst-buffer-pool-config-set-gl-allocation-params"></a><h3>gst_buffer_pool_config_set_gl_allocation_params ()</h3> 168<pre class="programlisting"><span class="returnvalue">void</span> 169gst_buffer_pool_config_set_gl_allocation_params 170 (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstStructure.html#GstStructure-struct"><span class="type">GstStructure</span></a> *config</code></em>, 171 <em class="parameter"><code><a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#GstGLAllocationParams"><span class="type">GstGLAllocationParams</span></a> *params</code></em>);</pre> 172<p>Sets <em class="parameter"><code>params</code></em> 173 on <em class="parameter"><code>config</code></em> 174</p> 175<div class="refsect3"> 176<a name="gst-buffer-pool-config-set-gl-allocation-params.parameters"></a><h4>Parameters</h4> 177<div class="informaltable"><table class="informaltable" width="100%" border="0"> 178<colgroup> 179<col width="150px" class="parameters_name"> 180<col class="parameters_description"> 181<col width="200px" class="parameters_annotations"> 182</colgroup> 183<tbody> 184<tr> 185<td class="parameter_name"><p>config</p></td> 186<td class="parameter_description"><p>a buffer pool config</p></td> 187<td class="parameter_annotations"> </td> 188</tr> 189<tr> 190<td class="parameter_name"><p>params</p></td> 191<td class="parameter_description"><p>a <a class="link" href="gst-plugins-base-libs-GstGLBaseMemory.html#GstGLAllocationParams"><span class="type">GstGLAllocationParams</span></a>. </p></td> 192<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>]</span></td> 193</tr> 194</tbody> 195</table></div> 196</div> 197</div> 198</div> 199<div class="refsect1"> 200<a name="GstGLBufferPool.other_details"></a><h2>Types and Values</h2> 201<div class="refsect2"> 202<a name="GstGLBufferPool-struct"></a><h3>GstGLBufferPool</h3> 203<pre class="programlisting">typedef struct _GstGLBufferPool GstGLBufferPool;</pre> 204<p>Opaque GstGLBufferPool struct</p> 205</div> 206<hr> 207<div class="refsect2"> 208<a name="GstGLBufferPoolClass"></a><h3>GstGLBufferPoolClass</h3> 209<pre class="programlisting">typedef struct { 210 GstBufferPoolClass parent_class; 211} GstGLBufferPoolClass; 212</pre> 213<p>The <a class="link" href="GstGLBufferPool.html#GstGLBufferPoolClass" title="GstGLBufferPoolClass"><span class="type">GstGLBufferPoolClass</span></a> structure contains only private data</p> 214</div> 215</div> 216<div class="refsect1"> 217<a name="GstGLBufferPool.see-also"></a><h2>See Also</h2> 218<p><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBufferPool.html#GstBufferPool-struct"><span class="type">GstBufferPool</span></a>, <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></p> 219</div> 220</div> 221<div class="footer"> 222<hr>Generated by GTK-Doc V1.28</div> 223</body> 224</html>