4 <title>libogg - function - ogg_stream_packetin</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.2.0 - 20100325</p></td>
16 <h1>ogg_stream_packetin</h1>
18 <p><i>declared in "ogg/ogg.h";</i></p>
20 <p>This function submits a packet to the bitstream for page
21 encapsulation. After this is called, more packets can be submitted,
22 or pages can be written out.</p>
24 <p>In a typical encoding situation, this should be used after filling a
26 The data in the packet is copied into the internal storage managed by
27 the <a href="ogg_stream_state.html">ogg_stream_state</a>, so the caller
28 is free to alter the contents of <i>op</i> after this call has returned.
31 <table border=0 color=black cellspacing=0 cellpadding=7>
35 int ogg_stream_packetin(ogg_stream_state *os,ogg_packet *op);
44 <dd>Pointer to a previously declared <a href="ogg_stream_state.html">ogg_stream_state</a> struct.</dd>
46 <dd>Pointer to the packet we are putting into the bitstream.
50 <h3>Return Values</h3>
53 0 returned on success. -1 returned in the event of internal error.</li>
59 <table border=0 width=100%>
61 <td><p class=tiny>copyright © 2000-2010 Xiph.Org</p></td>
62 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td>
64 <td><p class=tiny>libogg documentation</p></td>
65 <td align=right><p class=tiny>libogg release 1.2.0 - 20100325</p></td>