33
30
<h2><span class="refentrytitle"><a name="libs-GstVaapiPixmap.top_of_page"></a>GstVaapiPixmap</span></h2>
34
31
<p>GstVaapiPixmap — Pixmap abstraction</p>
36
<td valign="top" align="right"></td>
33
<td class="gallery_image" valign="top" align="right"></td>
37
34
</tr></table></div>
38
<div class="refsynopsisdiv">
39
<a name="libs-GstVaapiPixmap.synopsis"></a><h2>Synopsis</h2>
40
<pre class="synopsis"> <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap">GstVaapiPixmap</a>;
41
<a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="returnvalue">GstVaapiPixmap</span></a> * <a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-ref" title="gst_vaapi_pixmap_ref ()">gst_vaapi_pixmap_ref</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);
42
<span class="returnvalue">void</span> <a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-unref" title="gst_vaapi_pixmap_unref ()">gst_vaapi_pixmap_unref</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);
43
<span class="returnvalue">void</span> <a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-replace" title="gst_vaapi_pixmap_replace ()">gst_vaapi_pixmap_replace</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> **old_pixmap_ptr</code></em>,
44
<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *new_pixmap</code></em>);
45
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="returnvalue">GstVideoFormat</span></a> <a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-get-format" title="gst_vaapi_pixmap_get_format ()">gst_vaapi_pixmap_get_format</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);
46
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-get-width" title="gst_vaapi_pixmap_get_width ()">gst_vaapi_pixmap_get_width</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);
47
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> <a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-get-height" title="gst_vaapi_pixmap_get_height ()">gst_vaapi_pixmap_get_height</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);
48
<span class="returnvalue">void</span> <a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-get-size" title="gst_vaapi_pixmap_get_size ()">gst_vaapi_pixmap_get_size</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>,
49
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *width</code></em>,
50
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *height</code></em>);
51
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-put-surface" title="gst_vaapi_pixmap_put_surface ()">gst_vaapi_pixmap_put_surface</a> (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>,
52
<em class="parameter"><code><a class="link" href="libs-gstvaapisurface.html#GstVaapiSurface" title="GstVaapiSurface"><span class="type">GstVaapiSurface</span></a> *surface</code></em>,
53
<em class="parameter"><code>const <a class="link" href="libs-Basic-data-structures.html#GstVaapiRectangle" title="struct GstVaapiRectangle"><span class="type">GstVaapiRectangle</span></a> *crop_rect</code></em>,
54
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>);
35
<div class="refsect1">
36
<a name="libs-GstVaapiPixmap.functions"></a><h2>Functions</h2>
37
<div class="informaltable"><table width="100%" border="0">
39
<col width="150px" class="functions_return">
40
<col class="functions_name">
44
<td class="function_type">
45
<a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="returnvalue">GstVaapiPixmap</span></a> *
47
<td class="function_name">
48
<a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-ref" title="gst_vaapi_pixmap_ref ()">gst_vaapi_pixmap_ref</a> <span class="c_punctuation">()</span>
52
<td class="function_type">
53
<span class="returnvalue">void</span>
55
<td class="function_name">
56
<a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-unref" title="gst_vaapi_pixmap_unref ()">gst_vaapi_pixmap_unref</a> <span class="c_punctuation">()</span>
60
<td class="function_type">
61
<span class="returnvalue">void</span>
63
<td class="function_name">
64
<a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-replace" title="gst_vaapi_pixmap_replace ()">gst_vaapi_pixmap_replace</a> <span class="c_punctuation">()</span>
68
<td class="function_type">
69
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="returnvalue">GstVideoFormat</span></a>
71
<td class="function_name">
72
<a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-get-format" title="gst_vaapi_pixmap_get_format ()">gst_vaapi_pixmap_get_format</a> <span class="c_punctuation">()</span>
76
<td class="function_type">
77
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
79
<td class="function_name">
80
<a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-get-width" title="gst_vaapi_pixmap_get_width ()">gst_vaapi_pixmap_get_width</a> <span class="c_punctuation">()</span>
84
<td class="function_type">
85
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
87
<td class="function_name">
88
<a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-get-height" title="gst_vaapi_pixmap_get_height ()">gst_vaapi_pixmap_get_height</a> <span class="c_punctuation">()</span>
92
<td class="function_type">
93
<span class="returnvalue">void</span>
95
<td class="function_name">
96
<a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-get-size" title="gst_vaapi_pixmap_get_size ()">gst_vaapi_pixmap_get_size</a> <span class="c_punctuation">()</span>
100
<td class="function_type">
101
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
103
<td class="function_name">
104
<a class="link" href="libs-GstVaapiPixmap.html#gst-vaapi-pixmap-put-surface" title="gst_vaapi_pixmap_put_surface ()">gst_vaapi_pixmap_put_surface</a> <span class="c_punctuation">()</span>
110
<div class="refsect1">
111
<a name="libs-GstVaapiPixmap.other"></a><h2>Types and Values</h2>
112
<div class="informaltable"><table width="100%" border="0">
114
<col width="150px" class="name">
115
<col class="description">
118
<td class="datatype_keyword"> </td>
119
<td class="function_name"><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap">GstVaapiPixmap</a></td>
123
<div class="refsect1">
124
<a name="libs-GstVaapiPixmap.object-hierarchy"></a><h2>Object Hierarchy</h2>
57
128
<div class="refsect1">
58
129
<a name="libs-GstVaapiPixmap.description"></a><h2>Description</h2>
60
131
<div class="refsect1">
61
<a name="libs-GstVaapiPixmap.details"></a><h2>Details</h2>
132
<a name="libs-GstVaapiPixmap.functions_details"></a><h2>Functions</h2>
133
<div class="refsect2">
134
<a name="gst-vaapi-pixmap-ref"></a><h3>gst_vaapi_pixmap_ref ()</h3>
135
<pre class="programlisting"><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="returnvalue">GstVaapiPixmap</span></a> *
136
gst_vaapi_pixmap_ref (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);</pre>
137
<p>Atomically increases the reference count of the given <em class="parameter"><code>pixmap</code></em>
139
<div class="refsect3">
140
<a name="id-1.2.10.7.2.5"></a><h4>Parameters</h4>
141
<div class="informaltable"><table width="100%" border="0">
143
<col width="150px" class="parameters_name">
144
<col class="parameters_description">
145
<col width="200px" class="parameters_annotations">
148
<td class="parameter_name"><p>pixmap</p></td>
149
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a></p></td>
150
<td class="parameter_annotations"> </td>
154
<div class="refsect3">
155
<a name="id-1.2.10.7.2.6"></a><h4>Returns</h4>
156
<p> The same <em class="parameter"><code>pixmap</code></em>
162
<div class="refsect2">
163
<a name="gst-vaapi-pixmap-unref"></a><h3>gst_vaapi_pixmap_unref ()</h3>
164
<pre class="programlisting"><span class="returnvalue">void</span>
165
gst_vaapi_pixmap_unref (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);</pre>
166
<p>Atomically decreases the reference count of the <em class="parameter"><code>pixmap</code></em>
168
the reference count reaches zero, the pixmap will be free'd.</p>
169
<div class="refsect3">
170
<a name="id-1.2.10.7.3.5"></a><h4>Parameters</h4>
171
<div class="informaltable"><table width="100%" border="0">
173
<col width="150px" class="parameters_name">
174
<col class="parameters_description">
175
<col width="200px" class="parameters_annotations">
178
<td class="parameter_name"><p>pixmap</p></td>
179
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a></p></td>
180
<td class="parameter_annotations"> </td>
186
<div class="refsect2">
187
<a name="gst-vaapi-pixmap-replace"></a><h3>gst_vaapi_pixmap_replace ()</h3>
188
<pre class="programlisting"><span class="returnvalue">void</span>
189
gst_vaapi_pixmap_replace (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> **old_pixmap_ptr</code></em>,
190
<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *new_pixmap</code></em>);</pre>
191
<p>Atomically replaces the pixmap pixmap held in <em class="parameter"><code>old_pixmap_ptr</code></em>
193
<em class="parameter"><code>new_pixmap</code></em>
194
. This means that <em class="parameter"><code>old_pixmap_ptr</code></em>
196
valid pixmap. However, <em class="parameter"><code>new_pixmap</code></em>
198
<div class="refsect3">
199
<a name="id-1.2.10.7.4.5"></a><h4>Parameters</h4>
200
<div class="informaltable"><table width="100%" border="0">
202
<col width="150px" class="parameters_name">
203
<col class="parameters_description">
204
<col width="200px" class="parameters_annotations">
208
<td class="parameter_name"><p>old_pixmap_ptr</p></td>
209
<td class="parameter_description"><p>a pointer to a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a></p></td>
210
<td class="parameter_annotations"> </td>
213
<td class="parameter_name"><p>new_pixmap</p></td>
214
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a></p></td>
215
<td class="parameter_annotations"> </td>
222
<div class="refsect2">
223
<a name="gst-vaapi-pixmap-get-format"></a><h3>gst_vaapi_pixmap_get_format ()</h3>
224
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="returnvalue">GstVideoFormat</span></a>
225
gst_vaapi_pixmap_get_format (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);</pre>
226
<p>Retrieves the format of a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>.</p>
227
<div class="refsect3">
228
<a name="id-1.2.10.7.5.5"></a><h4>Parameters</h4>
229
<div class="informaltable"><table width="100%" border="0">
231
<col width="150px" class="parameters_name">
232
<col class="parameters_description">
233
<col width="200px" class="parameters_annotations">
236
<td class="parameter_name"><p>pixmap</p></td>
237
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a></p></td>
238
<td class="parameter_annotations"> </td>
242
<div class="refsect3">
243
<a name="id-1.2.10.7.5.6"></a><h4>Returns</h4>
244
<p> the format of the <em class="parameter"><code>pixmap</code></em>
250
<div class="refsect2">
251
<a name="gst-vaapi-pixmap-get-width"></a><h3>gst_vaapi_pixmap_get_width ()</h3>
252
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
253
gst_vaapi_pixmap_get_width (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);</pre>
254
<p>Retrieves the width of a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>.</p>
255
<div class="refsect3">
256
<a name="id-1.2.10.7.6.5"></a><h4>Parameters</h4>
257
<div class="informaltable"><table width="100%" border="0">
259
<col width="150px" class="parameters_name">
260
<col class="parameters_description">
261
<col width="200px" class="parameters_annotations">
264
<td class="parameter_name"><p>pixmap</p></td>
265
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a></p></td>
266
<td class="parameter_annotations"> </td>
270
<div class="refsect3">
271
<a name="id-1.2.10.7.6.6"></a><h4>Returns</h4>
272
<p> the width of the <em class="parameter"><code>pixmap</code></em>
278
<div class="refsect2">
279
<a name="gst-vaapi-pixmap-get-height"></a><h3>gst_vaapi_pixmap_get_height ()</h3>
280
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a>
281
gst_vaapi_pixmap_get_height (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);</pre>
282
<p>Retrieves the height of a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a></p>
283
<div class="refsect3">
284
<a name="id-1.2.10.7.7.5"></a><h4>Parameters</h4>
285
<div class="informaltable"><table width="100%" border="0">
287
<col width="150px" class="parameters_name">
288
<col class="parameters_description">
289
<col width="200px" class="parameters_annotations">
292
<td class="parameter_name"><p>pixmap</p></td>
293
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a></p></td>
294
<td class="parameter_annotations"> </td>
298
<div class="refsect3">
299
<a name="id-1.2.10.7.7.6"></a><h4>Returns</h4>
300
<p> the height of the <em class="parameter"><code>pixmap</code></em>
306
<div class="refsect2">
307
<a name="gst-vaapi-pixmap-get-size"></a><h3>gst_vaapi_pixmap_get_size ()</h3>
308
<pre class="programlisting"><span class="returnvalue">void</span>
309
gst_vaapi_pixmap_get_size (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>,
310
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *width</code></em>,
311
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *height</code></em>);</pre>
312
<p>Retrieves the dimensions of a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>.</p>
313
<div class="refsect3">
314
<a name="id-1.2.10.7.8.5"></a><h4>Parameters</h4>
315
<div class="informaltable"><table width="100%" border="0">
317
<col width="150px" class="parameters_name">
318
<col class="parameters_description">
319
<col width="200px" class="parameters_annotations">
323
<td class="parameter_name"><p>pixmap</p></td>
324
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a></p></td>
325
<td class="parameter_annotations"> </td>
328
<td class="parameter_name"><p>width</p></td>
329
<td class="parameter_description"><p>return location for the width, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
330
<td class="parameter_annotations"> </td>
333
<td class="parameter_name"><p>height</p></td>
334
<td class="parameter_description"><p>return location for the height, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
335
<td class="parameter_annotations"> </td>
342
<div class="refsect2">
343
<a name="gst-vaapi-pixmap-put-surface"></a><h3>gst_vaapi_pixmap_put_surface ()</h3>
344
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
345
gst_vaapi_pixmap_put_surface (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>,
346
<em class="parameter"><code><a class="link" href="libs-gstvaapisurface.html#GstVaapiSurface" title="GstVaapiSurface"><span class="type">GstVaapiSurface</span></a> *surface</code></em>,
347
<em class="parameter"><code>const <a class="link" href="libs-Basic-data-structures.html#GstVaapiRectangle" title="struct GstVaapiRectangle"><span class="type">GstVaapiRectangle</span></a> *crop_rect</code></em>,
348
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>);</pre>
349
<p>Renders the whole <em class="parameter"><code>surface</code></em>
350
, or a cropped region defined with
351
<em class="parameter"><code>crop_rect</code></em>
352
, into the <em class="parameter"><code>pixmap</code></em>
353
, while scaling to fit the target
354
pixmap. The <em class="parameter"><code>flags</code></em>
355
specify how de-interlacing (if needed), color
356
space conversion, scaling and other postprocessing transformations
358
<div class="refsect3">
359
<a name="id-1.2.10.7.9.5"></a><h4>Parameters</h4>
360
<div class="informaltable"><table width="100%" border="0">
362
<col width="150px" class="parameters_name">
363
<col class="parameters_description">
364
<col width="200px" class="parameters_annotations">
368
<td class="parameter_name"><p>pixmap</p></td>
369
<td class="parameter_description"><p>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a></p></td>
370
<td class="parameter_annotations"> </td>
373
<td class="parameter_name"><p>surface</p></td>
374
<td class="parameter_description"><p>a <a class="link" href="libs-gstvaapisurface.html#GstVaapiSurface" title="GstVaapiSurface"><span class="type">GstVaapiSurface</span></a></p></td>
375
<td class="parameter_annotations"> </td>
378
<td class="parameter_name"><p>crop_rect</p></td>
379
<td class="parameter_description"><p>the video cropping rectangle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the entire
380
surface is to be used.</p></td>
381
<td class="parameter_annotations"> </td>
384
<td class="parameter_name"><p>flags</p></td>
385
<td class="parameter_description"><p>postprocessing flags. See <a class="link" href="libs-gstvaapisurface.html#GstVaapiSurfaceRenderFlags" title="enum GstVaapiSurfaceRenderFlags"><span class="type">GstVaapiSurfaceRenderFlags</span></a></p></td>
386
<td class="parameter_annotations"> </td>
391
<div class="refsect3">
392
<a name="id-1.2.10.7.9.6"></a><h4>Returns</h4>
393
<p> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</p>
398
<div class="refsect1">
399
<a name="libs-GstVaapiPixmap.other_details"></a><h2>Types and Values</h2>
62
400
<div class="refsect2">
63
401
<a name="GstVaapiPixmap"></a><h3>GstVaapiPixmap</h3>
64
402
<pre class="programlisting">typedef struct {
68
Base class for system-dependent pixmaps.
72
<div class="refsect2">
73
<a name="gst-vaapi-pixmap-ref"></a><h3>gst_vaapi_pixmap_ref ()</h3>
74
<pre class="programlisting"><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="returnvalue">GstVaapiPixmap</span></a> * gst_vaapi_pixmap_ref (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);</pre>
76
Atomically increases the reference count of the given <em class="parameter"><code>pixmap</code></em> by one.
78
<div class="variablelist"><table border="0" class="variablelist">
80
<col align="left" valign="top">
85
<td><p><span class="term"><em class="parameter"><code>pixmap</code></em> :</span></p></td>
86
<td>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>
90
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
91
<td>The same <em class="parameter"><code>pixmap</code></em> argument</td>
97
<div class="refsect2">
98
<a name="gst-vaapi-pixmap-unref"></a><h3>gst_vaapi_pixmap_unref ()</h3>
99
<pre class="programlisting"><span class="returnvalue">void</span> gst_vaapi_pixmap_unref (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);</pre>
101
Atomically decreases the reference count of the <em class="parameter"><code>pixmap</code></em> by one. If
102
the reference count reaches zero, the pixmap will be free'd.
104
<div class="variablelist"><table border="0" class="variablelist">
106
<col align="left" valign="top">
110
<td><p><span class="term"><em class="parameter"><code>pixmap</code></em> :</span></p></td>
111
<td>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>
117
<div class="refsect2">
118
<a name="gst-vaapi-pixmap-replace"></a><h3>gst_vaapi_pixmap_replace ()</h3>
119
<pre class="programlisting"><span class="returnvalue">void</span> gst_vaapi_pixmap_replace (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> **old_pixmap_ptr</code></em>,
120
<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *new_pixmap</code></em>);</pre>
122
Atomically replaces the pixmap pixmap held in <em class="parameter"><code>old_pixmap_ptr</code></em> with
123
<em class="parameter"><code>new_pixmap</code></em>. This means that <em class="parameter"><code>old_pixmap_ptr</code></em> shall reference a
124
valid pixmap. However, <em class="parameter"><code>new_pixmap</code></em> can be NULL.
126
<div class="variablelist"><table border="0" class="variablelist">
128
<col align="left" valign="top">
133
<td><p><span class="term"><em class="parameter"><code>old_pixmap_ptr</code></em> :</span></p></td>
134
<td>a pointer to a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>
138
<td><p><span class="term"><em class="parameter"><code>new_pixmap</code></em> :</span></p></td>
139
<td>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>
146
<div class="refsect2">
147
<a name="gst-vaapi-pixmap-get-format"></a><h3>gst_vaapi_pixmap_get_format ()</h3>
148
<pre class="programlisting"><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstvideo.html#GstVideoFormat"><span class="returnvalue">GstVideoFormat</span></a> gst_vaapi_pixmap_get_format (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);</pre>
150
Retrieves the format of a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>.
152
<div class="variablelist"><table border="0" class="variablelist">
154
<col align="left" valign="top">
159
<td><p><span class="term"><em class="parameter"><code>pixmap</code></em> :</span></p></td>
160
<td>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>
164
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
165
<td>the format of the <em class="parameter"><code>pixmap</code></em>
172
<div class="refsect2">
173
<a name="gst-vaapi-pixmap-get-width"></a><h3>gst_vaapi_pixmap_get_width ()</h3>
174
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_vaapi_pixmap_get_width (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);</pre>
176
Retrieves the width of a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>.
178
<div class="variablelist"><table border="0" class="variablelist">
180
<col align="left" valign="top">
185
<td><p><span class="term"><em class="parameter"><code>pixmap</code></em> :</span></p></td>
186
<td>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>
190
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
191
<td>the width of the <em class="parameter"><code>pixmap</code></em>, in pixels</td>
197
<div class="refsect2">
198
<a name="gst-vaapi-pixmap-get-height"></a><h3>gst_vaapi_pixmap_get_height ()</h3>
199
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="returnvalue">guint</span></a> gst_vaapi_pixmap_get_height (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>);</pre>
201
Retrieves the height of a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>
203
<div class="variablelist"><table border="0" class="variablelist">
205
<col align="left" valign="top">
210
<td><p><span class="term"><em class="parameter"><code>pixmap</code></em> :</span></p></td>
211
<td>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>
215
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
216
<td>the height of the <em class="parameter"><code>pixmap</code></em>, in pixels</td>
222
<div class="refsect2">
223
<a name="gst-vaapi-pixmap-get-size"></a><h3>gst_vaapi_pixmap_get_size ()</h3>
224
<pre class="programlisting"><span class="returnvalue">void</span> gst_vaapi_pixmap_get_size (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>,
225
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *width</code></em>,
226
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *height</code></em>);</pre>
228
Retrieves the dimensions of a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>.
230
<div class="variablelist"><table border="0" class="variablelist">
232
<col align="left" valign="top">
237
<td><p><span class="term"><em class="parameter"><code>pixmap</code></em> :</span></p></td>
238
<td>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>
242
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
243
<td>return location for the width, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
247
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
248
<td>return location for the height, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
255
<div class="refsect2">
256
<a name="gst-vaapi-pixmap-put-surface"></a><h3>gst_vaapi_pixmap_put_surface ()</h3>
257
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gst_vaapi_pixmap_put_surface (<em class="parameter"><code><a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a> *pixmap</code></em>,
258
<em class="parameter"><code><a class="link" href="libs-gstvaapisurface.html#GstVaapiSurface" title="GstVaapiSurface"><span class="type">GstVaapiSurface</span></a> *surface</code></em>,
259
<em class="parameter"><code>const <a class="link" href="libs-Basic-data-structures.html#GstVaapiRectangle" title="struct GstVaapiRectangle"><span class="type">GstVaapiRectangle</span></a> *crop_rect</code></em>,
260
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint"><span class="type">guint</span></a> flags</code></em>);</pre>
262
Renders the whole <em class="parameter"><code>surface</code></em>, or a cropped region defined with
263
<em class="parameter"><code>crop_rect</code></em>, into the <em class="parameter"><code>pixmap</code></em>, while scaling to fit the target
264
pixmap. The <em class="parameter"><code>flags</code></em> specify how de-interlacing (if needed), color
265
space conversion, scaling and other postprocessing transformations
268
<div class="variablelist"><table border="0" class="variablelist">
270
<col align="left" valign="top">
275
<td><p><span class="term"><em class="parameter"><code>pixmap</code></em> :</span></p></td>
276
<td>a <a class="link" href="libs-GstVaapiPixmap.html#GstVaapiPixmap" title="GstVaapiPixmap"><span class="type">GstVaapiPixmap</span></a>
280
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
281
<td>a <a class="link" href="libs-gstvaapisurface.html#GstVaapiSurface" title="GstVaapiSurface"><span class="type">GstVaapiSurface</span></a>
285
<td><p><span class="term"><em class="parameter"><code>crop_rect</code></em> :</span></p></td>
286
<td>the video cropping rectangle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the entire
287
surface is to be used.</td>
290
<td><p><span class="term"><em class="parameter"><code>flags</code></em> :</span></p></td>
291
<td>postprocessing flags. See <a class="link" href="libs-gstvaapisurface.html#GstVaapiSurfaceRenderFlags" title="enum GstVaapiSurfaceRenderFlags"><span class="type">GstVaapiSurfaceRenderFlags</span></a>
295
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
297
<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success</td>
405
<p>Base class for system-dependent pixmaps.</p>
304
409
<div class="footer">
306
Generated by GTK-Doc V1.19</div>
411
Generated by GTK-Doc V1.20</div>
b'\\ No newline at end of file'