4 <title>libogg - function - ogg_stream_pageout
</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.3.3 -
20171107</p></td>
16 <h1>ogg_stream_pageout
</h1>
18 <p><i>declared in
"ogg/ogg.h";
</i></p>
20 <p>This function forms packets into pages.
</p>
22 <p>In a typical encoding situation, this would be called after using
<a
23 href=
"ogg_stream_packetin.html">ogg_stream_packetin()
</a> to submit
24 data packets to the bitstream. Internally, this function assembles
25 the accumulated packet bodies into an Ogg page suitable for writing
26 to a stream. The function is typically called in a loop until there
27 are no more pages ready for output.
</p>
29 <p>This function will only return a page when a
"reasonable" amount of
30 packet data is available. Normally this is appropriate since it
31 limits the overhead of the Ogg page headers in the bitstream, and so
32 calling ogg_stream_pageout() after ogg_stream_packetin() should be the
33 common case. Call
<a href=
"ogg_stream_flush.html">ogg_stream_flush()
</a>
34 if immediate page generation is desired. This may be occasionally
35 necessary, for example, to limit the temporal latency of a variable
39 <table border=
0 color=black cellspacing=
0 cellpadding=
7>
43 int ogg_stream_pageout(
<a href=
"ogg_stream_state.html">ogg_stream_state
</a> *os,
<a href=
"ogg_page.html">ogg_page
</a> *og);
52 <dd>Pointer to a previously declared
<a href=
"ogg_stream.html">ogg_stream
</a> struct, which represents the current logical bitstream.
</dd>
54 <dd>Pointer to an
<a href=
"ogg_page.html">ogg_page
</a> structure to fill
55 in. Data pointed to is owned by libogg. The structure is valid until the
56 next call to ogg_stream_pageout(), ogg_stream_packetin(), or
57 ogg_stream_flush().
</dd>
61 <h3>Return Values
</h3>
63 <li>Zero means that insufficient data has accumulated to fill a page, or an internal error occurred. In
64 this case
<i>og
</i> is not modified.
</li>
65 <li>Non-zero means that a page has been completed and returned.
</li>
71 <table border=
0 width=
100%
>
73 <td><p class=tiny
>copyright
© 2000-
2017 Xiph.Org Foundation
</p></td>
74 <td align=right
><p class=tiny
><a href=
"http://www.xiph.org/ogg/">Ogg Container Format
</a></p></td>
76 <td><p class=tiny
>libogg documentation
</p></td>
77 <td align=right
><p class=tiny
>libogg release
1.3.3 -
20171107</p></td>