1<html> 2 3<head> 4<title>libogg - datatype - ogg_sync_state</title> 5<link rel=stylesheet href="style.css" type="text/css"> 6</head> 7 8<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff"> 9<table border=0 width=100%> 10<tr> 11<td><p class=tiny>libogg documentation</p></td> 12<td align=right><p class=tiny>libogg release 1.1.4 - 20090520</p></td> 13</tr> 14</table> 15 16<h1>ogg_sync_state</h1> 17 18<p><i>declared in "ogg/ogg.h"</i></p> 19 20<p> 21The ogg_sync_state struct tracks the synchronization of the current page. 22<p>It is used during decoding to track the status of data as it is read in, synchronized, verified, and parsed into pages belonging to the various logical bistreams in the current physical bitstream link. 23<p> 24 25<table border=0 width=100% color=black cellspacing=0 cellpadding=7> 26<tr bgcolor=#cccccc> 27 <td> 28<pre><b> 29typedef struct { 30 unsigned char *data; 31 int storage; 32 int fill; 33 int returned; 34 35 int unsynced; 36 int headerbytes; 37 int bodybytes; 38} ogg_sync_state; 39</b></pre> 40 </td> 41</tr> 42</table> 43 44<h3>Relevant Struct Members</h3> 45<dl> 46<dt><i>data</i></dt> 47<dd>Pointer to buffered stream data.</dd> 48<dt><i>storage</i></dt> 49<dd>Current allocated size of the stream buffer held in <tt>*data</tt>.</dd> 50<dt><i>fill</i></dt> 51<dd>The number of valid bytes currently held in <tt>*data</tt>; functions as the buffer head pointer.</dd> 52<dt><i>returned</i></dt> 53<dd>The number of bytes at the head of <tt>*data</tt> that have already been returned as pages; functions as the buffer tail pointer.</dd> 54<dt><i>unsynced</i></dt> 55<dd>Synchronization state flag; nonzero if sync has not yet been attained or has been lost.</dd> 56<dt><i>headerbytes</i></dt> 57<dd>If synced, the number of bytes used by the synced page's header.</dd> 58<dt><i>bodybytes</i></dt> 59<dd>If synced, the number of bytes used by the synced page's body.</dd> 60</dl> 61 62 63<br><br> 64<hr noshade> 65<table border=0 width=100%> 66<tr valign=top> 67<td><p class=tiny>copyright © 2000-2009 Xiph.Org</p></td> 68<td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td> 69</tr><tr> 70<td><p class=tiny>libogg documentation</p></td> 71<td align=right><p class=tiny>libogg release 1.1.4 - 20090520</p></td> 72</tr> 73</table> 74 75</body> 76 77</html> 78