Chris@1: Chris@1: Chris@1: Chris@1: libogg - datatype - ogg_packet Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

libogg documentation

libogg release 1.3.0 - 20110804

Chris@1: Chris@1:

ogg_packet

Chris@1: Chris@1:

declared in "ogg/ogg.h"

Chris@1: Chris@1:

Chris@1: The ogg_packet struct encapsulates the data for a single raw packet of data Chris@1: and is used to transfer data between the ogg framing layer and the handling codec. Chris@1:

Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:
Chris@1:

Chris@1: typedef struct {
Chris@1:   unsigned char *packet;
Chris@1:   long  bytes;
Chris@1:   long  b_o_s;
Chris@1:   long  e_o_s;
Chris@1: 
Chris@1:   ogg_int64_t  granulepos;
Chris@1:   ogg_int64_t  packetno; 
Chris@1: 
Chris@1: } ogg_packet;
Chris@1: 
Chris@1:
Chris@1: Chris@1:

Relevant Struct Members

Chris@1:
Chris@1:
packet
Chris@1:
Pointer to the packet's data. This is treated as an opaque type by the ogg layer.
Chris@1:
bytes
Chris@1:
Indicates the size of the packet data in bytes. Packets can be of arbitrary size.
Chris@1:
b_o_s
Chris@1:
Flag indicating whether this packet begins a logical bitstream. 1 indicates this is the first packet, 0 indicates any other position in the stream.
Chris@1:
e_o_s
Chris@1:
Flag indicating whether this packet ends a bitstream. 1 indicates the last packet, 0 indicates any other position in the stream.
Chris@1:
granulepos
Chris@1:
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.
Chris@1:
packetno
Chris@1:
Sequential number of this packet in the ogg bitstream.
Chris@1:
Chris@1: Chris@1: Chris@1:

Chris@1:
Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1: Chris@1:

copyright © 2000-2011 Xiph.Org

Ogg Container Format

libogg documentation

libogg release 1.3.0 - 20110804

Chris@1: Chris@1: Chris@1: Chris@1: