annotate src/libogg-1.3.0/doc/libogg/ogg_stream_flush.html @ 1:05aa0afa9217

Bring in flac, ogg, vorbis
author Chris Cannam
date Tue, 19 Mar 2013 17:37:49 +0000
parents
children
rev   line source
Chris@1 1 <html>
Chris@1 2
Chris@1 3 <head>
Chris@1 4 <title>libogg - function - ogg_stream_flush</title>
Chris@1 5 <link rel=stylesheet href="style.css" type="text/css">
Chris@1 6 </head>
Chris@1 7
Chris@1 8 <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
Chris@1 9 <table border=0 width=100%>
Chris@1 10 <tr>
Chris@1 11 <td><p class=tiny>libogg documentation</p></td>
Chris@1 12 <td align=right><p class=tiny>libogg release 1.3.0 - 20110804</p></td>
Chris@1 13 </tr>
Chris@1 14 </table>
Chris@1 15
Chris@1 16 <h1>ogg_stream_flush</h1>
Chris@1 17
Chris@1 18 <p><i>declared in "ogg/ogg.h";</i></p>
Chris@1 19
Chris@1 20 <p>This function checks for remaining packets inside the stream and forces remaining packets into a page, regardless of the size of the page.
Chris@1 21 <p>This should only be used when you want to flush an undersized page from the middle of the stream. Otherwise, <a href="ogg_stream_pageout.html">ogg_stream_pageout</a> or <a href="ogg_stream_pageout_fill.html">ogg_stream_pageout_fill</a>should always be used.
Chris@1 22 <p>This function can also be used to verify that all packets have been flushed. If the return value is 0, all packets have been placed into a page. Like <a href="ogg_stream_pageout.html">ogg_stream_pageout</a>, it should generally be called in a loop until available packet data has been flushes, since even a single packet may span multiple pages.
Chris@1 23
Chris@1 24 <br><br>
Chris@1 25 <table border=0 color=black cellspacing=0 cellpadding=7>
Chris@1 26 <tr bgcolor=#cccccc>
Chris@1 27 <td>
Chris@1 28 <pre><b>
Chris@1 29 int ogg_stream_flush(<a href="ogg_stream_state.html">ogg_stream_state</a> *os, <a href="ogg_page.html">ogg_page</a> *og);
Chris@1 30 </b></pre>
Chris@1 31 </td>
Chris@1 32 </tr>
Chris@1 33 </table>
Chris@1 34
Chris@1 35 <h3>Parameters</h3>
Chris@1 36 <dl>
Chris@1 37 <dt><i>os</i></dt>
Chris@1 38 <dd>Pointer to a previously declared <a href="ogg_stream_state.html">ogg_stream_state</a> struct, which represents the current logical bitstream.</dd>
Chris@1 39 <dt><i>og</i></dt>
Chris@1 40 <dd>Pointer to a page of data. The remaining packets in the stream will be placed into this page, if any remain.
Chris@1 41 </dl>
Chris@1 42
Chris@1 43
Chris@1 44 <h3>Return Values</h3>
Chris@1 45 <blockquote>
Chris@1 46 <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>
Chris@1 47 <li>
Chris@1 48 Nonzero means that remaining packets have successfully been flushed into the page.</li>
Chris@1 49 </blockquote>
Chris@1 50 <p>
Chris@1 51
Chris@1 52 <br><br>
Chris@1 53 <hr noshade>
Chris@1 54 <table border=0 width=100%>
Chris@1 55 <tr valign=top>
Chris@1 56 <td><p class=tiny>copyright &copy; 2000-2011 Xiph.Org</p></td>
Chris@1 57 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td>
Chris@1 58 </tr><tr>
Chris@1 59 <td><p class=tiny>libogg documentation</p></td>
Chris@1 60 <td align=right><p class=tiny>libogg release 1.3.0 - 20110804</p></td>
Chris@1 61 </tr>
Chris@1 62 </table>
Chris@1 63
Chris@1 64
Chris@1 65 </body>
Chris@1 66
Chris@1 67 </html>