vorbis_bitrate_addblock.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <html>
  2. <head>
  3. <title>libvorbis - function - vorbis_bitrate_addblock</title>
  4. <link rel=stylesheet href="style.css" type="text/css">
  5. </head>
  6. <body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
  7. <table border=0 width=100%>
  8. <tr>
  9. <td><p class=tiny>libvorbis documentation</p></td>
  10. <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
  11. </tr>
  12. </table>
  13. <h1>vorbis_bitrate_addblock</h1>
  14. <p><i>declared in "vorbis/codec.h";</i></p>
  15. <p>This fuction submits a transformed block to the bitrate management
  16. engine for final encoding. Packets are buffered and the packet boundaries
  17. adjusted and padded to meet the target bitrate, if any.</p>
  18. <p>After calling vorbis_bitrate_addblock(), the passed vorbis_block
  19. structure can be reused in another call to vorbis_analysis_blockout().
  20. Call vorbis_bitrate_flushpacket() to obtain the final compressed data.
  21. </p>
  22. <table border=0 color=black cellspacing=0 cellpadding=7>
  23. <tr bgcolor=#cccccc>
  24. <td>
  25. <pre><b>
  26. extern int vorbis_bitrate_addblock(vorbis_block *vb);
  27. </b></pre>
  28. </td>
  29. </tr>
  30. </table>
  31. <h3>Parameters</h3>
  32. <dl>
  33. <dt><i>vb</i></dt>
  34. <dd>Pointer to the vorbis_block to be submitted.</dd>
  35. </dl>
  36. <h3>Return Values</h3>
  37. <ul>
  38. <li>0 for success.</li>
  39. <li>negative values for failure:
  40. <ul>
  41. <li>OV_EINVAL - Invalid parameters.</li>
  42. <li>OV_EFAULT - Internal fault; indicates a bug or memory corruption.</li>
  43. <li>OV_EIMPL - Unimplemented; not supported by this version of the library.</li>
  44. </ul>
  45. </li>
  46. </ul>
  47. <br><br>
  48. <hr noshade>
  49. <table border=0 width=100%>
  50. <tr valign=top>
  51. <td><p class=tiny>copyright &copy; 2010 Xiph.Org</p></td>
  52. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a></p></td>
  53. </tr><tr>
  54. <td><p class=tiny>libvorbis documentation</p></td>
  55. <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
  56. </tr>
  57. </table>
  58. </body>
  59. </html>