4 <title>libogg - function - ogg_stream_pagein</title>
5 <link rel=stylesheet href="style.css" type="text/css">
8 <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
9 <table border=0 width=100%>
11 <td><p class=tiny>libogg documentation</p></td>
12 <td align=right><p class=tiny>libogg release 1.0 - 20000615</p></td>
16 <h1>ogg_stream_pagein</h1>
18 <p><i>declared in "ogg/ogg.h";</i></p>
20 <p>This function adds a complete page to the bitstream.
21 <p>In a typical decoding situation, this function would be called after using <a href="ogg_sync_pageout.html">ogg_sync_pageout</a> to create a valid <a href="ogg_page.html">ogg_page</a> struct.
22 <p>Internally, this function breaks the page into packet segments in preparation for outputting a valid packet to the codec decoding layer.
25 <table border=0 color=black cellspacing=0 cellpadding=7>
29 int ogg_stream_pagein(<a href="ogg_stream_state.html">ogg_stream_state</a> *os, <a href="ogg_page.html">ogg_page</a> *og);
38 <dd>Pointer to a previously declared <a href="ogg_stream.html">ogg_stream</a> struct, which represents the current logical bitstream.</dd>
40 <dd>Pointer to a page of data. The data inside this page is being submitted to the streaming layer in order to be allocated into packets.
44 <h3>Return Values</h3>
46 <li>-1 indicates failure. This means that the serial number of the page did not match the serial number of the bitstream, or that the page version was incorrect.</li>
48 0 means that the page was successfully submitted to the bitstream.</li>
54 <table border=0 width=100%>
56 <td><p class=tiny>copyright © 2000 xiph.org</p></td>
57 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a><br><a href="mailto:team@xiph.org">team@xiph.org</a></p></td>
59 <td><p class=tiny>libogg documentation</p></td>
60 <td align=right><p class=tiny>libogg release 1.0 - 20000615</p></td>