4 <title>libvorbisenc - function - vorbis_encode_setup_vbr</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>libvorbisenc documentation</p></td>
12 <td align=right><p class=tiny>libvorbisenc release 1.1 - 20040709</p></td>
16 <h1>vorbis_encode_setup_vbr</h1>
18 <p><i>declared in "vorbis/vorbisenc.h";</i></p>
20 <p>This function performs step-one of a three-step variable bitrate
21 (quality-based) encode setup. It functions similarly to the one-step
23 href="vorbis_encode_init_vbr.html">vorbis_encode_init_vbr()</a> but
24 allows an application to make further encode setup tweaks using <a
25 href="vorbis_encode_ctl.html">vorbis_encode_ctl()</a> before finally
27 href="vorbis_encode_setup_init.html">vorbis_encode_setup_init()</a> to
28 complete the setup process.
30 <p>Before this function is called, the <a href="vorbis_info.html">vorbis_info</a> struct should be initialized by using vorbis_info_init() from the libvorbis API. After encoding, vorbis_info_clear should be called.
33 <table border=0 color=black cellspacing=0 cellpadding=7>
37 extern int vorbis_encode_init_vbr(<a href="vorbis_info.html">vorbis_info</a> *vi,
51 <dd>Pointer to an initialized <a href="vorbis_info.html">vorbis_info</a> struct.</dd>
52 <dt><i>channels</i></dt>
53 <dd>The number of channels to be encoded.</dd>
55 <dd>The sampling rate of the source audio.</dd>
56 <dt><i>base_quality</i></dt>
57 <dd>Desired quality level, currently from -0.1 to 1.0 (lo to hi).</dd>
61 <h3>Return Values</h3>
66 <li>less than zero for failure:</li>
68 <li>OV_EFAULT - Internal logic fault; indicates a bug or heap/stack corruption.</li>
69 <li>OV_EINVAL - Invalid setup request, eg, out of range argument. </li>
70 <li>OV_EIMPL - Unimplemented mode; unable to comply with quality level request.</li>
77 <table border=0 width=100%>
79 <td><p class=tiny>copyright © 2004 xiph.org</p></td>
80 <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a><br><a href="mailto:team@vorbis.org">team@vorbis.org</a></p></td>
82 <td><p class=tiny>libvorbisenc documentation</p></td>
83 <td align=right><p class=tiny>libvorbisenc release 1.1 - 20040709</p></td>