libgpac
Documentation of the core library of GPAC
ogg.h File Reference
#include <gpac/tools.h>
+ Include dependency graph for ogg.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  oggpack_buffer
 
struct  ogg_page
 
struct  ogg_stream_state
 
struct  ogg_packet
 
struct  ogg_sync_state
 

Functions

void oggpack_writeinit (oggpack_buffer *b)
 
void oggpack_writetrunc (oggpack_buffer *b, s32 bits)
 
void oggpack_writealign (oggpack_buffer *b)
 
void oggpack_writecopy (oggpack_buffer *b, void *source, s32 bits)
 
void oggpack_reset (oggpack_buffer *b)
 
void oggpack_writeclear (oggpack_buffer *b)
 
void oggpack_readinit (oggpack_buffer *b, u8 *buf, s32 bytes)
 
void oggpack_write (oggpack_buffer *b, u32 value, s32 bits)
 
s32 oggpack_look (oggpack_buffer *b, s32 bits)
 
s32 oggpack_look1 (oggpack_buffer *b)
 
void oggpack_adv (oggpack_buffer *b, s32 bits)
 
void oggpack_adv1 (oggpack_buffer *b)
 
s32 oggpack_read (oggpack_buffer *b, s32 bits)
 
s32 oggpack_read1 (oggpack_buffer *b)
 
s32 oggpack_bytes (oggpack_buffer *b)
 
s32 oggpack_bits (oggpack_buffer *b)
 
u8oggpack_get_buffer (oggpack_buffer *b)
 
void oggpackB_writeinit (oggpack_buffer *b)
 
void oggpackB_writetrunc (oggpack_buffer *b, s32 bits)
 
void oggpackB_writealign (oggpack_buffer *b)
 
void oggpackB_writecopy (oggpack_buffer *b, void *source, s32 bits)
 
void oggpackB_reset (oggpack_buffer *b)
 
void oggpackB_writeclear (oggpack_buffer *b)
 
void oggpackB_readinit (oggpack_buffer *b, u8 *buf, s32 bytes)
 
void oggpackB_write (oggpack_buffer *b, u32 value, s32 bits)
 
s32 oggpackB_look (oggpack_buffer *b, s32 bits)
 
s32 oggpackB_look1 (oggpack_buffer *b)
 
void oggpackB_adv (oggpack_buffer *b, s32 bits)
 
void oggpackB_adv1 (oggpack_buffer *b)
 
s32 oggpackB_read (oggpack_buffer *b, s32 bits)
 
s32 oggpackB_read1 (oggpack_buffer *b)
 
s32 oggpackB_bytes (oggpack_buffer *b)
 
s32 oggpackB_bits (oggpack_buffer *b)
 
u8oggpackB_get_buffer (oggpack_buffer *b)
 
s32 ogg_stream_packetin (ogg_stream_state *os, ogg_packet *op)
 
s32 ogg_stream_pageout (ogg_stream_state *os, ogg_page *og)
 
s32 ogg_stream_flush (ogg_stream_state *os, ogg_page *og)
 
s32 ogg_sync_init (ogg_sync_state *oy)
 
s32 ogg_sync_clear (ogg_sync_state *oy)
 
s32 ogg_sync_reset (ogg_sync_state *oy)
 
s32 ogg_sync_destroy (ogg_sync_state *oy)
 
u8ogg_sync_buffer (ogg_sync_state *oy, s32 size)
 
s32 ogg_sync_wrote (ogg_sync_state *oy, s32 bytes)
 
s32 ogg_sync_pageseek (ogg_sync_state *oy, ogg_page *og)
 
s32 ogg_sync_pageout (ogg_sync_state *oy, ogg_page *og)
 
s32 ogg_stream_pagein (ogg_stream_state *os, ogg_page *og)
 
s32 ogg_stream_packetout (ogg_stream_state *os, ogg_packet *op)
 
s32 ogg_stream_packetpeek (ogg_stream_state *os, ogg_packet *op)
 
s32 ogg_stream_init (ogg_stream_state *os, s32 serialno)
 
s32 ogg_stream_clear (ogg_stream_state *os)
 
s32 ogg_stream_reset (ogg_stream_state *os)
 
s32 ogg_stream_reset_serialno (ogg_stream_state *os, s32 serialno)
 
s32 ogg_stream_destroy (ogg_stream_state *os)
 
s32 ogg_stream_eos (ogg_stream_state *os)
 
