Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/libvorbis-1.2.0/doc/vorbisenc/vorbis_encode_setup_init.html @ 16

Last change on this file since 16 was 16, checked in by landauf, 16 years ago

added libvorbis

File size: 2.6 KB
Line 
1<html>
2
3<head>
4<title>libvorbisenc - function - vorbis_encode_setup_init</title>
5<link rel=stylesheet href="style.css" type="text/css">
6</head>
7
8<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
9<table border=0 width=100%>
10<tr>
11<td><p class=tiny>libvorbisenc documentation</p></td>
12<td align=right><p class=tiny>libvorbisenc release 1.1 - 20040709</p></td>
13</tr>
14</table>
15
16<h1>vorbis_encode_setup_init</h1>
17
18<p><i>declared in "vorbis/libvorbisenc.h";</i></p>
19
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>.
21
22<p>Before this function is called, the <a
23href="vorbis_info.html">vorbis_info</a> struct should be initialized
24by using vorbis_info_init() from the libvorbis API, one of <a
25href="vorbis_encode_setup_managed.html">vorbis_encode_setup_managed()</a>
26or <a
27href="vorbis_encode_setup_vbr.html">vorbis_encode_setup_vbr()</a>
28called to initialize the high-level encoding setup, and <a
29href="vorbis_encode_ctl.html">vorbis_encode_ctl()</a> called if
30necessary to make encoding setup changes.  vorbis_encode_setup_init()
31finalizes the highlevel encoding structure into a complete encoding
32setup after which the application may make no further setup changes.<p>
33
34After encoding, vorbis_info_clear should be called.
35<p>
36<br><br>
37<table border=0 color=black cellspacing=0 cellpadding=7>
38<tr bgcolor=#cccccc>
39        <td>
40<pre><b>
41extern int vorbis_encode_setup_init(<a href="vorbis_info.html">vorbis_info</a> *vi);
42
43</b></pre>
44        </td>
45</tr>
46</table>
47
48<h3>Parameters</h3>
49<dl>
50<dt><i>vi</i></dt>
51<dd>File pointer to an initialized <a href="vorbis_info.html">vorbis_info</a> struct.</dd>
52</dl>
53
54
55<h3>Return Values</h3>
56<blockquote>
57<li>
580 for success</li>
59
60<li>less than zero for failure:</li>
61<ul>
62<li>OV_EFAULT - Internal logic fault; indicates a bug or heap/stack corruption.</li>
63<li>OV_EINVAL - Attempt to use vorbis_encode_setup_init() without first calling one of <a
64href="vorbis_encode_setup_managed.html">vorbis_encode_setup_managed()</a>
65or <a
66href="vorbis_encode_setup_vbr.html">vorbis_encode_setup_vbr()</a>
67to initialize the high-level encoding setup
68</li>
69</ul>
70</blockquote>
71<p>
72
73<br><br>
74<hr noshade>
75<table border=0 width=100%>
76<tr valign=top>
77<td><p class=tiny>copyright &copy; 2004 xiph.org</p></td>
78<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>
79</tr><tr>
80<td><p class=tiny>libvorbisenc documentation</p></td>
81<td align=right><p class=tiny>libvorbisenc release 1.1 - 20040709</p></td>
82</tr>
83</table>
84
85
86</body>
87
88</html>
Note: See TracBrowser for help on using the repository browser.