1 | <html>
|
---|
2 |
|
---|
3 | <head>
|
---|
4 | <title>libogg - function - ogg_stream_flush_fill</title>
|
---|
5 | <link rel=stylesheet href="style.css" type="text/css">
|
---|
6 | </head>
|
---|
7 |
|
---|
8 | <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
|
---|
9 | <table border=0 width=100%>
|
---|
10 | <tr>
|
---|
11 | <td><p class=tiny>libogg documentation</p></td>
|
---|
12 | <td align=right><p class=tiny>libogg release 1.3.5 - 20210603</p></td>
|
---|
13 | </tr>
|
---|
14 | </table>
|
---|
15 |
|
---|
16 | <h1>ogg_stream_flush_fill</h1>
|
---|
17 |
|
---|
18 | <p><i>declared in "ogg/ogg.h";</i></p>
|
---|
19 |
|
---|
20 | <p>This function flushes available packets into pages, similar to
|
---|
21 | <a href="ogg_stream_flush.html">ogg_stream_flush()</a>, but
|
---|
22 | allows applications to explicitly request a specific page spill
|
---|
23 | size.</p>
|
---|
24 |
|
---|
25 | <p>This function checks for remaining packets inside the stream and forces remaining packets into pages of approximately the requested size.
|
---|
26 | This should be used when you want to flush all remaining data from a stream. <a href="ogg_stream_flush.html">ogg_stream_flush</a> may be used instead if a particular page size isn't important.
|
---|
27 | <p>This function can be used to verify that all packets have been flushed. If the return value is 0, all packets have been placed into a page. Generally speaking, it should be called in a loop until all packets are flushed, since even a single packet may span multiple pages.
|
---|
28 |
|
---|
29 | <br><br>
|
---|
30 | <table border=0 color=black cellspacing=0 cellpadding=7>
|
---|
31 | <tr bgcolor=#cccccc>
|
---|
32 | <td>
|
---|
33 | <pre><b>
|
---|
34 | int ogg_stream_flush_fill(<a href="ogg_stream_state.html">ogg_stream_state</a> *os, <a href="ogg_page.html">ogg_page</a> *og, int fillbytes);
|
---|
35 | </b></pre>
|
---|
36 | </td>
|
---|
37 | </tr>
|
---|
38 | </table>
|
---|
39 |
|
---|
40 | <h3>Parameters</h3>
|
---|
41 | <dl>
|
---|
42 | <dt><i>os</i></dt>
|
---|
43 | <dd>Pointer to a previously declared <a href="ogg_stream_state.html">ogg_stream_state</a> struct, which represents the current logical bitstream.</dd>
|
---|
44 | <dt><i>og</i></dt>
|
---|
45 | <dd>Pointer to a page of data. The remaining packets in the stream will be placed into this page, if any remain.
|
---|
46 | <dt><i>fillbytes</i></dt>
|
---|
47 | <dd>Packet data watermark in bytes.</dd>
|
---|
48 | </dl>
|
---|
49 |
|
---|
50 |
|
---|
51 | <h3>Return Values</h3>
|
---|
52 | <blockquote>
|
---|
53 | <li>0 means that all packet data has already been flushed into pages, and there are no packets to put into the page. 0 is also returned in the case of an <a href="ogg_stream_state.html">ogg_stream_state</a> that has been cleared explicitly or implicitly due to an internal error.</li>
|
---|
54 | <li>
|
---|
55 | Nonzero means that remaining packets have successfully been flushed into the page.</li>
|
---|
56 | </blockquote>
|
---|
57 | <p>
|
---|
58 |
|
---|
59 | <br><br>
|
---|
60 | <hr noshade>
|
---|
61 | <table border=0 width=100%>
|
---|
62 | <tr valign=top>
|
---|
63 | <td><p class=tiny>copyright © 2000-2021 Xiph.Org Foundation</p></td>
|
---|
64 | <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td>
|
---|
65 | </tr><tr>
|
---|
66 | <td><p class=tiny>libogg documentation</p></td>
|
---|
67 | <td align=right><p class=tiny>libogg release 1.3.5 - 20210603</p></td>
|
---|
68 | </tr>
|
---|
69 | </table>
|
---|
70 |
|
---|
71 |
|
---|
72 | </body>
|
---|
73 |
|
---|
74 | </html>
|
---|