• 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>Riff utilities: 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="gstreamer-riff.html" title="Riff Media Library">
9<link rel="prev" href="gstreamer-riff.html" title="Riff Media Library">
10<link rel="next" href="gstreamer-rtp.html" title="RTP Library">
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-Riff-utilities.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="gstreamer-riff.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22<td><a accesskey="p" href="gstreamer-riff.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23<td><a accesskey="n" href="gstreamer-rtp.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-Riff-utilities"></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-Riff-utilities.top_of_page"></a>Riff utilities</span></h2>
30<p>Riff utilities — Riff fileformat utillity functions.</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-Riff-utilities.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/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
45</td>
46<td class="function_name">
47<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-create-audio-caps" title="gst_riff_create_audio_caps ()">gst_riff_create_audio_caps</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/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
53</td>
54<td class="function_name">
55<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-create-audio-template-caps" title="gst_riff_create_audio_template_caps ()">gst_riff_create_audio_template_caps</a> <span class="c_punctuation">()</span>
56</td>
57</tr>
58<tr>
59<td class="function_type">
60<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
61</td>
62<td class="function_name">
63<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-create-iavs-caps" title="gst_riff_create_iavs_caps ()">gst_riff_create_iavs_caps</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/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
69</td>
70<td class="function_name">
71<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-create-iavs-template-caps" title="gst_riff_create_iavs_template_caps ()">gst_riff_create_iavs_template_caps</a> <span class="c_punctuation">()</span>
72</td>
73</tr>
74<tr>
75<td class="function_type">
76<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
77</td>
78<td class="function_name">
79<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-create-video-caps" title="gst_riff_create_video_caps ()">gst_riff_create_video_caps</a> <span class="c_punctuation">()</span>
80</td>
81</tr>
82<tr>
83<td class="function_type">
84<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
85</td>
86<td class="function_name">
87<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-create-video-template-caps" title="gst_riff_create_video_template_caps ()">gst_riff_create_video_template_caps</a> <span class="c_punctuation">()</span>
88</td>
89</tr>
90<tr>
91<td class="function_type">
92<span class="returnvalue">void</span>
93</td>
94<td class="function_name">
95<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-init" title="gst_riff_init ()">gst_riff_init</a> <span class="c_punctuation">()</span>
96</td>
97</tr>
98<tr>
99<td class="function_type">
100<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
101</td>
102<td class="function_name">
103<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-parse-chunk" title="gst_riff_parse_chunk ()">gst_riff_parse_chunk</a> <span class="c_punctuation">()</span>
104</td>
105</tr>
106<tr>
107<td class="function_type">
108<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
109</td>
110<td class="function_name">
111<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-parse-file-header" title="gst_riff_parse_file_header ()">gst_riff_parse_file_header</a> <span class="c_punctuation">()</span>
112</td>
113</tr>
114<tr>
115<td class="function_type">
116<span class="returnvalue">void</span>
117</td>
118<td class="function_name">
119<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-parse-info" title="gst_riff_parse_info ()">gst_riff_parse_info</a> <span class="c_punctuation">()</span>
120</td>
121</tr>
122<tr>
123<td class="function_type">
124<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
125</td>
126<td class="function_name">
127<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-parse-strf-auds" title="gst_riff_parse_strf_auds ()">gst_riff_parse_strf_auds</a> <span class="c_punctuation">()</span>
128</td>
129</tr>
130<tr>
131<td class="function_type">
132<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
133</td>
134<td class="function_name">
135<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-parse-strf-iavs" title="gst_riff_parse_strf_iavs ()">gst_riff_parse_strf_iavs</a> <span class="c_punctuation">()</span>
136</td>
137</tr>
138<tr>
139<td class="function_type">
140<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
141</td>
142<td class="function_name">
143<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-parse-strf-vids" title="gst_riff_parse_strf_vids ()">gst_riff_parse_strf_vids</a> <span class="c_punctuation">()</span>
144</td>
145</tr>
146<tr>
147<td class="function_type">
148<a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
149</td>
150<td class="function_name">
151<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-parse-strh" title="gst_riff_parse_strh ()">gst_riff_parse_strh</a> <span class="c_punctuation">()</span>
152</td>
153</tr>
154<tr>
155<td class="function_type">
156<a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
157</td>
158<td class="function_name">
159<a class="link" href="gst-plugins-base-libs-Riff-utilities.html#gst-riff-read-chunk" title="gst_riff_read_chunk ()">gst_riff_read_chunk</a> <span class="c_punctuation">()</span>
160</td>
161</tr>
162</tbody>
163</table></div>
164</div>
165<div class="refsect1">
166<a name="gst-plugins-base-libs-Riff-utilities.includes"></a><h2>Includes</h2>
167<pre class="synopsis">#include &lt;gst/riff/riff.h&gt;
168</pre>
169</div>
170<div class="refsect1">
171<a name="gst-plugins-base-libs-Riff-utilities.description"></a><h2>Description</h2>
172<p>A collection of functions to handle riff base files, such as avi, wav and
173asf.</p>
174</div>
175<div class="refsect1">
176<a name="gst-plugins-base-libs-Riff-utilities.functions_details"></a><h2>Functions</h2>
177<div class="refsect2">
178<a name="gst-riff-create-audio-caps"></a><h3>gst_riff_create_audio_caps ()</h3>
179<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
180gst_riff_create_audio_caps (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint16"><span class="type">guint16</span></a> codec_id</code></em>,
181                            <em class="parameter"><code><span class="type">gst_riff_strh</span> *strh</code></em>,
182                            <em class="parameter"><code><span class="type">gst_riff_strf_auds</span> *strf</code></em>,
183                            <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *strf_data</code></em>,
184                            <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *strd_data</code></em>,
185                            <em class="parameter"><code><span class="type">char</span> **codec_name</code></em>,
186                            <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> channel_reorder_map[18]</code></em>);</pre>
187</div>
188<hr>
189<div class="refsect2">
190<a name="gst-riff-create-audio-template-caps"></a><h3>gst_riff_create_audio_template_caps ()</h3>
191<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
192gst_riff_create_audio_template_caps (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
193</div>
194<hr>
195<div class="refsect2">
196<a name="gst-riff-create-iavs-caps"></a><h3>gst_riff_create_iavs_caps ()</h3>
197<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
198gst_riff_create_iavs_caps (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> codec_fcc</code></em>,
199                           <em class="parameter"><code><span class="type">gst_riff_strh</span> *strh</code></em>,
200                           <em class="parameter"><code><span class="type">gst_riff_strf_iavs</span> *strf</code></em>,
201                           <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *strf_data</code></em>,
202                           <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *strd_data</code></em>,
203                           <em class="parameter"><code><span class="type">char</span> **codec_name</code></em>);</pre>
204</div>
205<hr>
206<div class="refsect2">
207<a name="gst-riff-create-iavs-template-caps"></a><h3>gst_riff_create_iavs_template_caps ()</h3>
208<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
209gst_riff_create_iavs_template_caps (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
210</div>
211<hr>
212<div class="refsect2">
213<a name="gst-riff-create-video-caps"></a><h3>gst_riff_create_video_caps ()</h3>
214<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
215gst_riff_create_video_caps (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> codec_fcc</code></em>,
216                            <em class="parameter"><code><span class="type">gst_riff_strh</span> *strh</code></em>,
217                            <em class="parameter"><code><span class="type">gst_riff_strf_vids</span> *strf</code></em>,
218                            <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *strf_data</code></em>,
219                            <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *strd_data</code></em>,
220                            <em class="parameter"><code><span class="type">char</span> **codec_name</code></em>);</pre>
221<div class="refsect3">
222<a name="gst-riff-create-video-caps.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>codec_fcc</p></td>
232<td class="parameter_description"><p>fourCC codec for this codec.</p></td>
233<td class="parameter_annotations"> </td>
234</tr>
235<tr>
236<td class="parameter_name"><p>strh</p></td>
237<td class="parameter_description"><p>pointer to the strh stream header structure.</p></td>
238<td class="parameter_annotations"> </td>
239</tr>
240<tr>
241<td class="parameter_name"><p>strf</p></td>
242<td class="parameter_description"><p>pointer to the strf stream header structure, including any
243data that is within the range of strf.size, but excluding any
244additional data withint this chunk but outside strf.size.</p></td>
245<td class="parameter_annotations"> </td>
246</tr>
247<tr>
248<td class="parameter_name"><p>strf_data</p></td>
249<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> containing the additional data in the strf
250chunk outside reach of strf.size. Ususally a palette.</p></td>
251<td class="parameter_annotations"> </td>
252</tr>
253<tr>
254<td class="parameter_name"><p>strd_data</p></td>
255<td class="parameter_description"><p>a <a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> containing the data in the strd stream header
256chunk. Usually codec initialization data.</p></td>
257<td class="parameter_annotations"> </td>
258</tr>
259<tr>
260<td class="parameter_name"><p>codec_name</p></td>
261<td class="parameter_description"><p>if given, will be filled with a human-readable codec name.</p></td>
262<td class="parameter_annotations"> </td>
263</tr>
264</tbody>
265</table></div>
266</div>
267</div>
268<hr>
269<div class="refsect2">
270<a name="gst-riff-create-video-template-caps"></a><h3>gst_riff_create_video_template_caps ()</h3>
271<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstCaps.html#GstCaps-struct"><span class="returnvalue">GstCaps</span></a> *
272gst_riff_create_video_template_caps (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
273</div>
274<hr>
275<div class="refsect2">
276<a name="gst-riff-init"></a><h3>gst_riff_init ()</h3>
277<pre class="programlisting"><span class="returnvalue">void</span>
278gst_riff_init (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
279<p>Initialize riff library.</p>
280</div>
281<hr>
282<div class="refsect2">
283<a name="gst-riff-parse-chunk"></a><h3>gst_riff_parse_chunk ()</h3>
284<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
285gst_riff_parse_chunk (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>,
286                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *buf</code></em>,
287                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *offset</code></em>,
288                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *fourcc</code></em>,
289                      <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> **chunk_data</code></em>);</pre>
290<p>Reads a single chunk.</p>
291<div class="refsect3">
292<a name="gst-riff-parse-chunk.parameters"></a><h4>Parameters</h4>
293<div class="informaltable"><table class="informaltable" width="100%" border="0">
294<colgroup>
295<col width="150px" class="parameters_name">
296<col class="parameters_description">
297<col width="200px" class="parameters_annotations">
298</colgroup>
299<tbody>
300<tr>
301<td class="parameter_name"><p>element</p></td>
302<td class="parameter_description"><p>caller element (used for debugging).</p></td>
303<td class="parameter_annotations"> </td>
304</tr>
305<tr>
306<td class="parameter_name"><p>buf</p></td>
307<td class="parameter_description"><p>input buffer.</p></td>
308<td class="parameter_annotations"> </td>
309</tr>
310<tr>
311<td class="parameter_name"><p>offset</p></td>
312<td class="parameter_description"><p>offset in the buffer in the caller. Is incremented
313by the read size by this function.</p></td>
314<td class="parameter_annotations"> </td>
315</tr>
316<tr>
317<td class="parameter_name"><p>fourcc</p></td>
318<td class="parameter_description"><p>fourcc (returned by this function0 of the chunk.</p></td>
319<td class="parameter_annotations"> </td>
320</tr>
321<tr>
322<td class="parameter_name"><p>chunk_data</p></td>
323<td class="parameter_description"><p>buffer (returned by the function) containing the
324chunk data, which may be NULL if chunksize == 0</p></td>
325<td class="parameter_annotations"> </td>
326</tr>
327</tbody>
328</table></div>
329</div>
330<div class="refsect3">
331<a name="gst-riff-parse-chunk.returns"></a><h4>Returns</h4>
332<p> FALSE on error, TRUE otherwise</p>
333</div>
334</div>
335<hr>
336<div class="refsect2">
337<a name="gst-riff-parse-file-header"></a><h3>gst_riff_parse_file_header ()</h3>
338<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
339gst_riff_parse_file_header (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>,
340                            <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *buf</code></em>,
341                            <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *doctype</code></em>);</pre>
342<p>Reads the first few bytes from the provided buffer, checks
343if this stream is a RIFF stream, and determines document type.
344This function takes ownership of <em class="parameter"><code>buf</code></em>
345 so it should not be used anymore
346after calling this function.</p>
347<div class="refsect3">
348<a name="gst-riff-parse-file-header.parameters"></a><h4>Parameters</h4>
349<div class="informaltable"><table class="informaltable" width="100%" border="0">
350<colgroup>
351<col width="150px" class="parameters_name">
352<col class="parameters_description">
353<col width="200px" class="parameters_annotations">
354</colgroup>
355<tbody>
356<tr>
357<td class="parameter_name"><p>element</p></td>
358<td class="parameter_description"><p>caller element (used for debugging/error).</p></td>
359<td class="parameter_annotations"> </td>
360</tr>
361<tr>
362<td class="parameter_name"><p>buf</p></td>
363<td class="parameter_description"><p>input buffer from which the file header will be parsed,
364should be at least 12 bytes long.</p></td>
365<td class="parameter_annotations"> </td>
366</tr>
367<tr>
368<td class="parameter_name"><p>doctype</p></td>
369<td class="parameter_description"><p>a fourcc (returned by this function) to indicate the
370type of document (according to the header).</p></td>
371<td class="parameter_annotations"> </td>
372</tr>
373</tbody>
374</table></div>
375</div>
376<div class="refsect3">
377<a name="gst-riff-parse-file-header.returns"></a><h4>Returns</h4>
378<p> FALSE if this is not a RIFF stream (in which case the
379caller should error out; we already throw an error), or TRUE
380if it is.</p>
381</div>
382</div>
383<hr>
384<div class="refsect2">
385<a name="gst-riff-parse-info"></a><h3>gst_riff_parse_info ()</h3>
386<pre class="programlisting"><span class="returnvalue">void</span>
387gst_riff_parse_info (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>,
388                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *buf</code></em>,
389                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstTagList.html#GstTagList-struct"><span class="type">GstTagList</span></a> **taglist</code></em>);</pre>
390<p>Parses stream metadata from input data.</p>
391<div class="refsect3">
392<a name="gst-riff-parse-info.parameters"></a><h4>Parameters</h4>
393<div class="informaltable"><table class="informaltable" width="100%" border="0">
394<colgroup>
395<col width="150px" class="parameters_name">
396<col class="parameters_description">
397<col width="200px" class="parameters_annotations">
398</colgroup>
399<tbody>
400<tr>
401<td class="parameter_name"><p>element</p></td>
402<td class="parameter_description"><p>caller element (used for debugging/error).</p></td>
403<td class="parameter_annotations"> </td>
404</tr>
405<tr>
406<td class="parameter_name"><p>buf</p></td>
407<td class="parameter_description"><p>input data to be used for parsing, stripped from header.</p></td>
408<td class="parameter_annotations"> </td>
409</tr>
410<tr>
411<td class="parameter_name"><p>taglist</p></td>
412<td class="parameter_description"><p>a pointer to a taglist (returned by this function)
413containing information about this stream. May be
414NULL if no supported tags were found.</p></td>
415<td class="parameter_annotations"> </td>
416</tr>
417</tbody>
418</table></div>
419</div>
420</div>
421<hr>
422<div class="refsect2">
423<a name="gst-riff-parse-strf-auds"></a><h3>gst_riff_parse_strf_auds ()</h3>
424<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
425gst_riff_parse_strf_auds (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>,
426                          <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *buf</code></em>,
427                          <em class="parameter"><code><span class="type">gst_riff_strf_auds</span> **strf</code></em>,
428                          <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> **data</code></em>);</pre>
429<p>Parses an audio stream's strf structure plus optionally some
430extradata from input data. This function takes ownership of <em class="parameter"><code>buf</code></em>
431.
432use.</p>
433<div class="refsect3">
434<a name="gst-riff-parse-strf-auds.parameters"></a><h4>Parameters</h4>
435<div class="informaltable"><table class="informaltable" width="100%" border="0">
436<colgroup>
437<col width="150px" class="parameters_name">
438<col class="parameters_description">
439<col width="200px" class="parameters_annotations">
440</colgroup>
441<tbody>
442<tr>
443<td class="parameter_name"><p>element</p></td>
444<td class="parameter_description"><p>caller element (used for debugging/error).</p></td>
445<td class="parameter_annotations"> </td>
446</tr>
447<tr>
448<td class="parameter_name"><p>buf</p></td>
449<td class="parameter_description"><p>input data to be used for parsing, stripped from header.</p></td>
450<td class="parameter_annotations"> </td>
451</tr>
452<tr>
453<td class="parameter_name"><p>strf</p></td>
454<td class="parameter_description"><p>a pointer (returned by this function) to a filled-in
455strf/auds structure. Caller should free it.</p></td>
456<td class="parameter_annotations"> </td>
457</tr>
458<tr>
459<td class="parameter_name"><p>data</p></td>
460<td class="parameter_description"><p>a pointer (returned by this function) to a buffer
461containing extradata for this particular stream (e.g.
462codec initialization data).</p></td>
463<td class="parameter_annotations"> </td>
464</tr>
465</tbody>
466</table></div>
467</div>
468<div class="refsect3">
469<a name="gst-riff-parse-strf-auds.returns"></a><h4>Returns</h4>
470<p> TRUE if parsing succeeded, otherwise FALSE. The stream
471should be skipped on error, but it is not fatal.</p>
472</div>
473</div>
474<hr>
475<div class="refsect2">
476<a name="gst-riff-parse-strf-iavs"></a><h3>gst_riff_parse_strf_iavs ()</h3>
477<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
478gst_riff_parse_strf_iavs (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>,
479                          <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *buf</code></em>,
480                          <em class="parameter"><code><span class="type">gst_riff_strf_iavs</span> **strf</code></em>,
481                          <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> **data</code></em>);</pre>
482<p>Parses a interleaved (also known as "complex")  stream´s strf
483structure plus optionally some extradata from input data. This
484function takes ownership of <em class="parameter"><code>buf</code></em>
485.</p>
486<div class="refsect3">
487<a name="gst-riff-parse-strf-iavs.parameters"></a><h4>Parameters</h4>
488<div class="informaltable"><table class="informaltable" width="100%" border="0">
489<colgroup>
490<col width="150px" class="parameters_name">
491<col class="parameters_description">
492<col width="200px" class="parameters_annotations">
493</colgroup>
494<tbody>
495<tr>
496<td class="parameter_name"><p>element</p></td>
497<td class="parameter_description"><p>caller element (used for debugging/error).</p></td>
498<td class="parameter_annotations"> </td>
499</tr>
500<tr>
501<td class="parameter_name"><p>buf</p></td>
502<td class="parameter_description"><p>input data to be used for parsing, stripped from header.</p></td>
503<td class="parameter_annotations"> </td>
504</tr>
505<tr>
506<td class="parameter_name"><p>strf</p></td>
507<td class="parameter_description"><p>a pointer (returned by this function) to a filled-in
508strf/iavs structure. Caller should free it.</p></td>
509<td class="parameter_annotations"> </td>
510</tr>
511<tr>
512<td class="parameter_name"><p>data</p></td>
513<td class="parameter_description"><p>a pointer (returned by this function) to a buffer
514containing extradata for this particular stream (e.g.
515codec initialization data).</p></td>
516<td class="parameter_annotations"> </td>
517</tr>
518</tbody>
519</table></div>
520</div>
521<div class="refsect3">
522<a name="gst-riff-parse-strf-iavs.returns"></a><h4>Returns</h4>
523<p> TRUE if parsing succeeded, otherwise FALSE.</p>
524</div>
525</div>
526<hr>
527<div class="refsect2">
528<a name="gst-riff-parse-strf-vids"></a><h3>gst_riff_parse_strf_vids ()</h3>
529<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
530gst_riff_parse_strf_vids (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>,
531                          <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *buf</code></em>,
532                          <em class="parameter"><code><span class="type">gst_riff_strf_vids</span> **strf</code></em>,
533                          <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> **data</code></em>);</pre>
534<p>Parses a video stream's strf structure plus optionally some
535extradata from input data. This function takes ownership of <em class="parameter"><code>buf</code></em>
536.</p>
537<div class="refsect3">
538<a name="gst-riff-parse-strf-vids.parameters"></a><h4>Parameters</h4>
539<div class="informaltable"><table class="informaltable" width="100%" border="0">
540<colgroup>
541<col width="150px" class="parameters_name">
542<col class="parameters_description">
543<col width="200px" class="parameters_annotations">
544</colgroup>
545<tbody>
546<tr>
547<td class="parameter_name"><p>element</p></td>
548<td class="parameter_description"><p>caller element (used for debugging/error).</p></td>
549<td class="parameter_annotations"> </td>
550</tr>
551<tr>
552<td class="parameter_name"><p>buf</p></td>
553<td class="parameter_description"><p>input data to be used for parsing, stripped from header.</p></td>
554<td class="parameter_annotations"> </td>
555</tr>
556<tr>
557<td class="parameter_name"><p>strf</p></td>
558<td class="parameter_description"><p>a pointer (returned by this function) to a filled-in
559strf/vids structure. Caller should free it.</p></td>
560<td class="parameter_annotations"> </td>
561</tr>
562<tr>
563<td class="parameter_name"><p>data</p></td>
564<td class="parameter_description"><p>a pointer (returned by this function) to a buffer
565containing extradata for this particular stream (e.g.
566palette, codec initialization data).</p></td>
567<td class="parameter_annotations"> </td>
568</tr>
569</tbody>
570</table></div>
571</div>
572<div class="refsect3">
573<a name="gst-riff-parse-strf-vids.returns"></a><h4>Returns</h4>
574<p> TRUE if parsing succeeded, otherwise FALSE. The stream
575should be skipped on error, but it is not fatal.</p>
576</div>
577</div>
578<hr>
579<div class="refsect2">
580<a name="gst-riff-parse-strh"></a><h3>gst_riff_parse_strh ()</h3>
581<pre class="programlisting"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
582gst_riff_parse_strh (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>,
583                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> *buf</code></em>,
584                     <em class="parameter"><code><span class="type">gst_riff_strh</span> **strh</code></em>);</pre>
585<p>Parses a strh structure from input data. Takes ownership of <em class="parameter"><code>buf</code></em>
586.</p>
587<div class="refsect3">
588<a name="gst-riff-parse-strh.parameters"></a><h4>Parameters</h4>
589<div class="informaltable"><table class="informaltable" width="100%" border="0">
590<colgroup>
591<col width="150px" class="parameters_name">
592<col class="parameters_description">
593<col width="200px" class="parameters_annotations">
594</colgroup>
595<tbody>
596<tr>
597<td class="parameter_name"><p>element</p></td>
598<td class="parameter_description"><p>caller element (used for debugging/error).</p></td>
599<td class="parameter_annotations"> </td>
600</tr>
601<tr>
602<td class="parameter_name"><p>buf</p></td>
603<td class="parameter_description"><p>input data to be used for parsing, stripped from header.</p></td>
604<td class="parameter_annotations"> </td>
605</tr>
606<tr>
607<td class="parameter_name"><p>strh</p></td>
608<td class="parameter_description"><p>a pointer (returned by this function) to a filled-in
609strh structure. Caller should free it.</p></td>
610<td class="parameter_annotations"> </td>
611</tr>
612</tbody>
613</table></div>
614</div>
615<div class="refsect3">
616<a name="gst-riff-parse-strh.returns"></a><h4>Returns</h4>
617<p> TRUE if parsing succeeded, otherwise FALSE. The stream
618should be skipped on error, but it is not fatal.</p>
619</div>
620</div>
621<hr>
622<div class="refsect2">
623<a name="gst-riff-read-chunk"></a><h3>gst_riff_read_chunk ()</h3>
624<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstFlowReturn"><span class="returnvalue">GstFlowReturn</span></a>
625gst_riff_read_chunk (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstElement.html#GstElement-struct"><span class="type">GstElement</span></a> *element</code></em>,
626                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstPad.html#GstPad-struct"><span class="type">GstPad</span></a> *pad</code></em>,
627                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint64"><span class="type">guint64</span></a> *offset</code></em>,
628                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> *tag</code></em>,
629                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gstreamer-1.0/GstBuffer.html#GstBuffer-struct"><span class="type">GstBuffer</span></a> **chunk_data</code></em>);</pre>
630<p>Reads a single chunk of data. 'JUNK' chunks are skipped
631automatically.</p>
632<div class="refsect3">
633<a name="gst-riff-read-chunk.parameters"></a><h4>Parameters</h4>
634<div class="informaltable"><table class="informaltable" width="100%" border="0">
635<colgroup>
636<col width="150px" class="parameters_name">
637<col class="parameters_description">
638<col width="200px" class="parameters_annotations">
639</colgroup>
640<tbody>
641<tr>
642<td class="parameter_name"><p>element</p></td>
643<td class="parameter_description"><p>caller element (used for debugging).</p></td>
644<td class="parameter_annotations"> </td>
645</tr>
646<tr>
647<td class="parameter_name"><p>pad</p></td>
648<td class="parameter_description"><p>pad to pull data from.</p></td>
649<td class="parameter_annotations"> </td>
650</tr>
651<tr>
652<td class="parameter_name"><p>offset</p></td>
653<td class="parameter_description"><p>offset to pull from, incremented by this function.</p></td>
654<td class="parameter_annotations"> </td>
655</tr>
656<tr>
657<td class="parameter_name"><p>tag</p></td>
658<td class="parameter_description"><p>fourcc of the chunk (returned by this function).</p></td>
659<td class="parameter_annotations"> </td>
660</tr>
661<tr>
662<td class="parameter_name"><p>chunk_data</p></td>
663<td class="parameter_description"><p>buffer (returned by this function).</p></td>
664<td class="parameter_annotations"> </td>
665</tr>
666</tbody>
667</table></div>
668</div>
669<div class="refsect3">
670<a name="gst-riff-read-chunk.returns"></a><h4>Returns</h4>
671<p> flow status.</p>
672</div>
673</div>
674</div>
675<div class="refsect1">
676<a name="gst-plugins-base-libs-Riff-utilities.other_details"></a><h2>Types and Values</h2>
677</div>
678</div>
679<div class="footer">
680<hr>Generated by GTK-Doc V1.28</div>
681</body>
682</html>