| Chris@1 | 1 <html> | 
| Chris@1 | 2 | 
| Chris@1 | 3 <head> | 
| Chris@1 | 4 <title>libogg - function - ogg_stream_packetin</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_packetin</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 submits a packet to the bitstream for page | 
| Chris@1 | 21 encapsulation. After this is called, more packets can be submitted, | 
| Chris@1 | 22 or pages can be written out.</p> | 
| Chris@1 | 23 | 
| Chris@1 | 24 <p>In a typical encoding situation, this should be used after filling a | 
| Chris@1 | 25 packet with data. | 
| Chris@1 | 26 The data in the packet is copied into the internal storage managed by | 
| Chris@1 | 27 the <a href="ogg_stream_state.html">ogg_stream_state</a>, so the caller | 
| Chris@1 | 28 is free to alter the contents of <i>op</i> after this call has returned. | 
| Chris@1 | 29 | 
| Chris@1 | 30 <br><br> | 
| Chris@1 | 31 <table border=0 color=black cellspacing=0 cellpadding=7> | 
| Chris@1 | 32 <tr bgcolor=#cccccc> | 
| Chris@1 | 33 	<td> | 
| Chris@1 | 34 <pre><b> | 
| Chris@1 | 35 int ogg_stream_packetin(ogg_stream_state *os,ogg_packet *op); | 
| Chris@1 | 36 </b></pre> | 
| Chris@1 | 37 	</td> | 
| Chris@1 | 38 </tr> | 
| Chris@1 | 39 </table> | 
| Chris@1 | 40 | 
| Chris@1 | 41 <h3>Parameters</h3> | 
| Chris@1 | 42 <dl> | 
| Chris@1 | 43 <dt><i>os</i></dt> | 
| Chris@1 | 44 <dd>Pointer to a previously declared <a href="ogg_stream_state.html">ogg_stream_state</a> struct.</dd> | 
| Chris@1 | 45 <dt><i>op</i></dt> | 
| Chris@1 | 46 <dd>Pointer to the packet we are putting into the bitstream. | 
| Chris@1 | 47 </dl> | 
| Chris@1 | 48 | 
| Chris@1 | 49 | 
| Chris@1 | 50 <h3>Return Values</h3> | 
| Chris@1 | 51 <blockquote> | 
| Chris@1 | 52 <li> | 
| Chris@1 | 53 0 returned on success.  -1 returned in the event of internal error.</li> | 
| Chris@1 | 54 </blockquote> | 
| Chris@1 | 55 <p> | 
| Chris@1 | 56 | 
| Chris@1 | 57 <br><br> | 
| Chris@1 | 58 <hr noshade> | 
| Chris@1 | 59 <table border=0 width=100%> | 
| Chris@1 | 60 <tr valign=top> | 
| Chris@1 | 61 <td><p class=tiny>copyright © 2000-2011 Xiph.Org</p></td> | 
| Chris@1 | 62 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td> | 
| Chris@1 | 63 </tr><tr> | 
| Chris@1 | 64 <td><p class=tiny>libogg documentation</p></td> | 
| Chris@1 | 65 <td align=right><p class=tiny>libogg release 1.3.0 - 20110804</p></td> | 
| Chris@1 | 66 </tr> | 
| Chris@1 | 67 </table> | 
| Chris@1 | 68 | 
| Chris@1 | 69 | 
| Chris@1 | 70 </body> | 
| Chris@1 | 71 | 
| Chris@1 | 72 </html> |