4 <title>libvorbis - function - vorbis_bitrate_addblock</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>libvorbis documentation</p></td>
12 <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
16 <h1>vorbis_bitrate_addblock</h1>
18 <p><i>declared in "vorbis/codec.h";</i></p>
20 <p>This fuction submits a transformed block to the bitrate management
21 engine for final encoding. Packets are buffered and the packet boundaries
22 adjusted and padded to meet the target bitrate, if any.</p>
24 <p>After calling vorbis_bitrate_addblock(), the passed vorbis_block
25 structure can be reused in another call to vorbis_analysis_blockout().
26 Call vorbis_bitrate_flushpacket() to obtain the final compressed data.
29 <table border=0 color=black cellspacing=0 cellpadding=7>
33 extern int vorbis_bitrate_addblock(vorbis_block *vb);
42 <dd>Pointer to the vorbis_block to be submitted.</dd>
46 <h3>Return Values</h3>
48 <li>0 for success.</li>
49 <li>negative values for failure:
51 <li>OV_EINVAL - Invalid parameters.</li>
52 <li>OV_EFAULT - Internal fault; indicates a bug or memory corruption.</li>
53 <li>OV_EIMPL - Unimplemented; not supported by this version of the library.</li>
61 <table border=0 width=100%>
63 <td><p class=tiny>copyright © 2010 Xiph.Org</p></td>
64 <td align=right><p class=tiny><a href="https://xiph.org/vorbis/index.html">Ogg Vorbis</a></p></td>
66 <td><p class=tiny>libvorbis documentation</p></td>
67 <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>