annotate src/libvorbis-1.3.3/doc/vorbisenc/vorbis_encode_setup_init.html @ 126:4a7071416412

Current libsamplerate source
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 18 Oct 2016 13:24:45 +0100
parents 98c1576536ae
children
rev   line source
cannam@86 1 <html>
cannam@86 2
cannam@86 3 <head>
cannam@86 4 <title>libvorbisenc - function - vorbis_encode_setup_init</title>
cannam@86 5 <link rel=stylesheet href="style.css" type="text/css">
cannam@86 6 </head>
cannam@86 7
cannam@86 8 <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
cannam@86 9 <table border=0 width=100%>
cannam@86 10 <tr>
cannam@86 11 <td><p class=tiny>libvorbisenc documentation</p></td>
cannam@86 12 <td align=right><p class=tiny>libvorbisenc version 1.3.2 - 20101101</p></td>
cannam@86 13 </tr>
cannam@86 14 </table>
cannam@86 15
cannam@86 16 <h1>vorbis_encode_setup_init</h1>
cannam@86 17
cannam@86 18 <p><i>declared in "vorbis/vorbisenc.h";</i></p>
cannam@86 19
cannam@86 20 <p>This function performs the last stage of three-step encoding setup, as described in the API overview under <a href="overview.html#BBR">managed bitrate modes</a>.
cannam@86 21
cannam@86 22 <p>Before this function is called, the <a
cannam@86 23 href="../libvorbis/vorbis_info.html">vorbis_info</a> struct should be initialized
cannam@86 24 by using vorbis_info_init() from the libvorbis API, one of <a
cannam@86 25 href="vorbis_encode_setup_managed.html">vorbis_encode_setup_managed()</a>
cannam@86 26 or <a
cannam@86 27 href="vorbis_encode_setup_vbr.html">vorbis_encode_setup_vbr()</a>
cannam@86 28 called to initialize the high-level encoding setup, and <a
cannam@86 29 href="vorbis_encode_ctl.html">vorbis_encode_ctl()</a> called if
cannam@86 30 necessary to make encoding setup changes. vorbis_encode_setup_init()
cannam@86 31 finalizes the highlevel encoding structure into a complete encoding
cannam@86 32 setup after which the application may make no further setup changes.<p>
cannam@86 33
cannam@86 34 After encoding, vorbis_info_clear should be called.
cannam@86 35 <p>
cannam@86 36 <br><br>
cannam@86 37 <table border=0 color=black cellspacing=0 cellpadding=7>
cannam@86 38 <tr bgcolor=#cccccc>
cannam@86 39 <td>
cannam@86 40 <pre><b>
cannam@86 41 extern int vorbis_encode_setup_init(<a href="../libvorbis/vorbis_info.html">vorbis_info</a> *vi);
cannam@86 42
cannam@86 43 </b></pre>
cannam@86 44 </td>
cannam@86 45 </tr>
cannam@86 46 </table>
cannam@86 47
cannam@86 48 <h3>Parameters</h3>
cannam@86 49 <dl>
cannam@86 50 <dt><i>vi</i></dt>
cannam@86 51 <dd>Pointer to an initialized <a href="../libvorbis/vorbis_info.html">vorbis_info</a> struct.</dd>
cannam@86 52 </dl>
cannam@86 53
cannam@86 54
cannam@86 55 <h3>Return Values</h3>
cannam@86 56 <blockquote>
cannam@86 57 <li>
cannam@86 58 0 for success</li>
cannam@86 59
cannam@86 60 <li>less than zero for failure:</li>
cannam@86 61 <ul>
cannam@86 62 <li>OV_EFAULT - Internal logic fault; indicates a bug or heap/stack corruption.</li>
cannam@86 63 <li>OV_EINVAL - Attempt to use vorbis_encode_setup_init() without first calling one of <a
cannam@86 64 href="vorbis_encode_setup_managed.html">vorbis_encode_setup_managed()</a>
cannam@86 65 or <a
cannam@86 66 href="vorbis_encode_setup_vbr.html">vorbis_encode_setup_vbr()</a>
cannam@86 67 to initialize the high-level encoding setup
cannam@86 68 </li>
cannam@86 69 </ul>
cannam@86 70 </blockquote>
cannam@86 71 <p>
cannam@86 72
cannam@86 73 <br><br>
cannam@86 74 <hr noshade>
cannam@86 75 <table border=0 width=100%>
cannam@86 76 <tr valign=top>
cannam@86 77 <td><p class=tiny>copyright &copy; 2000-2010 Xiph.Org</p></td>
cannam@86 78 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a></p></td>
cannam@86 79 </tr><tr>
cannam@86 80 <td><p class=tiny>libvorbisenc documentation</p></td>
cannam@86 81 <td align=right><p class=tiny>libvorbisenc version 1.3.2 - 20101101</p></td>
cannam@86 82 </tr>
cannam@86 83 </table>
cannam@86 84
cannam@86 85
cannam@86 86 </body>
cannam@86 87
cannam@86 88 </html>