void ogg_page_checksum_set (ogg_page *og)
 
s32 ogg_page_version (ogg_page *og)
 
s32 ogg_page_continued (ogg_page *og)
 
s32 ogg_page_bos (ogg_page *og)
 
s32 ogg_page_eos (ogg_page *og)
 
s64 ogg_page_granulepos (ogg_page *og)
 
s32 ogg_page_serialno (ogg_page *og)
 
s32 ogg_page_pageno (ogg_page *og)
 
s32 ogg_page_packets (ogg_page *og)
 
void ogg_packet_clear (ogg_packet *op)
 

Data Structure Documentation

◆ oggpack_buffer

struct oggpack_buffer
Data Fields
s32 endbyte
s32 endbit
u8 * buffer
u8 * ptr
s32 storage

◆ ogg_page

struct ogg_page
Data Fields
u8 * header
s32 header_len
u8 * body
s32 body_len

◆ ogg_stream_state

struct ogg_stream_state
Data Fields
unsigned char * body_data
s32 body_storage
s32 body_fill
s32 body_returned
s32 * lacing_vals
s64 * granule_vals
s32 lacing_storage
s32 lacing_fill
s32 lacing_packet
s32 lacing_returned
unsigned char header[282]
s32 header_fill
s32 e_o_s
s32 b_o_s
s32 serialno
s32 pageno
s64 packetno
s64 granulepos

◆ ogg_packet

struct ogg_packet
Data Fields
u8 * packet
s32 bytes
s32 b_o_s
s32 e_o_s
s64 granulepos
s64 packetno

◆ ogg_sync_state

struct ogg_sync_state
Data Fields
u8 * data
s32 storage
s32 fill
s32 returned
s32 unsynced
s32 headerbytes
s32 bodybytes

Function Documentation

◆ oggpack_writeinit()

void oggpack_writeinit ( oggpack_buffer b)

◆ oggpack_writetrunc()

void oggpack_writetrunc ( oggpack_buffer b,
s32  bits 
)

◆ oggpack_writealign()

void oggpack_writealign ( oggpack_buffer b)

◆ oggpack_writecopy()

void oggpack_writecopy ( oggpack_buffer b,
void *  source,
s32  bits 
)

◆ oggpack_reset()

void oggpack_reset ( oggpack_buffer b)

◆ oggpack_writeclear()

void oggpack_writeclear ( oggpack_buffer b)

◆ oggpack_readinit()

void oggpack_readinit ( oggpack_buffer b,
u8 buf,
s32  bytes 
)
+ Here is the caller graph for this function:

◆ oggpack_write()

void oggpack_write ( oggpack_buffer b,
u32  value,
s32  bits 
)

◆ oggpack_look()

s32 oggpack_look ( oggpack_buffer b,
s32  bits 
)

◆ oggpack_look1()

s32 oggpack_look1 ( oggpack_buffer b)

◆ oggpack_adv()

void oggpack_adv ( oggpack_buffer b,
s32  bits 
)
+ Here is the caller graph for this function:

◆ oggpack_adv1()

void oggpack_adv1 ( oggpack_buffer b)

◆ oggpack_read()

s32 oggpack_read ( oggpack_buffer b,
s32  bits 
)
+ Here is the caller graph for this function:

◆ oggpack_read1()

s32 oggpack_read1 ( oggpack_buffer b)

◆ oggpack_bytes()

s32 oggpack_bytes ( oggpack_buffer b)

◆ oggpack_bits()

s32 oggpack_bits ( oggpack_buffer b)

◆ oggpack_get_buffer()

u8* oggpack_get_buffer ( oggpack_buffer b)

◆ oggpackB_writeinit()

void oggpackB_writeinit ( oggpack_buffer b)

◆ oggpackB_writetrunc()

void oggpackB_writetrunc ( oggpack_buffer b,
s32  bits 
)

◆ oggpackB_writealign()

void oggpackB_writealign ( oggpack_buffer b)

◆ oggpackB_writecopy()

void oggpackB_writecopy ( oggpack_buffer b,
void *  source,
s32  bits 
)

◆ oggpackB_reset()

void oggpackB_reset ( oggpack_buffer b)

◆ oggpackB_writeclear()

void oggpackB_writeclear ( oggpack_buffer b)

◆ oggpackB_readinit()

