ogg_page_granulepos.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <html>
  2. <head>
  3. <title>libogg - function - ogg_page_granulepos</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_page_granulepos</h1>
  14. <p><i>declared in "ogg/ogg.h";</i></p>
  15. <p>Returns the exact granular position of the packet data contained at the end of this page.
  16. <p>This is useful for tracking location when seeking or decoding.
  17. <p>For example, in audio codecs this position is the pcm sample number and in video this is the frame number.
  18. <p>
  19. <br><br>
  20. <table border=0 color=black cellspacing=0 cellpadding=7>
  21. <tr bgcolor=#cccccc>
  22. <td>
  23. <pre><b>
  24. ogg_int64_t ogg_page_granulepos(ogg_page *og);
  25. </b></pre>
  26. </td>
  27. </tr>
  28. </table>
  29. <h3>Parameters</h3>
  30. <dl>
  31. <dt><i>og</i></dt>
  32. <dd>Pointer to the current ogg_page struct.</dd>
  33. </dl>
  34. <h3>Return Values</h3>
  35. <blockquote>
  36. <li>
  37. <i>n</i> is the specific last granular position of the decoded data contained in the page.</li>
  38. </blockquote>
  39. <p>
  40. <br><br>
  41. <hr noshade>
  42. <table border=0 width=100%>
  43. <tr valign=top>
  44. <td><p class=tiny>copyright &copy; 2000-2019 Xiph.Org Foundation</p></td>
  45. <td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td>
  46. </tr><tr>
  47. <td><p class=tiny>libogg documentation</p></td>
  48. <td align=right><p class=tiny>libogg release 1.3.4 - 20190830</p></td>
  49. </tr>
  50. </table>
  51. </body>
  52. </html>