summaryrefslogtreecommitdiff
path: root/doc/libogg/ogg_packet.html
diff options
context:
space:
mode:
authorclaude-bot <[email protected]>2026-07-13 12:40:00 +0000
committerclaude-bot <[email protected]>2026-07-13 12:40:00 +0000
commit740291cf2ae7f360b4ab119746da9ac2ef6611e4 (patch)
tree2fd7c57651516fbef1d0716e3276c24b8f71ed52 /doc/libogg/ogg_packet.html
downloadogg-740291cf2ae7f360b4ab119746da9ac2ef6611e4.tar.gz
ogg-740291cf2ae7f360b4ab119746da9ac2ef6611e4.zip
Import xiph/ogg @ 36f969bb37559345ee03796ed625a9abd42c6db9HEADmaster
Snapshot for re3/reVC vendoring, per @lzcnt. Source: https://github.com/xiph/ogg (36f969bb37559345ee03796ed625a9abd42c6db9).
Diffstat (limited to 'doc/libogg/ogg_packet.html')
-rw-r--r--doc/libogg/ogg_packet.html75
1 files changed, 75 insertions, 0 deletions
diff --git a/doc/libogg/ogg_packet.html b/doc/libogg/ogg_packet.html
new file mode 100644
index 0000000..1ef7613
--- /dev/null
+++ b/doc/libogg/ogg_packet.html
@@ -0,0 +1,75 @@
+<html>
+
+<head>
+<title>libogg - datatype - ogg_packet</title>
+<link rel=stylesheet href="style.css" type="text/css">
+</head>
+
+<body bgcolor=white text=black link="#5555ff" alink="#5555ff" vlink="#5555ff">
+<table border=0 width=100%>
+<tr>
+<td><p class=tiny>libogg documentation</p></td>
+<td align=right><p class=tiny>libogg release 1.3.4 - 20190830</p></td>
+</tr>
+</table>
+
+<h1>ogg_packet</h1>
+
+<p><i>declared in "ogg/ogg.h"</i></p>
+
+<p>
+The ogg_packet struct encapsulates the data for a single raw packet of data
+and is used to transfer data between the ogg framing layer and the handling codec.
+<p>
+
+<table border=0 width=100% color=black cellspacing=0 cellpadding=7>
+<tr bgcolor=#cccccc>
+ <td>
+<pre><b>
+typedef struct {
+ unsigned char *packet;
+ long bytes;
+ long b_o_s;
+ long e_o_s;
+
+ ogg_int64_t granulepos;
+ ogg_int64_t packetno;
+
+} ogg_packet;
+</b></pre>
+ </td>
+</tr>
+</table>
+
+<h3>Relevant Struct Members</h3>
+<dl>
+<dt><i>packet</i></dt>
+<dd>Pointer to the packet's data. This is treated as an opaque type by the ogg layer.</dd>
+<dt><i>bytes</i></dt>
+<dd>Indicates the size of the packet data in bytes. Packets can be of arbitrary size.</dd>
+<dt><i>b_o_s</i></dt>
+<dd>Flag indicating whether this packet begins a logical bitstream. <tt>1</tt> indicates this is the first packet, <tt>0</tt> indicates any other position in the stream.</dd>
+<dt><i>e_o_s</i></dt>
+<dd>Flag indicating whether this packet ends a bitstream. <tt>1</tt> indicates the last packet, <tt>0</tt> indicates any other position in the stream.</dd>
+<dt><i>granulepos</i></dt>
+<dd>A number indicating the position of this packet in the decoded data. This is the last sample, frame or other unit of information ('granule') that can be completely decoded from this packet.</dd>
+<dt><i>packetno</i></dt>
+<dd>Sequential number of this packet in the ogg bitstream.<dd>
+</dl>
+
+
+<br><br>
+<hr noshade>
+<table border=0 width=100%>
+<tr valign=top>
+<td><p class=tiny>copyright &copy; 2000-2019 Xiph.Org Foundation</p></td>
+<td align=right><p class=tiny><a href="http://www.xiph.org/ogg/">Ogg Container Format</a></p></td>
+</tr><tr>
+<td><p class=tiny>libogg documentation</p></td>
+<td align=right><p class=tiny>libogg release 1.3.4 - 20190830</p></td>
+</tr>
+</table>
+
+</body>
+
+</html>