VirtualBox

source: vbox/trunk/src/libs/libogg-1.3.5/doc/libogg/ogg_stream_pageout_fill.html@ 100762

Last change on this file since 100762 was 96360, checked in by vboxsync, 2 years ago

libogg, libvorbis: export to OSE

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette