4 <title>libogg - function - ogg_stream_packetout</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_packetout</h1>
18 <p><i>declared in "ogg/ogg.h";</i></p>
20 <p>This function assembles a raw data packet for output to the codec decoding engine. The data is already in the stream and broken into packet segments.</p>
21 <p>In a typical decoding situation, this should be used after calling <a href="ogg_stream_pagein.html">ogg_stream_pagein()</a> to submit a page of data to the bitstream.</p>
24 <table border=0 color=black cellspacing=0 cellpadding=7>
28 int ogg_stream_packetout(ogg_stream_state *os,ogg_packet *op);
37 <dd>Pointer to a previously declared <a
38 href="ogg_stream_state.html">ogg_stream_state</a> struct. Before this function is called, an <a href="ogg_page.html">ogg_page</a> should be submitted to the stream using <a href="ogg_stream_pagein.html">ogg_stream_pagein()</a>.</dd>
40 <dd>Pointer to the packet that will be submitted to the decoding layer after this function is called.</dd>
44 <h3>Return Values</h3>
47 <li>-1 if we are out of sync and there is a gap in the data. Usually this will not be a fatal error.</li>
48 <li>1 in all other cases.</li>
56 <table border=0 width=100%>
58 <td><p class=tiny>copyright © 2000 xiph.org</p></td>
59 <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>
61 <td><p class=tiny>libogg documentation</p></td>
62 <td align=right><p class=tiny>libogg release 1.0 - 20000615</p></td>