annotate src/libogg-1.3.0/doc/libogg/encoding.html @ 1:05aa0afa9217

Bring in flac, ogg, vorbis
author Chris Cannam
date Tue, 19 Mar 2013 17:37:49 +0000
parents
children
rev   line source
Chris@1 1 <html>
Chris@1 2
Chris@1 3 <head>
Chris@1 4 <title>libogg - Encoding</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>Encoding</h1>
Chris@1 17 <p>Libogg contains a set of functions used in the encoding process.
Chris@1 18 <p>
Chris@1 19 All the <b>libogg</b> specific functions are declared in "ogg/ogg.h".
Chris@1 20 <p>
Chris@1 21 <p>When encoding, the encoding engine will output raw packets which must be placed into an Ogg bitstream.
Chris@1 22 <p>Raw packets are inserted into the stream, and an <a href="ogg_page.html">ogg_page</a> is output when enough packets have been written to create a full page. The pages output are pointers to buffered packet segments, and can then be written out and saved as an ogg stream.
Chris@1 23 <p>There are a couple of basic steps:
Chris@1 24 <ul>
Chris@1 25 <li>Use the encoding engine to produce a raw packet of data.
Chris@1 26 <li>Call <a href="ogg_stream_packetin.html">ogg_stream_packetin</a> to submit a raw packet to the stream.
Chris@1 27 <li>Use <a href="ogg_stream_pageout.html">ogg_stream_pageout</a> to output a page, if enough data has been submitted. Otherwise, continue submitting data.
Chris@1 28 </ul>
Chris@1 29 <br><br>
Chris@1 30
Chris@1 31 <table border=1 color=black width=50% cellspacing=0 cellpadding=7>
Chris@1 32 <tr bgcolor=#cccccc>
Chris@1 33 <td><b>function</b></td>
Chris@1 34 <td><b>purpose</b></td>
Chris@1 35 </tr>
Chris@1 36 <tr valign=top>
Chris@1 37 <td><a href="ogg_stream_packetin.html">ogg_stream_packetin</a></td>
Chris@1 38 <td>Submits a raw packet to the streaming layer, so that it can be formed into a page.</td>
Chris@1 39 </tr>
Chris@1 40 <tr valign=top>
Chris@1 41 <td><a href="ogg_stream_iovecin.html">ogg_stream_iovecin</a></td>
Chris@1 42 <td>iovec version of ogg_stream_packetin() above.</td>
Chris@1 43 </tr>
Chris@1 44 <tr valign=top>
Chris@1 45 <td><a href="ogg_stream_pageout.html">ogg_stream_pageout</a></td>
Chris@1 46 <td>Outputs a completed page if the stream contains enough packets to form a full page.<td>
Chris@1 47 </tr>
Chris@1 48 <tr valign=top>
Chris@1 49 <td><a href="ogg_stream_pageout_fill.html">ogg_stream_pageout_fill</a></td>
Chris@1 50 <td>Similar to ogg_stream_pageout(), but specifies a page spill threshold in bytes.
Chris@1 51 </tr>
Chris@1 52 <tr valign=top>
Chris@1 53 <td><a href="ogg_stream_flush.html">ogg_stream_flush</a></td>
Chris@1 54 <td>Forces any remaining packets in the stream to be returned as a page of any size.<td>
Chris@1 55 </tr>
Chris@1 56 <tr valign=top>
Chris@1 57 <td><a href="ogg_stream_flush_fill.html">ogg_stream_flush_fill</a></td>
Chris@1 58 <td>Similar to ogg_stream_flush(), but specifies a page spill threshold in bytes.<td>
Chris@1 59 </tr>
Chris@1 60 </table>
Chris@1 61
Chris@1 62 <br><br>
Chris@1 63 <hr noshade>
Chris@1 64 <table border=0 width=100%>
Chris@1 65 <tr valign=top>
Chris@1 66 <td><p class=tiny>copyright &copy; 2000-2011 Xiph.Org</p></td>
Chris@1 67 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td>
Chris@1 68 </tr><tr>
Chris@1 69 <td><p class=tiny>libogg documentation</p></td>
Chris@1 70 <td align=right><p class=tiny>libogg release 1.3.0 - 20110804</p></td>
Chris@1 71 </tr>
Chris@1 72 </table>
Chris@1 73
Chris@1 74 </body>
Chris@1 75
Chris@1 76 </html>