doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs | Functions
codec.h File Reference
#include "../ogg/ogg.h"

Go to the source code of this file.

Classes

struct  vorbis_info
 
struct  vorbis_dsp_state
 
struct  vorbis_block
 
struct  alloc_chain
 
struct  vorbis_comment
 

Macros

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

Typedefs

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

Functions

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

Macro Definition Documentation

#define OV_EBADHEADER   -133

Definition at line 228 of file codec.h.

#define OV_EBADLINK   -137

Definition at line 232 of file codec.h.

#define OV_EBADPACKET   -136

Definition at line 231 of file codec.h.

#define OV_EFAULT   -129

Definition at line 224 of file codec.h.

#define OV_EIMPL   -130

Definition at line 225 of file codec.h.

#define OV_EINVAL   -131

Definition at line 226 of file codec.h.

#define OV_ENOSEEK   -138

Definition at line 233 of file codec.h.

#define OV_ENOTAUDIO   -135

Definition at line 230 of file codec.h.

#define OV_ENOTVORBIS   -132

Definition at line 227 of file codec.h.

#define OV_EOF   -2

Definition at line 220 of file codec.h.

#define OV_EREAD   -128

Definition at line 223 of file codec.h.

#define OV_EVERSION   -134

Definition at line 229 of file codec.h.

#define OV_FALSE   -1

Definition at line 219 of file codec.h.

#define OV_HOLE   -3

Definition at line 221 of file codec.h.

Typedef Documentation

typedef struct vorbis_block vorbis_block
typedef struct vorbis_info vorbis_info

Function Documentation

int vorbis_analysis ( vorbis_block vb,
ogg_packet op 
)

Definition at line 32 of file analysis.c.

int vorbis_analysis_blockout ( vorbis_dsp_state v,
vorbis_block vb 
)

Definition at line 479 of file block.c.

float** vorbis_analysis_buffer ( vorbis_dsp_state v,
int  vals 
)

Definition at line 355 of file block.c.

int vorbis_analysis_headerout ( vorbis_dsp_state v,
vorbis_comment vc,
ogg_packet op,
ogg_packet op_comm,
ogg_packet op_code 
)

Definition at line 524 of file info.c.

int vorbis_analysis_init ( vorbis_dsp_state v,
vorbis_info vi 
)

Definition at line 269 of file block.c.

int vorbis_analysis_wrote ( vorbis_dsp_state v,
int  vals 
)

Definition at line 415 of file block.c.

int vorbis_bitrate_addblock ( vorbis_block vb)

Definition at line 181 of file bitrate.c.

int vorbis_bitrate_flushpacket ( vorbis_dsp_state vd,
ogg_packet op 
)

Definition at line 495 of file bitrate.c.

int vorbis_block_clear ( vorbis_block vb)

Definition at line 149 of file block.c.

int vorbis_block_init ( vorbis_dsp_state v,
vorbis_block vb 
)

Definition at line 88 of file block.c.

void vorbis_comment_add ( vorbis_comment vc,
char *  comment 
)

Definition at line 62 of file info.c.

void vorbis_comment_add_tag ( vorbis_comment vc,
char *  tag,
char *  contents 
)

Definition at line 74 of file info.c.

void vorbis_comment_clear ( vorbis_comment vc)

Definition at line 130 of file info.c.

void vorbis_comment_init ( vorbis_comment vc)

Definition at line 58 of file info.c.

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

Definition at line 94 of file info.c.

int vorbis_comment_query_count ( vorbis_comment vc,
char *  tag 
)

Definition at line 115 of file info.c.

int vorbis_commentheader_out ( vorbis_comment vc,
ogg_packet op 
)

Definition at line 505 of file info.c.

void vorbis_dsp_clear ( vorbis_dsp_state v)

Definition at line 285 of file block.c.

double vorbis_granule_time ( vorbis_dsp_state v,
ogg_int64_t  granulepos 
)

Definition at line 599 of file info.c.

int vorbis_info_blocksize ( vorbis_info vi,
int  zo 
)

Definition at line 144 of file info.c.

void vorbis_info_clear ( vorbis_info vi)

Definition at line 155 of file info.c.

void vorbis_info_init ( vorbis_info vi)

Definition at line 150 of file info.c.

long vorbis_packet_blocksize ( vorbis_info vi,
ogg_packet op 
)

Definition at line 127 of file synthesis.c.

int vorbis_synthesis ( vorbis_block vb,
ogg_packet op 
)

Definition at line 26 of file synthesis.c.

int vorbis_synthesis_blockin ( vorbis_dsp_state v,
vorbis_block vb 
)

Definition at line 674 of file block.c.

int vorbis_synthesis_halfrate ( vorbis_info v,
int  flag 
)

Definition at line 155 of file synthesis.c.

int vorbis_synthesis_halfrate_p ( vorbis_info v)

Definition at line 165 of file synthesis.c.

int vorbis_synthesis_headerin ( vorbis_info vi,
vorbis_comment vc,
ogg_packet op 
)

Definition at line 336 of file info.c.

int vorbis_synthesis_init ( vorbis_dsp_state v,
vorbis_info vi 
)

Definition at line 663 of file block.c.

int vorbis_synthesis_lapout ( vorbis_dsp_state v,
float ***  pcm 
)

Definition at line 887 of file block.c.

int vorbis_synthesis_pcmout ( vorbis_dsp_state v,
float ***  pcm 
)

Definition at line 861 of file block.c.

int vorbis_synthesis_read ( vorbis_dsp_state v,
int  samples 
)

Definition at line 876 of file block.c.

int vorbis_synthesis_restart ( vorbis_dsp_state v)

Definition at line 640 of file block.c.

int vorbis_synthesis_trackonly ( vorbis_block vb,
ogg_packet op 
)

Definition at line 82 of file synthesis.c.