ogg_sync_pageseek.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <html>
  2. <head>
  3. <title>libogg - function - ogg_sync_pageseek</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>libogg documentation</p></td>
  10. <td align=right><p class=tiny>libogg release 1.3.4 - 20190830</p></td>
  11. </tr>
  12. </table>
  13. <h1>ogg_sync_pageseek</h1>
  14. <p><i>declared in "ogg/ogg.h";</i></p>
  15. <p>This function synchronizes the ogg_sync_state struct to the next ogg_page.
  16. <p>This is useful when seeking within a bitstream. ogg_sync_pageseek will synchronize to the next page in the bitstream and return information about how many bytes we advanced or skipped in order to do so.
  17. <br><br>
  18. <table border=0 color=black cellspacing=0 cellpadding=7>
  19. <tr bgcolor=#cccccc>
  20. <td>
  21. <pre><b>
  22. int ogg_sync_pageseek(<a href="ogg_sync_state.html">ogg_sync_state</a> *oy, <a href="ogg_page.html">ogg_page</a> *og);
  23. </b></pre>
  24. </td>
  25. </tr>
  26. </table>
  27. <h3>Parameters</h3>
  28. <dl>
  29. <dt><i>oy</i></dt>
  30. <dd>Pointer to a previously declared <a href="ogg_sync_state.html">ogg_sync_state</a> struct.</dd>
  31. <dt><i>og</i></dt>
  32. <dd>Pointer to a page (or an incomplete page) of data. This is the page we are attempting to sync.
  33. </dl>
  34. <h3>Return Values</h3>
  35. <blockquote>
  36. <li>-n means that we skipped n bytes within the bitstream.</li>
  37. <li>
  38. 0 means that the page isn't ready and we need more data, or than an internal error occurred. No bytes have been skipped.</li>
  39. <li>
  40. n means that the page was synced at the current location, with a page length of n bytes.
  41. </blockquote>
  42. <p>
  43. <br><br>
  44. <hr noshade>
  45. <table border=0 width=100%>
  46. <tr valign=top>
  47. <td><p class=tiny>copyright &copy; 2000-2019 Xiph.Org Foundation</p></td>
  48. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td>
  49. </tr><tr>
  50. <td><p class=tiny>libogg documentation</p></td>
  51. <td align=right><p class=tiny>libogg release 1.3.4 - 20190830</p></td>
  52. </tr>
  53. </table>
  54. </body>
  55. </html>