zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
framing.c File Reference
#include <stdlib.h>
#include <string.h>
#include <ogg/ogg.h>

Go to the source code of this file.

Functions

static int _os_body_expand (ogg_stream_state *os, int needed)
 
static int _os_lacing_expand (ogg_stream_state *os, int needed)
 
static int _packetout (ogg_stream_state *os, ogg_packet *op, int adv)
 
void ogg_packet_clear (ogg_packet *op)
 
int ogg_page_bos (const ogg_page *og)
 
void ogg_page_checksum_set (ogg_page *og)
 
int ogg_page_continued (const ogg_page *og)
 
int ogg_page_eos (const ogg_page *og)
 
ogg_int64_t ogg_page_granulepos (const ogg_page *og)
 
int ogg_page_packets (const ogg_page *og)
 
long ogg_page_pageno (const ogg_page *og)
 
int ogg_page_serialno (const ogg_page *og)
 
int ogg_page_version (const ogg_page *og)
 
int ogg_stream_check (ogg_stream_state *os)
 
int ogg_stream_clear (ogg_stream_state *os)
 
int ogg_stream_destroy (ogg_stream_state *os)
 
int ogg_stream_eos (ogg_stream_state *os)
 
int ogg_stream_flush (ogg_stream_state *os, ogg_page *og)
 
int ogg_stream_flush_fill (ogg_stream_state *os, ogg_page *og, int nfill)
 
static int ogg_stream_flush_i (ogg_stream_state *os, ogg_page *og, int force, int nfill)
 
int ogg_stream_init (ogg_stream_state *os, int serialno)
 
int ogg_stream_iovecin (ogg_stream_state *os, ogg_iovec_t *iov, int count, long e_o_s, ogg_int64_t granulepos)
 
int ogg_stream_packetin (ogg_stream_state *os, ogg_packet *op)
 
int ogg_stream_packetout (ogg_stream_state *os, ogg_packet *op)
 
int ogg_stream_packetpeek (ogg_stream_state *os, ogg_packet *op)
 
int ogg_stream_pagein (ogg_stream_state *os, ogg_page *og)
 
int ogg_stream_pageout (ogg_stream_state *os, ogg_page *og)
 
int ogg_stream_pageout_fill (ogg_stream_state *os, ogg_page *og, int nfill)
 
int ogg_stream_reset (ogg_stream_state *os)
 
int ogg_stream_reset_serialno (ogg_stream_state *os, int serialno)
 
char * ogg_sync_buffer (ogg_sync_state *oy, long size)
 
int ogg_sync_check (ogg_sync_state *oy)
 
int ogg_sync_clear (ogg_sync_state *oy)
 
int ogg_sync_destroy (ogg_sync_state *oy)
 
int ogg_sync_init (ogg_sync_state *oy)
 
int ogg_sync_pageout (ogg_sync_state *oy, ogg_page *og)
 
long ogg_sync_pageseek (ogg_sync_state *oy, ogg_page *og)
 
int ogg_sync_reset (ogg_sync_state *oy)
 
int ogg_sync_wrote (ogg_sync_state *oy, long bytes)
 

Variables

static const ogg_uint32_t crc_lookup [256]
 

Function Documentation

static int _os_body_expand ( ogg_stream_state os,
int  needed 
)
static
void ogg_packet_clear ( ogg_packet op)

Definition at line 1022 of file framing.c.

References _ogg_free, memset, and ogg_packet::packet.

void ogg_page_checksum_set ( ogg_page og)
int ogg_page_continued ( const ogg_page og)

Definition at line 33 of file framing.c.

References ogg_page::header.

Referenced by ogg_stream_pagein(), and ov_pcm_seek_page().

int ogg_page_eos ( const ogg_page og)

Definition at line 41 of file framing.c.

References ogg_page::header.

Referenced by ogg_stream_pagein(), and ov_raw_seek().

ogg_int64_t ogg_page_granulepos ( const ogg_page og)
int ogg_page_packets ( const ogg_page og)

Definition at line 91 of file framing.c.

References ogg_page::header, and i.

long ogg_page_pageno ( const ogg_page og)

Definition at line 65 of file framing.c.

References ogg_page::header.

Referenced by ogg_stream_pagein().

int ogg_page_version ( const ogg_page og)

Definition at line 29 of file framing.c.

References ogg_page::header.

Referenced by ogg_stream_pagein().

int ogg_stream_destroy ( ogg_stream_state os)

Definition at line 228 of file framing.c.

References _ogg_free, and ogg_stream_clear().

int ogg_stream_eos ( ogg_stream_state os)

Definition at line 559 of file framing.c.

References ogg_stream_state::e_o_s, and ogg_stream_check().

int ogg_stream_flush ( ogg_stream_state os,
ogg_page og 
)

Definition at line 517 of file framing.c.

References ogg_stream_flush_i().

int ogg_stream_flush_fill ( ogg_stream_state os,
ogg_page og,
int  nfill 
)

Definition at line 525 of file framing.c.

References ogg_stream_flush_i().

int ogg_stream_packetout ( ogg_stream_state os,
ogg_packet op 
)
int ogg_stream_packetpeek ( ogg_stream_state os,
ogg_packet op 
)

Definition at line 1017 of file framing.c.

References _packetout(), and ogg_stream_check().

Referenced by ov_pcm_seek(), and ov_pcm_seek_page().

int ogg_stream_pageout_fill ( ogg_stream_state os,
ogg_page og,
int  nfill 
)
int ogg_stream_reset_serialno ( ogg_stream_state os,
int  serialno 
)
char* ogg_sync_buffer ( ogg_sync_state oy,
long  size 
)
int ogg_sync_check ( ogg_sync_state oy)
int ogg_sync_clear ( ogg_sync_state oy)

Definition at line 589 of file framing.c.

References _ogg_free, ogg_sync_state::data, and memset.

Referenced by ogg_sync_buffer(), ogg_sync_destroy(), and ov_clear().

int ogg_sync_destroy ( ogg_sync_state oy)

Definition at line 597 of file framing.c.

References _ogg_free, and ogg_sync_clear().

int ogg_sync_init ( ogg_sync_state oy)

Definition at line 580 of file framing.c.

References memset, and ogg_sync_state::storage.

Referenced by _ov_open1().

int ogg_sync_pageout ( ogg_sync_state oy,
ogg_page og 
)

Definition at line 757 of file framing.c.

References ogg_sync_check(), ogg_sync_pageseek(), ret, and ogg_sync_state::unsynced.

int ogg_sync_wrote ( ogg_sync_state oy,
long  bytes 
)

Definition at line 642 of file framing.c.

References ogg_sync_state::fill, ogg_sync_check(), and ogg_sync_state::storage.

Referenced by _get_data(), and _ov_open1().

Variable Documentation

const ogg_uint32_t crc_lookup[256]
static

Definition at line 120 of file framing.c.