annotate src/libogg-1.3.0/doc/libogg/ogg_stream_packetpeek.html @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 05aa0afa9217
children
rev   line source
Chris@1 1 <html>
Chris@1 2
Chris@1 3 <head>
Chris@1 4 <title>libogg - function - ogg_stream_packetpeek</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_packetpeek</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 attempts to assemble a raw data packet and returns
Chris@1 21 it without advancing decoding.</p>
Chris@1 22
Chris@1 23 <p>In a typical situation, this would be called
Chris@1 24 speculatively after <a
Chris@1 25 href="ogg_stream_pagein.html">ogg_stream_pagein()</a> to check
Chris@1 26 the packet contents before handing it off to a codec for
Chris@1 27 decompression. To advance page decoding and remove
Chris@1 28 the packet from the sync structure, call
Chris@1 29 <a href="ogg_stream_packetout.html">ogg_stream_packetout()</a>.</p>
Chris@1 30
Chris@1 31 <br><br>
Chris@1 32
Chris@1 33 <table border=0 color=black cellspacing=0 cellpadding=7>
Chris@1 34 <tr bgcolor=#cccccc>
Chris@1 35 <td>
Chris@1 36 <pre><b>
Chris@1 37 int ogg_stream_packetpeek(ogg_stream_state *os,ogg_packet *op);
Chris@1 38 </b></pre>
Chris@1 39 </td>
Chris@1 40 </tr>
Chris@1 41 </table>
Chris@1 42
Chris@1 43 <h3>Parameters</h3>
Chris@1 44 <dl>
Chris@1 45 <dt><i>os</i></dt>
Chris@1 46 <dd>Pointer to a previously declared
Chris@1 47 <a href="ogg_stream_state.html">ogg_stream_state</a> struct. Before this
Chris@1 48 function is called, an <a href="ogg_page.html">ogg_page</a> should be
Chris@1 49 submitted to the stream using
Chris@1 50 <a href="ogg_stream_pagein.html">ogg_stream_pagein()</a>.</dd>
Chris@1 51 <dt><i>op</i></dt>
Chris@1 52 <dd>Pointer to the next packet available in the bitstream, if
Chris@1 53 any. A NULL value may be passed in the case of a simple "is there a
Chris@1 54 packet?" check.</dd>
Chris@1 55 </dl>
Chris@1 56
Chris@1 57
Chris@1 58 <h3>Return Values</h3>
Chris@1 59 <blockquote>
Chris@1 60 <ul>
Chris@1 61 <li>-1 if there's no packet available due to lost sync or a hole in the data.</li>
Chris@1 62 <li>0 if there is insufficient data available to complete a packet, or on unrecoverable internal error occurred.</li>
Chris@1 63 <li>1 if a packet is available.</li>
Chris@1 64 </ul>
Chris@1 65 </blockquote>
Chris@1 66
Chris@1 67
Chris@1 68 <br><br>
Chris@1 69
Chris@1 70 <hr noshade>
Chris@1 71
Chris@1 72 <table border=0 width=100%>
Chris@1 73 <tr valign=top>
Chris@1 74 <td><p class=tiny>copyright &copy; 2000-2011 Xiph.Org</p></td>
Chris@1 75 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td>
Chris@1 76 </tr><tr>
Chris@1 77 <td><p class=tiny>libogg documentation</p></td>
Chris@1 78 <td align=right><p class=tiny>libogg release 1.3.0 - 20110804</p></td>
Chris@1 79 </tr>
Chris@1 80 </table>
Chris@1 81
Chris@1 82
Chris@1 83 </body>
Chris@1 84
Chris@1 85 </html>