vorbis_packet_blocksize.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <html>
  2. <head>
  3. <title>libvorbis - function - vorbis_packet_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_packet_blocksize</h1>
  14. <p><i>declared in "vorbis/codec.h";</i></p>
  15. <p>This function gets the size of the block that would result from
  16. decoding a Vorbis packet but does not actually decode the packet.</p>
  17. <table border=0 color=black cellspacing=0 cellpadding=7>
  18. <tr bgcolor=#cccccc>
  19. <td>
  20. <pre><b>
  21. extern long vorbis_packet_blocksize(vorbis_info *vi,ogg_packet *op);
  22. </b></pre>
  23. </td>
  24. </tr>
  25. </table>
  26. <h3>Parameters</h3>
  27. <dl>
  28. <dt><i>vi</i></dt>
  29. <dd>The <a href="vorbis_info.html">vorbis_info</a> structure for the
  30. stream the packet is from.</dd>
  31. <dt><i>op</i></dt>
  32. <dd>The packet to get the block size of.</dd>
  33. </dl>
  34. <h3>Return Values</h3>
  35. <blockquote>
  36. <li>The block size on success.</li>
  37. <li>OV_ENOTAUDIO if the packet is not an audio packet.</li>
  38. <li>OV_EBADPACKET if there was an error in the packet.</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>