vorbis_info_blocksize.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <html>
  2. <head>
  3. <title>libvorbis - function - vorbis_info_blocksize</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_info_blocksize</h1>
  14. <p><i>declared in "vorbis/codec.h";</i></p>
  15. <p>This function gets the possible sizes for encoded blocks. There
  16. are short blocks (zo = 0) and long blocks (zo = 1). The size of a long
  17. block is guaranteed to be greater than or equal to the size of a short
  18. block.</p>
  19. <table border=0 color=black cellspacing=0 cellpadding=7>
  20. <tr bgcolor=#cccccc>
  21. <td>
  22. <pre><b>
  23. extern int vorbis_info_blocksize(vorbis_info *vi,int zo);
  24. </b></pre>
  25. </td>
  26. </tr>
  27. </table>
  28. <h3>Parameters</h3>
  29. <dl>
  30. <dt><i>vi</i></dt>
  31. <dd>Pointer to the vorbis_info struct.</dd>
  32. <dt><i>zo</i></dt>
  33. <dd>Integer for which block size to get: 0 for short and 1 for long</dd>
  34. </dl>
  35. <h3>Return Values</h3>
  36. <blockquote>
  37. <li>A positive integer for the block size.</li>
  38. <li>-1 on error.</li>
  39. </blockquote>
  40. <p>
  41. <br><br>
  42. <hr noshade>
  43. <table border=0 width=100%>
  44. <tr valign=top>
  45. <td><p class=tiny>copyright &copy; 2010 Xiph.Org</p></td>
  46. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/vorbis/index.html">Ogg Vorbis</a></p></td>
  47. </tr><tr>
  48. <td><p class=tiny>libvorbis documentation</p></td>
  49. <td align=right><p class=tiny>libvorbis version 1.3.2 - 20101101</p></td>
  50. </tr>
  51. </table>
  52. </body>
  53. </html>