| Chris@1 | 1 <html> | 
| Chris@1 | 2 | 
| Chris@1 | 3 <head> | 
| Chris@1 | 4 <title>libogg - function - ogg_stream_pageout_fill</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_pageout_fill</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 forms packets into pages, similar | 
| Chris@1 | 21 to <a href="ogg_stream_pageout.html">ogg_stream_pageout()</a>, but | 
| Chris@1 | 22 allows applications to explicitly request a specific page spill | 
| Chris@1 | 23 size.</p> | 
| Chris@1 | 24 | 
| Chris@1 | 25 <p>In a typical encoding situation, this would be called after using <a | 
| Chris@1 | 26 href="ogg_stream_packetin.html">ogg_stream_packetin()</a> to submit | 
| Chris@1 | 27 data packets to the bitstream. Internally, this function assembles | 
| Chris@1 | 28 the accumulated packet bodies into an Ogg page suitable for writing | 
| Chris@1 | 29 to a stream. The function is typically called in a loop until there | 
| Chris@1 | 30 are no more pages ready for output.</p> | 
| Chris@1 | 31 | 
| Chris@1 | 32 <p>This function will return a page when at least four packets have | 
| Chris@1 | 33 been accumulated and accumulated packet data meets or exceeds the | 
| Chris@1 | 34 specified number of bytes, <b>and/or</b> when the accumulated packet | 
| Chris@1 | 35 data meets/exceeds the maximum page size regardless of accumulated | 
| Chris@1 | 36 packet count. | 
| Chris@1 | 37 Call <a href="ogg_stream_flush.html">ogg_stream_flush()</a> or | 
| Chris@1 | 38 <a href="ogg_stream_flush_fill.html">ogg_stream_flush_fill()</a> if | 
| Chris@1 | 39 immediate page generation is desired regardless of accumulated data.</p> | 
| Chris@1 | 40 | 
| Chris@1 | 41 <br><br> | 
| Chris@1 | 42 <table border=0 color=black cellspacing=0 cellpadding=7> | 
| Chris@1 | 43 <tr bgcolor=#cccccc> | 
| Chris@1 | 44 	<td> | 
| Chris@1 | 45 <pre><b> | 
| Chris@1 | 46 int ogg_stream_pageout_fill(<a href="ogg_stream_state.html">ogg_stream_state</a> *os, <a href="ogg_page.html">ogg_page</a> *og, int fillbytes); | 
| Chris@1 | 47 </b></pre> | 
| Chris@1 | 48 	</td> | 
| Chris@1 | 49 </tr> | 
| Chris@1 | 50 </table> | 
| Chris@1 | 51 | 
| Chris@1 | 52 <h3>Parameters</h3> | 
| Chris@1 | 53 <dl> | 
| Chris@1 | 54 <dt><i>os</i></dt> | 
| Chris@1 | 55 <dd>Pointer to a previously declared <a href="ogg_stream.html">ogg_stream</a> struct, which represents the current logical bitstream.</dd> | 
| Chris@1 | 56 <dt><i>og</i></dt> | 
| Chris@1 | 57 <dd>Pointer to an <a href="ogg_page.html">ogg_page</a> structure to fill | 
| Chris@1 | 58 in. Data pointed to is owned by libogg. The structure is valid until the | 
| Chris@1 | 59 next call to ogg_stream_pageout(), ogg_stream_packetin(), or | 
| Chris@1 | 60 ogg_stream_flush().</dd> | 
| Chris@1 | 61 <dt><i>fillbytes</i></dt> | 
| Chris@1 | 62 <dd>Packet data watermark in bytes.</dd> | 
| Chris@1 | 63 </dl> | 
| Chris@1 | 64 | 
| Chris@1 | 65 | 
| Chris@1 | 66 <h3>Return Values</h3> | 
| Chris@1 | 67 <blockquote> | 
| Chris@1 | 68 <li>Zero means that insufficient data has accumulated to fill a page, or an internal error occurred. In | 
| Chris@1 | 69 this case <i>og</i> is not modified.</li> | 
| Chris@1 | 70 <li>Non-zero means that a page has been completed and returned.</li> | 
| Chris@1 | 71 </blockquote> | 
| Chris@1 | 72 <p> | 
| Chris@1 | 73 | 
| Chris@1 | 74 <br><br> | 
| Chris@1 | 75 <hr noshade> | 
| Chris@1 | 76 <table border=0 width=100%> | 
| Chris@1 | 77 <tr valign=top> | 
| Chris@1 | 78 <td><p class=tiny>copyright © 2000-2010 xiph.org</p></td> | 
| Chris@1 | 79 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td> | 
| Chris@1 | 80 </tr><tr> | 
| Chris@1 | 81 <td><p class=tiny>libogg documentation</p></td> | 
| Chris@1 | 82 <td align=right><p class=tiny>libogg release 1.3.0 - 20110804</p></td> | 
| Chris@1 | 83 </tr> | 
| Chris@1 | 84 </table> | 
| Chris@1 | 85 | 
| Chris@1 | 86 | 
| Chris@1 | 87 </body> | 
| Chris@1 | 88 | 
| Chris@1 | 89 </html> |