void oggpackB_readinit ( oggpack_buffer b,
u8 buf,
s32  bytes 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ oggpackB_write()

void oggpackB_write ( oggpack_buffer b,
u32  value,
s32  bits 
)

◆ oggpackB_look()

s32 oggpackB_look ( oggpack_buffer b,
s32  bits 
)

◆ oggpackB_look1()

s32 oggpackB_look1 ( oggpack_buffer b)

◆ oggpackB_adv()

void oggpackB_adv ( oggpack_buffer b,
s32  bits 
)

◆ oggpackB_adv1()

void oggpackB_adv1 ( oggpack_buffer b)

◆ oggpackB_read()

s32 oggpackB_read ( oggpack_buffer b,
s32  bits 
)
+ Here is the caller graph for this function:

◆ oggpackB_read1()

s32 oggpackB_read1 ( oggpack_buffer b)

◆ oggpackB_bytes()

s32 oggpackB_bytes ( oggpack_buffer b)

◆ oggpackB_bits()

s32 oggpackB_bits ( oggpack_buffer b)

◆ oggpackB_get_buffer()

u8* oggpackB_get_buffer ( oggpack_buffer b)

◆ ogg_stream_packetin()

s32 ogg_stream_packetin ( ogg_stream_state os,
ogg_packet op 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_stream_pageout()

s32 ogg_stream_pageout ( ogg_stream_state os,
ogg_page og 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_stream_flush()

s32 ogg_stream_flush ( ogg_stream_state os,
ogg_page og 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_sync_init()

s32 ogg_sync_init ( ogg_sync_state oy)
+ Here is the caller graph for this function:

◆ ogg_sync_clear()

s32 ogg_sync_clear ( ogg_sync_state oy)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_sync_reset()

s32 ogg_sync_reset ( ogg_sync_state oy)

◆ ogg_sync_destroy()

s32 ogg_sync_destroy ( ogg_sync_state oy)

◆ ogg_sync_buffer()

u8* ogg_sync_buffer ( ogg_sync_state oy,
s32  size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_sync_wrote()

s32 ogg_sync_wrote ( ogg_sync_state oy,
s32  bytes 
)
+ Here is the caller graph for this function:

◆ ogg_sync_pageseek()

s32 ogg_sync_pageseek ( ogg_sync_state oy,
ogg_page og 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_sync_pageout()

s32 ogg_sync_pageout ( ogg_sync_state oy,
ogg_page og 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_stream_pagein()

s32 ogg_stream_pagein ( ogg_stream_state os,
ogg_page og 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_stream_packetout()

s32 ogg_stream_packetout ( ogg_stream_state os,
ogg_packet op 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_stream_packetpeek()

s32 ogg_stream_packetpeek ( ogg_stream_state os,
ogg_packet op 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_stream_init()

s32 ogg_stream_init ( ogg_stream_state os,
s32  serialno 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_stream_clear()

s32 ogg_stream_clear ( ogg_stream_state os)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_stream_reset()

s32 ogg_stream_reset ( ogg_stream_state os)

◆ ogg_stream_reset_serialno()

s32 ogg_stream_reset_serialno ( ogg_stream_state os,
s32  serialno 
)

◆ ogg_stream_destroy()

s32 ogg_stream_destroy ( ogg_stream_state os)

◆ ogg_stream_eos()

s32 ogg_stream_eos ( ogg_stream_state os)

◆ ogg_page_checksum_set()

void ogg_page_checksum_set ( ogg_page og)
+ Here is the caller graph for this function:

◆ ogg_page_version()

s32 ogg_page_version ( ogg_page og)
+ Here is the caller graph for this function:

◆ ogg_page_continued()

s32 ogg_page_continued ( ogg_page og)
+ Here is the caller graph for this function:

◆ ogg_page_bos()

s32 ogg_page_bos ( ogg_page og)
+ Here is the caller graph for this function:

◆ ogg_page_eos()

s32 ogg_page_eos ( ogg_page og)
+ Here is the caller graph for this function:

◆ ogg_page_granulepos()

s64 ogg_page_granulepos ( ogg_page og)
+ Here is the caller graph for this function:

◆ ogg_page_serialno()

s32 ogg_page_serialno ( ogg_page og)
+ Here is the caller graph for this function:

◆ ogg_page_pageno()

s32 ogg_page_pageno ( ogg_page og)
+ Here is the caller graph for this function:

◆ ogg_page_packets()

s32 ogg_page_packets ( ogg_page og)

◆ ogg_packet_clear()

void ogg_packet_clear ( ogg_packet op)