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

Go to the source code of this file.

Classes

struct  alloc_chain
 
struct  vorbis_block
 
struct  vorbis_comment
 
struct  vorbis_dsp_state
 
struct  vorbis_info
 

Macros

#define OV_EBADHEADER   -133
 
#define OV_EBADLINK   -137
 
#define OV_EBADPACKET   -136
 
#define OV_EFAULT   -129
 
#define OV_EIMPL   -130
 
#define OV_EINVAL   -131
 
#define OV_ENOSEEK   -138
 
#define OV_ENOTAUDIO   -135
 
#define OV_ENOTVORBIS   -132
 
#define OV_EOF   -2
 
#define OV_EREAD   -128
 
#define OV_EVERSION   -134
 
#define OV_FALSE   -1
 
#define OV_HOLE   -3
 

Typedefs

typedef struct vorbis_block vorbis_block
 
typedef struct vorbis_comment vorbis_comment
 
typedef struct vorbis_dsp_state vorbis_dsp_state
 
typedef struct vorbis_info vorbis_info
 

Functions

int vorbis_analysis (vorbis_block *vb, ogg_packet *op)
 
int vorbis_analysis_blockout (vorbis_dsp_state *v, vorbis_block *vb)
 
float ** vorbis_analysis_buffer (vorbis_dsp_state *v, int vals)
 
int vorbis_analysis_headerout (vorbis_dsp_state *v, vorbis_comment *vc, ogg_packet *op, ogg_packet *op_comm, ogg_packet *op_code)
 
int vorbis_analysis_init (vorbis_dsp_state *v, vorbis_info *vi)
 
int vorbis_analysis_wrote (vorbis_dsp_state *v, int vals)
 
int vorbis_bitrate_addblock (vorbis_block *vb)
 
int vorbis_bitrate_flushpacket (vorbis_dsp_state *vd, ogg_packet *op)
 
int vorbis_block_clear (vorbis_block *vb)
 
int vorbis_block_init (vorbis_dsp_state *v, vorbis_block *vb)
 
void vorbis_comment_add (vorbis_comment *vc, const char *comment)
 
void vorbis_comment_add_tag (vorbis_comment *vc, const char *tag, const char *contents)
 
void vorbis_comment_clear (vorbis_comment *vc)
 
void vorbis_comment_init (vorbis_comment *vc)
 
char * vorbis_comment_query (vorbis_comment *vc, const char *tag, int count)
 
int vorbis_comment_query_count (vorbis_comment *vc, const char *tag)
 
int vorbis_commentheader_out (vorbis_comment *vc, ogg_packet *op)
 
void vorbis_dsp_clear (vorbis_dsp_state *v)
 
double vorbis_granule_time (vorbis_dsp_state *v, ogg_int64_t granulepos)
 
int vorbis_info_blocksize (vorbis_info *vi, int zo)
 
void vorbis_info_clear (vorbis_info *vi)
 
void vorbis_info_init (vorbis_info *vi)
 
long vorbis_packet_blocksize (vorbis_info *vi, ogg_packet *op)
 
int vorbis_synthesis (vorbis_block *vb, ogg_packet *op)
 
int vorbis_synthesis_blockin (vorbis_dsp_state *v, vorbis_block *vb)
 
int vorbis_synthesis_halfrate (vorbis_info *v, int flag)
 
int vorbis_synthesis_halfrate_p (vorbis_info *v)
 
int vorbis_synthesis_headerin (vorbis_info *vi, vorbis_comment *vc, ogg_packet *op)
 
int vorbis_synthesis_idheader (ogg_packet *op)
 
int vorbis_synthesis_init (vorbis_dsp_state *v, vorbis_info *vi)
 
int vorbis_synthesis_lapout (vorbis_dsp_state *v, float ***pcm)
 
int vorbis_synthesis_pcmout (vorbis_dsp_state *v, float ***pcm)
 
int vorbis_synthesis_read (vorbis_dsp_state *v, int samples)
 
