/usr/share/doc/gstreamer0.10-vaapi/libs/GstVaapiVideoPool.html is in gstreamer0.10-vaapi-doc 0.3.6-0ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GstVaapiVideoPool</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GStreamer VA-API Plugins 0.10 Library Reference Manual">
<link rel="up" href="ch01.html" title="gst-plugins-vaapi Library">
<link rel="prev" href="libs-GstVaapiProfile.html" title="GstVaapiProfile">
<link rel="next" href="GstVaapiSurfacePool.html" title="GstVaapiSurfacePool">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="libs-GstVaapiProfile.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GStreamer VA-API Plugins 0.10 Library Reference Manual</th>
<td><a accesskey="n" href="GstVaapiSurfacePool.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GstVaapiVideoPool.synopsis" class="shortcut">Top</a>
|
<a href="#GstVaapiVideoPool.description" class="shortcut">Description</a>
|
<a href="#GstVaapiVideoPool.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#GstVaapiVideoPool.properties" class="shortcut">Properties</a>
</td></tr>
</table>
<div class="refentry">
<a name="GstVaapiVideoPool"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GstVaapiVideoPool.top_of_page"></a>GstVaapiVideoPool</span></h2>
<p>GstVaapiVideoPool — Video object pool abstraction</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="GstVaapiVideoPool.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">struct <a class="link" href="GstVaapiVideoPool.html#GstVaapiVideoPool-struct" title="struct GstVaapiVideoPool">GstVaapiVideoPool</a>;
struct <a class="link" href="GstVaapiVideoPool.html#GstVaapiVideoPoolClass" title="struct GstVaapiVideoPoolClass">GstVaapiVideoPoolClass</a>;
<a class="link" href="GstVaapiDisplay.html" title="GstVaapiDisplay"><span class="returnvalue">GstVaapiDisplay</span></a> * <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-get-display" title="gst_vaapi_video_pool_get_display ()">gst_vaapi_video_pool_get_display</a> (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>);
<span class="returnvalue">GstCaps</span> * <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-get-caps" title="gst_vaapi_video_pool_get_caps ()">gst_vaapi_video_pool_get_caps</a> (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>);
<span class="returnvalue">gpointer</span> <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-get-object" title="gst_vaapi_video_pool_get_object ()">gst_vaapi_video_pool_get_object</a> (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-put-object" title="gst_vaapi_video_pool_put_object ()">gst_vaapi_video_pool_put_object</a> (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> object</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-add-object" title="gst_vaapi_video_pool_add_object ()">gst_vaapi_video_pool_add_object</a> (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> object</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-add-objects" title="gst_vaapi_video_pool_add_objects ()">gst_vaapi_video_pool_add_objects</a> (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>,
<em class="parameter"><code><span class="type">GPtrArray</span> *objects</code></em>);
<span class="returnvalue">guint</span> <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-get-capacity" title="gst_vaapi_video_pool_get_capacity ()">gst_vaapi_video_pool_get_capacity</a> (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>);
<span class="returnvalue">void</span> <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-set-capacity" title="gst_vaapi_video_pool_set_capacity ()">gst_vaapi_video_pool_set_capacity</a> (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>,
<em class="parameter"><code><span class="type">guint</span> capacity</code></em>);
<span class="returnvalue">guint</span> <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-get-size" title="gst_vaapi_video_pool_get_size ()">gst_vaapi_video_pool_get_size</a> (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>);
<span class="returnvalue">gboolean</span> <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-reserve" title="gst_vaapi_video_pool_reserve ()">gst_vaapi_video_pool_reserve</a> (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>,
<em class="parameter"><code><span class="type">guint</span> n</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="GstVaapiVideoPool.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
GObject
+----GstVaapiVideoPool
+----<a class="link" href="GstVaapiImagePool.html" title="GstVaapiImagePool">GstVaapiImagePool</a>
+----<a class="link" href="GstVaapiSurfacePool.html" title="GstVaapiSurfacePool">GstVaapiSurfacePool</a>
</pre>
</div>
<div class="refsect1">
<a name="GstVaapiVideoPool.properties"></a><h2>Properties</h2>
<pre class="synopsis">
"<a class="link" href="GstVaapiVideoPool.html#GstVaapiVideoPool--capacity" title='The "capacity" property'>capacity</a>" <span class="type">guint</span> : Read / Write
"<a class="link" href="GstVaapiVideoPool.html#GstVaapiVideoPool--caps" title='The "caps" property'>caps</a>" <span class="type">gpointer</span> : Read / Write / Construct Only
"<a class="link" href="GstVaapiVideoPool.html#GstVaapiVideoPool--display" title='The "display" property'>display</a>" <a class="link" href="GstVaapiDisplay.html" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a>* : Read / Write / Construct Only
</pre>
</div>
<div class="refsect1">
<a name="GstVaapiVideoPool.description"></a><h2>Description</h2>
</div>
<div class="refsect1">
<a name="GstVaapiVideoPool.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GstVaapiVideoPool-struct"></a><h3>struct GstVaapiVideoPool</h3>
<pre class="programlisting">struct GstVaapiVideoPool;</pre>
<p>
A pool of lazily allocated video objects. e.g. surfaces, images.
</p>
</div>
<hr>
<div class="refsect2">
<a name="GstVaapiVideoPoolClass"></a><h3>struct GstVaapiVideoPoolClass</h3>
<pre class="programlisting">struct GstVaapiVideoPoolClass {
void (*set_caps) (GstVaapiVideoPool *pool, GstCaps *caps);
gpointer (*alloc_object)(GstVaapiVideoPool *pool, GstVaapiDisplay *display);
};
</pre>
<p>
A pool base class used to hold video objects. e.g. surfaces, images.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GstVaapiVideoPoolClass.set-caps"></a>set_caps</code></em> ()</span></p></td>
<td>virtual function for notifying the subclass of the
negotiated caps</td>
</tr>
<tr>
<td><p><span class="term"><em class="structfield"><code><a name="GstVaapiVideoPoolClass.alloc-object"></a>alloc_object</code></em> ()</span></p></td>
<td>virtual function for allocating a video pool object</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gst-vaapi-video-pool-get-display"></a><h3>gst_vaapi_video_pool_get_display ()</h3>
<pre class="programlisting"><a class="link" href="GstVaapiDisplay.html" title="GstVaapiDisplay"><span class="returnvalue">GstVaapiDisplay</span></a> * gst_vaapi_video_pool_get_display (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>);</pre>
<p>
Retrieves the <a class="link" href="GstVaapiDisplay.html" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a> the <em class="parameter"><code>pool</code></em> is bound to. The <em class="parameter"><code>pool</code></em>
owns the returned object and it shall not be unref'ed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
<td>a <a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <a class="link" href="GstVaapiDisplay.html" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a> the <em class="parameter"><code>pool</code></em> is bound to</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gst-vaapi-video-pool-get-caps"></a><h3>gst_vaapi_video_pool_get_caps ()</h3>
<pre class="programlisting"><span class="returnvalue">GstCaps</span> * gst_vaapi_video_pool_get_caps (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>);</pre>
<p>
Retrieves the <span class="type">GstCaps</span> the <em class="parameter"><code>pool</code></em> was created with. The <em class="parameter"><code>pool</code></em> owns
the returned object and it shall not be unref'ed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
<td>a <a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the <span class="type">GstCaps</span> the <em class="parameter"><code>pool</code></em> was created with</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gst-vaapi-video-pool-get-object"></a><h3>gst_vaapi_video_pool_get_object ()</h3>
<pre class="programlisting"><span class="returnvalue">gpointer</span> gst_vaapi_video_pool_get_object (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>);</pre>
<p>
Retrieves a new object from the <em class="parameter"><code>pool</code></em>, or allocates a new one if
none was found. The <em class="parameter"><code>pool</code></em> holds a reference on the returned object
and thus shall be released through <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-put-object" title="gst_vaapi_video_pool_put_object ()"><code class="function">gst_vaapi_video_pool_put_object()</code></a>
when it's no longer needed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
<td>a <a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a possibly newly allocated object, or <code class="literal">NULL</code> on error</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gst-vaapi-video-pool-put-object"></a><h3>gst_vaapi_video_pool_put_object ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gst_vaapi_video_pool_put_object (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> object</code></em>);</pre>
<p>
Pushes the <em class="parameter"><code>object</code></em> back into the pool. The <em class="parameter"><code>object</code></em> shall be
obtained from the <em class="parameter"><code>pool</code></em> through <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-get-object" title="gst_vaapi_video_pool_get_object ()"><code class="function">gst_vaapi_video_pool_get_object()</code></a>.
Calling this function with an arbitrary object yields undefined
behaviour.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
<td>a <a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>the object to add back to the pool</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gst-vaapi-video-pool-add-object"></a><h3>gst_vaapi_video_pool_add_object ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> gst_vaapi_video_pool_add_object (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>,
<em class="parameter"><code><span class="type">gpointer</span> object</code></em>);</pre>
<p>
Adds the <em class="parameter"><code>object</code></em> to the pool. The pool then holds a reference on
the <em class="parameter"><code>object</code></em>. This operation does not change the capacity of the
pool.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
<td>a <a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>object</code></em> :</span></p></td>
<td>the object to add to the pool</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> on success.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gst-vaapi-video-pool-add-objects"></a><h3>gst_vaapi_video_pool_add_objects ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> gst_vaapi_video_pool_add_objects (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>,
<em class="parameter"><code><span class="type">GPtrArray</span> *objects</code></em>);</pre>
<p>
Adds the <em class="parameter"><code>objects</code></em> to the pool. The pool then holds a reference on
the <em class="parameter"><code>objects</code></em>. This operation does not change the capacity of the
pool and is just a wrapper around <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-add-object" title="gst_vaapi_video_pool_add_object ()"><code class="function">gst_vaapi_video_pool_add_object()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
<td>a <a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>objects</code></em> :</span></p></td>
<td>a <span class="type">GPtrArray</span> of objects</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> on success.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gst-vaapi-video-pool-get-capacity"></a><h3>gst_vaapi_video_pool_get_capacity ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span> gst_vaapi_video_pool_get_capacity (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>);</pre>
<p>
Returns the maximum number of objects in the pool. i.e. the maximum
number of objects that can be returned by <a class="link" href="GstVaapiVideoPool.html#gst-vaapi-video-pool-get-object" title="gst_vaapi_video_pool_get_object ()"><code class="function">gst_vaapi_video_pool_get_object()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
<td>a <a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the capacity of the pool</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gst-vaapi-video-pool-set-capacity"></a><h3>gst_vaapi_video_pool_set_capacity ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> gst_vaapi_video_pool_set_capacity (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>,
<em class="parameter"><code><span class="type">guint</span> capacity</code></em>);</pre>
<p>
Sets the maximum number of objects that can be allocated in the pool.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
<td>a <a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>capacity</code></em> :</span></p></td>
<td>the maximal capacity of the pool</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gst-vaapi-video-pool-get-size"></a><h3>gst_vaapi_video_pool_get_size ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span> gst_vaapi_video_pool_get_size (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>);</pre>
<p>
Returns the number of free objects available in the pool.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
<td>a <a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>number of free objects in the pool</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gst-vaapi-video-pool-reserve"></a><h3>gst_vaapi_video_pool_reserve ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span> gst_vaapi_video_pool_reserve (<em class="parameter"><code><a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a> *pool</code></em>,
<em class="parameter"><code><span class="type">guint</span> n</code></em>);</pre>
<p>
Pre-allocates up to <em class="parameter"><code>n</code></em> objects in the pool. If <em class="parameter"><code>n</code></em> is less than or
equal to the number of free and used objects in the pool, this call
has no effect. Otherwise, it is a request for allocation of
additional objects.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pool</code></em> :</span></p></td>
<td>a <a class="link" href="GstVaapiVideoPool.html" title="GstVaapiVideoPool"><span class="type">GstVaapiVideoPool</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>n</code></em> :</span></p></td>
<td>the number of objects to pre-allocate</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> on success</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="GstVaapiVideoPool.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GstVaapiVideoPool--capacity"></a><h3>The <code class="literal">"capacity"</code> property</h3>
<pre class="programlisting"> "capacity" <span class="type">guint</span> : Read / Write</pre>
<p>The maximum number of objects in the pool.</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GstVaapiVideoPool--caps"></a><h3>The <code class="literal">"caps"</code> property</h3>
<pre class="programlisting"> "caps" <span class="type">gpointer</span> : Read / Write / Construct Only</pre>
<p>The video object capabilities.</p>
</div>
<hr>
<div class="refsect2">
<a name="GstVaapiVideoPool--display"></a><h3>The <code class="literal">"display"</code> property</h3>
<pre class="programlisting"> "display" <a class="link" href="GstVaapiDisplay.html" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a>* : Read / Write / Construct Only</pre>
<p>
The <a class="link" href="GstVaapiDisplay.html" title="GstVaapiDisplay"><span class="type">GstVaapiDisplay</span></a> this pool is bound to.
</p>
</div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.18</div>
</body>
</html>
|