libgpac
Documentation of the core library of GPAC
gpac_ogg.c File Reference
+ Include dependency graph for gpac_ogg.c:

Macros

#define BUFFER_INCREMENT   256
 

Functions

void oggpack_readinit (oggpack_buffer *b, unsigned char *buf, s32 bytes)
 
void oggpackB_readinit (oggpack_buffer *b, unsigned char *buf, s32 bytes)
 
void oggpack_adv (oggpack_buffer *b, s32 bits)
 
s32 oggpack_read (oggpack_buffer *b, s32 bits)
 
s32 oggpackB_read (oggpack_buffer *b, s32 bits)
 
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_stream_init (ogg_stream_state *os, s32 serialno)
 
s32 ogg_stream_clear (ogg_stream_state *os)
 
static void _os_body_expand (ogg_stream_state *os, s32 needed)
 
static void _os_lacing_expand (ogg_stream_state *os, s32 needed)
 
void ogg_page_checksum_set (ogg_page *og)
 
s32 ogg_stream_packetin (ogg_stream_state *os, ogg_packet *op)
 
s32 ogg_stream_flush (ogg_stream_state *os, ogg_page *og)
 
s32 ogg_stream_pageout (ogg_stream_state *os, ogg_page *og)
 
s32 ogg_sync_init (ogg_sync_state *oy)
 
s32 ogg_sync_clear (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)
 
static s32 _packetout (ogg_stream_state *os, ogg_packet *op, s32 adv)
 
s32 ogg_stream_packetout (ogg_stream_state *os, ogg_packet *op)
 
s32 ogg_stream_packetpeek (ogg_stream_state *os, ogg_packet *op)
 

Variables

static u32 mask []
 
static u32 crc_lookup [256]
 

Macro Definition Documentation

◆ BUFFER_INCREMENT

#define BUFFER_INCREMENT   256

Function Documentation

◆ oggpack_readinit()

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

◆ oggpackB_readinit()

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

◆ oggpack_adv()

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

◆ oggpack_read()

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

◆ oggpackB_read()

s32 oggpackB_read ( oggpack_buffer b,
s32  bits 
)
+ 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_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:

◆ _os_body_expand()

static void _os_body_expand ( ogg_stream_state os,
s32  needed 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _os_lacing_expand()

static void _os_lacing_expand ( ogg_stream_state os,
s32  needed 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ogg_page_checksum_set()

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

◆ 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_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_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_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_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:

◆ _packetout()

static s32 _packetout ( ogg_stream_state os,
ogg_packet op,
s32  adv 
)
static
+ 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:

Variable Documentation

◆ mask

u32 mask[]
static
Initial value:
=
{ 0x00000000,0x00000001,0x00000003,0x00000007,0x0000000f,
0x0000001f,0x0000003f,0x0000007f,0x000000ff,0x000001ff,
0x000003ff,0x000007ff,0x00000fff,0x00001fff,0x00003fff,
0x00007fff,0x0000ffff,0x0001ffff,0x0003ffff,0x0007ffff,
0x000fffff,0x001fffff,0x003fffff,0x007fffff,0x00ffffff,
0x01ffffff,0x03ffffff,0x07ffffff,0x0fffffff,0x1fffffff,
0x3fffffff,0x7fffffff,0xffffffff
}

◆ crc_lookup

u32 crc_lookup[256]
static