int vorbis_synthesis_restart (vorbis_dsp_state *v)
 
int vorbis_synthesis_trackonly (vorbis_block *vb, ogg_packet *op)
 
const char * vorbis_version_string (void)
 

Macro Definition Documentation

#define OV_EBADHEADER   -133
#define OV_EBADLINK   -137

Definition at line 235 of file codec.h.

Referenced by _make_decode_ready(), and ov_raw_seek().

#define OV_EBADPACKET   -136
#define OV_ENOSEEK   -138

Definition at line 236 of file codec.h.

Referenced by ov_pcm_seek_page(), ov_raw_seek(), ov_time_seek(), and ov_time_seek_page().

#define OV_ENOTAUDIO   -135

Definition at line 233 of file codec.h.

Referenced by vorbis_packet_blocksize(), vorbis_synthesis(), and vorbis_synthesis_trackonly().

#define OV_ENOTVORBIS   -132

Definition at line 230 of file codec.h.

Referenced by _fetch_headers(), and vorbis_synthesis_headerin().

#define OV_EOF   -2
#define OV_EVERSION   -134

Definition at line 232 of file codec.h.

Referenced by _vorbis_unpack_info().

#define OV_FALSE   -1

Definition at line 222 of file codec.h.

Referenced by _get_next_page(), ov_bitrate(), and ov_bitrate_instant().

#define OV_HOLE   -3

Definition at line 224 of file codec.h.

Referenced by _fetch_and_process_packet(), _ov_initprime(), _ov_initset(), and ov_pcm_seek().

Typedef Documentation

typedef struct vorbis_block vorbis_block
typedef struct vorbis_info vorbis_info

Function Documentation

int vorbis_bitrate_addblock ( vorbis_block vb)

Definition at line 74 of file bitrate.c.

int vorbis_bitrate_flushpacket ( vorbis_dsp_state vd,
ogg_packet op 
)

Definition at line 230 of file bitrate.c.

void vorbis_comment_add ( vorbis_comment vc,
const char *  comment 
)
void vorbis_comment_add_tag ( vorbis_comment vc,
const char *  tag,
const char *  contents 
)

Definition at line 77 of file info.c.

References vorbis_comment_add().

void vorbis_comment_init ( vorbis_comment vc)

Definition at line 61 of file info.c.

References memset.

Referenced by _fetch_headers().

char* vorbis_comment_query ( vorbis_comment vc,
const char *  tag,
int  count 
)

Definition at line 97 of file info.c.

References vorbis_comment::comments, i, NULL, tagcompare(), and vorbis_comment::user_comments.

int vorbis_comment_query_count ( vorbis_comment vc,
const char *  tag 
)

Definition at line 118 of file info.c.

References vorbis_comment::comments, i, tagcompare(), and vorbis_comment::user_comments.

double vorbis_granule_time ( vorbis_dsp_state v,
ogg_int64_t  granulepos 
)

Definition at line 647 of file info.c.

References vorbis_info::rate, and vorbis_dsp_state::vi.

int vorbis_info_blocksize ( vorbis_info vi,
int  zo 
)
void vorbis_info_init ( vorbis_info vi)

Definition at line 155 of file info.c.

References _ogg_calloc, vorbis_info::codec_setup, and memset.

Referenced by _fetch_headers().

int vorbis_synthesis_halfrate ( vorbis_info v,
int  flag 
)
int vorbis_synthesis_halfrate_p ( vorbis_info v)
int vorbis_synthesis_idheader ( ogg_packet op)
int vorbis_synthesis_init ( vorbis_dsp_state v,
vorbis_info vi 
)

Definition at line 708 of file block.c.

References _vds_shared_init(), vorbis_dsp_clear(), and vorbis_synthesis_restart().

Referenced by _make_decode_ready().

int vorbis_synthesis_read ( vorbis_dsp_state v,
int  samples 
)
const char* vorbis_version_string ( void  )

Definition at line 662 of file info.c.

References GENERAL_VENDOR_STRING.